Jump to content

[Solved] Cart doesn't stay open after adding a product


Recommended Posts

When someone adds a product to their cart, their should come a popup with their cart and the buttons to check-out or continue shopping.
This has worked fine for quite a while. But recently after adding something to your cart the popup shows but after that the page immediately refreshes and the popup is gone.

I can't remember that I changed something that could've caused this. So I don't really know how to fix the problem. Does anyone know a way to fix this?

Edit: the url of the store is in my signature

Link to comment
Share on other sites

There is JavaScript error

ddaccordion is not defined
ddaccordion.init({ .... menu.js (line1)


And I am not sure where is ddaccordion used but it is missing call to ddaccordion.js.

That error cause cart to not working properly
Link to comment
Share on other sites

I had prevented the ddaccordion.js from loading in the header, but I can't seem to remember why. At the moment the ddaccordion can load again, the page doesn't seem to be refreshing anymore.
Still the problem with the disappearing cart remains...

Link to comment
Share on other sites

I can't recall any recently added module. Apart from the addstuff module, but for the sake of testing I've disabled it temporarily and the problem remains.
What I did add recently is mouseflow tracking, but the problem was there before I added this.

The Ajax cart is activated in the backoffice, how do you know this isn't working properly? Maybe there is some problem here.

Edit: When I check all the page requests with Firebug after I add a hdmi cable to the cart I see that there is a page request to http://www.ruconnected.nl/15-hdmi-kabel.html and that page then 301's to http://www.ruconnected.nl/kabels/15-hdmi-kabel.html.
Could this maybe be the issue? I think that some part of the cart requests that page.

Link to comment
Share on other sites

I think I know what caused the problem!

Some time ago I wanted to change the position of the order button. To do this I followed the directions of an other forum member in this thread:http://www.prestashop.com/forums/viewthread/111723/

I added the order button in the same class as the price, maybe that's why the cart is disappearing. That there is some function in the cart that calls to a class that isn't existing anymore.

Link to comment
Share on other sites

Yeah I just wanted to ask about that.

Block

<input type="submit" name="Submit" value="Add to cart"></p>



is in demo and you have

<input type="submit" name="Submit" value="In Winkelwagentje">



in price paragraph

and in ajax-cart.js there is $("body#product p#add_to_cart input") ....

Link to comment
Share on other sites

  • 2 years later...
  • 7 months later...
×
×
  • Create New...