Jump to content

Prestashop Add to Cart button hangs / freezes without updating


Recommended Posts

hi

i 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...

43399_xhlQj5YiUoK7YhPfEsRw_t

Link to comment
Share on other sites

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

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

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

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

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 the
issue?

Link to comment
Share on other sites

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?

43410_PuyYZdbPkXRUk7VMJ2y9_t

Link to comment
Share on other sites

×
×
  • Create New...