Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,
    we hope you’re doing well!

    Please replace the last code that I have provided with the following one:

    if (!function_exists('yith_wcwl_custom_script')) {
        function yith_wcwl_custom_script()
        {
            $jquery = '            
                jQuery( document ).ready( function() {
                    jQuery(document).trigger("yith_wcwl_reload_fragments");
    				jQuery( document ).on ( "click", ".wp-block-query-pagination-previous, .wp-block-query-pagination-next", function (e) {
    					e.preventDefault();
    					setTimeout(function() {
    						jQuery(document).trigger("yith_wcwl_reload_fragments");
    					}, 2000);
    				});
    							} );';
            wp_add_inline_script('jquery-yith-wcwl', $jquery);
            wp_add_inline_script('jquery-yith-wcwl-user', $jquery);
        }
        add_action( 'wp_enqueue_scripts', 'yith_wcwl_custom_script', 99 );
    }

    I just tested it in your staging from the console and it works correctly:

    https://www.loom.com/share/fbaccc1aa7f043f5afdee1f02898e2ff

    Check it out and tell us any news.

    Best regards.

    Thread Starter asafm7

    (@asafm7)

    Thanks, @juaancmendez.

    It does seem to work now.

    I think it would be good to work with the WooCommerce team toward a more robust solution that doesn’t require a custom code.

    After all, the YITH WooCommerce Wishlist is a WooCommerce plugin, so it should work with WooCommerce out of the box.

    Thanks again.

    Plugin Support Juan Coronel

    (@juaancmendez)

    Hello there,

    We will take this into account for future updates, thanks for your report!

    Have a nice day.

    Thread Starter asafm7

    (@asafm7)

    Thanks, @juaancmendez. You too.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Add to Wishlist button missing from ajax-ly paginated pages’ is closed to new replies.