Title: Mini Cart initialization
Last modified: June 19, 2023

---

# Mini Cart initialization

 *  Resolved [dG](https://wordpress.org/support/users/gottschalk/)
 * (@gottschalk)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/mini-cart-initialization/)
 * 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:
 *     ```wp-block-code
          $(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](https://wordpress.org/support/users/gottschalk/)
 * (@gottschalk)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/mini-cart-initialization/#post-16847464)
 * 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
 *  [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * (@xue28)
 * [2 years, 11 months ago](https://wordpress.org/support/topic/mini-cart-initialization/#post-16861166)
 * Hi [@gottschalk](https://wordpress.org/support/users/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](https://woocommerce.com/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.

 * ![](https://ps.w.org/woocommerce/assets/icon.svg?rev=3234504)
 * [WooCommerce](https://wordpress.org/plugins/woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/woocommerce/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [xue28 (woo-hc)](https://wordpress.org/support/users/xue28/)
 * Last activity: [2 years, 11 months ago](https://wordpress.org/support/topic/mini-cart-initialization/#post-16861166)
 * Status: resolved