Jump to content

Products with options in cart - quantities problem


Christos Tzoumas
 Share

Recommended Posts

** edit [SOLVED] ** I figured out that a custom module caused the problem. Disabling it solved the problem. thanks!

I've been in trouble for a couple of days now, relevant to prestashop cart, having some products with options.

Whenever I add products with options selected in my cart, quantity plus button does not increase product's quantity, but adds the same products -with not options- once more instead. Minus button does nothing.

On the other side, quantity buttons work fine with products having no options.

I tried logging things in CartController.php when updating ajax calls arrive, i see duplicates in the products array, but can't fix the problem even after transforming the products-in-cart array as I wish.
Is there any other logic I could follow to affect cart updates with my changes? What would you recommend? Could anyone think of a better solution? - as this is just a workaround.

Thanks in advance

 

Edited by Christos Tzoumas (see edit history)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More