Integration with the FiboFilters plugin
-
Hi Niloy (@im_niloy),
I develop a few plugins including FiboSearch and FiboFilters. In the FiboFilters plugin, we have a conflict with your JVM WooCommerce Wishlist. The integration requires adding some things to your plugin. Let me explain what’s going on.
The main product’s HTML container is dynamically overwritten in FiboFilters when the page reloads or when the filter state changes. You can learn more how it works here. In these cases, we lose JS events that are registered by JVM WooCommerce Wishlist.
It’s a popular issue and we solve it in integrations with other plugins or themes by calling special functions to reinitialize or reset all events. Unfortunatelly I didn’t find such a function in the JS file
jvm-woocommerce-wishlist/assets/js/wishlist.js
.Could you add a way to reinit all necessary JS events using the global scope variable? It could look like this:
window.cix_wishlist_reinitialize();
Then we and maybe other developers will be able to call this function every time when the JS events need to be registered again, especially after loading products by AJAX.
Best
Damian Góra
- You must be logged in to reply to this topic.