Jump to content

Last Products Added Repeated In Checkout Page


Recommended Posts

Hi all,

 

I have a Prestashop install with a lot of modules in a 1.6.1.3 version. When I add a product (or products) to the cart, if you go to the checkout page, the last products added appears repeated in the blockcart, but not in my order. If you recharge the page everything appears correctly.

 

I've been able to find the problem (I think) but I don't know how to resolve it.

 

When you add a new product, is saved in the  cart_product table with the id_address_delivery equal to 0, when you access to the checkout page, the id_address_delivery is updated but the blockcart.tpl has already been loaded, so it shows the id_address_delivery for this last products as 0.

 

How can I prevent the blockcart.tpl to load before this table update?

 

Thanks in advance!

Link to comment
Share on other sites

Hi,

 

Yes I'm using your SuperCheckout module v3.0.4. Which changes did you made in the ajax-cart.js?

 

All that I need is that the cart_product table update made before the blockcart.tpl load, so the product id comparation made in the js works correctly, as it does when you recharge the checkout page.

 

Thanks

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