• Resolved platfrmeu

    (@platfrmeu)


    Hey,

    Whenever I AJAX filter my product on category, colour, tag or whatever the Yith wishlist heart in the top right corner of my image disappears. This makes people to add more items to their wishlist.

    This problem occurs on each page that has products and it happens every single time I AJAX filter.

    Could you please help me with this?
    Thank you already!

    The page I need help with: [log in to see the link]

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author YITHEMES

    (@yithemes)

    Hi there

    This will require some explicit compatibility
    Please, try to add the following code at the end of functions.php file of your theme or child theme

    if ( ! function_exists( 'yith_wcwl_berocket_filters_compatibility' ) ) {
    	function yith_wcwl_berocket_filters_compatibility() {
    		wp_add_inline_script(
    			'jquery-yith-wcwl',
    			"
    				jQuery( function( $ ) {
    					$(document).on( 'berocket_ajax_products_loaded', function() { $(document).trigger('yith_wcwl_init') } );
    				} );
    			"
    		);
    	}
    	add_action( 'wp_enqueue_scripts', 'yith_wcwl_berocket_filters_compatibility' );
    }
    

    This will re-init wishlist elements after filtering action

    Thread Starter platfrmeu

    (@platfrmeu)

    Amazing work, thank you so much!

    Plugin Author YITHEMES

    (@yithemes)

    You’re welcome

    If you enjoy our plugin, please take a couple of minutes to leave us a 5 star review; this would really help, and support our work
    Thank you!

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Wishlist Icon Disappearing when Ajax Filtering’ is closed to new replies.