Infinitescroll module and product list attributes compability

 Problem with the table of attributes of the list of products with infinite scroll page 2 page 3 the pop up does not open 

can it be fixed ?




Hello,
usually it is a matter of fact that "infinitescroll" module do not trigger prestashop event updateProductList,
prestashop documentation available here points that this event should be triggered each time the list of products is updated.
updateProductListOn every product list page (category, search results, pricedrop and so on), the list is updated via ajax calls if you change filters or sorting options. Each time the DOM is reloaded with new product list, this event is triggered.


so, i checked your website in context of this problem, and as i supposed - the event is not triggered.
unfortunately i do not know your infinitescroll module and the way of how it was developed. So it is really hard for me to provide instruction how to trigger this event when your module updates list of products.

in this case i can suggest solution that will not change your infinitescroll,
please open this file: /themes/at_movic/assets/js/custom.js  

and at the end paste code
$(document).ready(function(){
    $("body").on('DOMSubtreeModified', "#js-product-list .products", function () {
        if (typeof prepareBlockLayeredAfterPLA == 'function') {
            prepareBlockLayeredAfterPLA();
        }
    });
});

after save it might be required to clear shop cache (to recompile theme's minified .js file and include new code to it that i suggested to use above)
let me know please if this solves problem. It should.
Share on Google Plus

About VEKIA

This is a short description in the author block about the author. You edit it by entering text in the "Biographical Info" field in the user admin panel.
    Blogger Comment

0 comments:

Post a Comment