Richard Dev Posted April 17, 2019 Share Posted April 17, 2019 Hi, In PrestaShop 1.74 I'm having a problem: I'm using the built-in shopping cart in AJAX mode and almost everything works fine. Unfortunately I've had to make considerable changes to the top navigation menu and have moved the cart and items and modified some of the HTML... The cart and the cart icon updates from a product page or the Cart page - BUT - the cart icon does not maintain status between pages. It always shows an empty cart when a page first loads irrespective of the quantity in the cart. How can I force it to update to the current status of the contents of the cart (which is being properly maintained by PrestaShop)? Just to be clear: If I update the cart from a product page the top icon immediately shows the correct amount when the pop up window closes - but then when going to the cart page, the top cart icon displays '0' products until I manually increment it. Any ideas on how to solve this would be welcome! Link to comment Share on other sites More sharing options...
Richard Dev Posted April 22, 2019 Author Share Posted April 22, 2019 FYI - as a work-around I used javascript and the cart variable to programmatically update the html holding the value of the cart's contents (number of products) when a page loads... Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now