Jump to content

Edit History

Christos Tzoumas

Christos Tzoumas

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

 

Christos Tzoumas

Christos Tzoumas

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

Screenshot 2020-04-30 at 9.55.16 PM.png

×
×
  • Create New...