Jump to content

Ajaxcart not working correctly in 1.7


Recommended Posts

Hello,

Is it possible to get the Ajaxcart working properly in Prestashop 1.7. Currently if set to YES the Ajaxcart works correctly, but if set to NO it doesn't work properly. I want it to be able to work correctly in both the YES and NO options. I have found the following workaround for making the cart work correctly when the switch is on NO, but it causes problems when in the switch is on YES.

if (resp.modal) {      
   showModal(resp.modal);

}

changed to 

if (resp.modal) {         
 window.location.href=cart_url;

}

With this it does go to the Cart Summary page, but if you put the switch to YES it loads the Ajaxcart for a fraction of a second then goes to the Cart Summary page, which is not what I want.

If anybody can help with this problem it would be appreciated.  Thank you.

Kathy

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...