• Resolved dG

    (@gottschalk)


    Hello!

    I am using the standard WooCommerce Mini-Cart in combination with the YITH Ajax Product Filter.

    I just became aware, that the WooCommerce Mini-Cart stops working after the YITH Filter is used and the filtered products are loaded via Ajax.

    The Amount doesn’t gets refreshed anymore and the sidebar doesn’t open when you click on the mini-cart icon.

    I am also in contact with the YITH Developers, since I am pretty sure that this is a problem that has to be addressed by them.

    Just wanted to ask if there is a way to re-initialize the mini-cart with JS in the meantime ?

    I have this workaround that gets things working again after filtering:

       $(document).on('yith-wcan-ajax-filtered', function(){
    
            $(document.body).trigger('wc_fragment_refresh');
            location.reload();
    
        });

    But this is a rather stupid solution, since the page is loaded twice.

    Is there something else I can call instead of the location.reload() to get the mini-cart re-initialized?

    Thank you for your help!

    Best regards,

    David

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter dG

    (@gottschalk)

    Hello!

    I am still looking for a better way to initialize the mini-cart.

    Isn’t there some function I can call after the ajax reload ?

    Thank you for your help!

    Best regards,

    David

    Hi @gottschalk

    Thanks for reaching out!

    From your description, it appears that the issue you’re experiencing is a conflict between the WooCommerce Mini-Cart and the YITH Ajax Product Filter.

    As you’re already in touch with the YITH Developers, it would be best to continue to work with them as they would have a deeper understanding of their own product’s codebase and potential conflicts.

    Furthermore, kindly be informed that this is a third-party plugin that we don’t provide support for based on our Support Policy, hence, I recommend that you reach out to the developers of the plugin for further assistance. They will be better equipped to help you resolve any issues you’re experiencing with the plugin.

    All the best and hopefully, the issue will be fixed soon.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Mini Cart initialization’ is closed to new replies.