Support » Plugin: YITH WooCommerce Wishlist » wishlist icon doesnt appear after ajax call

  • Resolved Roi Webreach

    (@roi-webreach)


    Hey, im using your plugin with a different filter plugin, and after the filter does he’s stuff, the wishlist icon is not loaded, i have the div with the classes “yith-wcwl-add-to-wishlist wishlist-fragment on-first-load”, but it’s empty
    is there a way i can reload it after a thie filtering?
    thanks

    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

    sure! Pleae, try to add the following snippet of PHP 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 should add compatibilty to your filters plugin, and force wishlist to re-init its elements every time a filter is applied to the page

    Thread Starter Roi Webreach

    (@roi-webreach)

    excellent!!! thank you

    Plugin Author YITHEMES

    (@yithemes)

    You’re welcome!

    We are doing our best to improve this plugin. Now we need your help too. In the last days we lost 200+ 5-stars reviews (we are still trying to find a solution). We lost the hard job we made in the last years and at the moment we need to start again to collect nice reviews. Please spend 1 minute of your time to help us with a good review, your feedback can truly make the difference. Thank you very much.

Viewing 3 replies - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.