htech Posted April 20, 2011 Share Posted April 20, 2011 hey heywonder if anyone can help me, iv installed prestashop 1.4 and have noticed that when i click "add" it hangs without updating the cart?any ideas on how to resolve this? Link to comment Share on other sites More sharing options...
tomerg3 Posted April 21, 2011 Share Posted April 21, 2011 Can you provide a link to your site?Did you make any changes after installing it? Link to comment Share on other sites More sharing options...
htech Posted April 21, 2011 Author Share Posted April 21, 2011 hii have firefox installed but cant seem to figure out the problem.i have also attached a picture to show u what happens when i click add to cart aswell...it creates a picture in picture freeze and thats it... Link to comment Share on other sites More sharing options...
tomerg3 Posted April 22, 2011 Share Posted April 22, 2011 I couldn't see anything that was obviously wrong, try using the default theme and see if that helps. Link to comment Share on other sites More sharing options...
htech Posted April 22, 2011 Author Share Posted April 22, 2011 iv tried the original prestashop theme and still no luck.its like it doesnt update the cart in realtime, only once i refresh or move pages.very weird stuff.any ideas where i could look to resolve this? Link to comment Share on other sites More sharing options...
tomerg3 Posted April 22, 2011 Share Posted April 22, 2011 It's hard to say without debugging the code, but if it's adding to the cart, it means that it gets pretty far in the ajax process, but failing to complete it.You can try adding some debug code in modules/blockcart/ajax-cart.js and also in /cart.php (or /controller/CartController.php).I would add some code to write to a log file, and see how far it gets, and where is stops. Link to comment Share on other sites More sharing options...
htech Posted April 22, 2011 Author Share Posted April 22, 2011 lol, u might as well be speaking to me in french, i have no idea what you saying...you lost me at " You can try adding some debug code... " if it helps, i have error_log in my root dir and debugging set to ON in config.inc.php.... Link to comment Share on other sites More sharing options...
tomerg3 Posted April 22, 2011 Share Posted April 22, 2011 I mean something like $myFile = dirname(__FILE__)."/debug_log.txt"; $fh = fopen($myFile, 'a') or die("can't open file"); fwrite($fh, "Debug code, print some variables or just #1, #2 etc.. to see how far it gets before stopping."); fclose($fh); but it may be a bit too advanced for you if you're not very good with php Link to comment Share on other sites More sharing options...
htech Posted April 22, 2011 Author Share Posted April 22, 2011 looks hektik man.thanks for the help tho.the weird this is all i have been doing in my theme is changing the css code...the only hardcode that iv edited was the "remove the addto cart " button from the page, do u think this could be theissue? Link to comment Share on other sites More sharing options...
tomerg3 Posted April 22, 2011 Share Posted April 22, 2011 try to undo it and you'll find out, but if it's the only change you did, most likely that's the cause. Link to comment Share on other sites More sharing options...
htech Posted April 22, 2011 Author Share Posted April 22, 2011 coool, def something i didnt wanna do but had no choice nice way to learn tho.managed to get everything sorted from scratch.have noticed tho, asoon as i cilck ADD TO CART..... if automatically takes me to the ORDERS page instead of just continuing the shopping experience.but that cool tho, will work with it like this for now any idea why the Orders Page comes out all weird? instead of aligned? Link to comment Share on other sites More sharing options...
tomerg3 Posted April 22, 2011 Share Posted April 22, 2011 Seems like a theme issue, can't tell anything with an image, try using firefox with firebug, it will make it much easier to find the source of the problem. Link to comment Share on other sites More sharing options...
htech Posted April 23, 2011 Author Share Posted April 23, 2011 cool thanks, will give it a bash Link to comment Share on other sites More sharing options...
Recommended Posts