nicolas wrote: I can see the AJAX request being done when you click on the add to cart button. It also receives the answer from the server with the new cart module content but for some reason the cart module content is not changed as it should.
I'm not clear why, but a simple solution is the deactivate the "Use AJAX when possible for add to cart buttons" option. That will force a full reload of the page with the new cart module content.
This usually means the JS code is not finding the correct element and in fact, it seems there are 2 IDs called "hikashop_cart_module".
This one:
And this one:
This seems to be either an incorrect module configuration or a template related problem.
Posible solutions:
1- Make sure you do not publish more than 1 Cart Module per Page and that the ID of this module is not duplicated on the same page as well.
or for Nicolas,
2- In the file: administrator/components/com_hikashop/helpers/cart.php, on line 272, improve the logic of the selector to match and update more than on cart if present. Example:
Instead of selecting by ID, wich selects the first ID it finds because they are supposed to be unique in a single page, select by Class, and make a loop to update all cart modules in the same page.
I can get to the correct ID if I modify the selector but, it would be ideal you use classes instead of IDs if you want more than one cart per page.