Home Forums WoodMart support forum YITH Wishlist Premium

YITH Wishlist Premium

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #300804

    metuza
    Participant

    Hello,

    After a few hours of adding custom css the YITH Wishlist premium plugin works very well with Woodmart. There is only one issue and that is in product loop/archive pages when LOAD MORE pagination is clicked the wishlist icon/heart is not loaded into the loaded products.

    I received this anser from YITH support:

    1. Does your theme add the ajax loading? If yes, the best way to do it is that you contact the theme support and ask them the trigger where I can add my code after items are loaded. They can execute this code in the trigger:

    $(document).trigger(‘yith_wcwl_fragments_loaded’);

    Is this anything you can help us with?

    Brgds
    Rune

    #300834

    Hello,

    Please add this snippet to the Theme Settings > Custom JS > On document ready:

    jQuery(document).on('wdQuickViewOpen', function() {
    	   jQuery(document).trigger('yith_wcwl_fragments_loaded');
    });

    Best Regars

    #300838

    metuza
    Participant

    Hello,

    I do not belive that will help as it is for the quickview option.

    I need to trigger yith_wcwl_fragments_loaded each time i click on LOAD MORE PRODUCTS or when using infinite scroll to load more products. The pagination functionality.

    Brgds
    Rune

    #300839

    metuza
    Participant

    Hi again,

    Problem solved as i figured it out from the script. The below code do the trick.

    jQuery( document ).on( ‘wdLoadMoreLoadProducts’, function(){
    jQuery(document).trigger(‘yith_wcwl_reload_fragments’);
    } );

    Brgds
    Rune

    #300928

    Hello,

    Thank you for sharing the code.

    If you have any questions please feel free to contact us.

    Best Regards

Viewing 5 posts - 1 through 5 (of 5 total)