Suddenly, the behaviour of the modal changed and I really can't understand what would be the issue.
When closing the modal using the "Continue shopping" button or the "X" (close) button, a request is sent to the ProductController containing all the product ids from the product list displayed on the page.
It also changes the url in the search bar, but remains on the current page.
Also, it adds quantity divs to product miniatures, where they should not be....
Steps trying to solve:
I deactivated custom modules.
Cleared cache (manually + from BO).
Upgrade ps_shoppingcart.
Reset ps_shoppingcart.
Same behaviour...
Solved with bad hardcoding practice, but I really need help because I am practically remaking modal closing behaviour, since the jQuery based one sends request to ProductController:
themes/modules/ph_shoppingcart/modal.tpl removed:
data-dismiss="modal"
themes/modules/ph_shoppingcart/modal.tpl added:
custom-modal class to "Continue Shopping" button and "X" button
<script> $(document).click('.custom-modal-close', function() { $('#blockcart-modal').remove(); $('.modal-backdrop').remove(); $('body').removeClass('modal-open'); }); </script>
On http://demo.prestashop.com/ no request in made when the "Added to cart" modal is closed
I would really appreciate some input here. Even the place where clicking on a data-dismiss modal element could send this request. Thank you!