Hi Kamil,
We are sorry for the inconvenience.
We need an event from your filter plugin.
The event must trigger once new products are loaded (via Ajax) after filtering.
Let’s consider Product Filters for WooCommerce as an example:
It offers this trigger: wcpf_update_products
Using the trigger we can add custom scripts.
jQuery(document).ready(function( $ ){
jQuery(window).on(‘wcpf_update_products’, function () {
console.log(‘Hi’);
});
});
Once you get the trigger, we will share a script to fix the issue.
Thank you
GetWoo Swatches with products fillters
Kamil Kuciel
Hello, I kindly ask for your help. The issue concerns your plugin, Product Swatches, and the swatches that appear under the product image on the “shop” page. I am also using the plugin WooCommerce Product Filters, which simply allows product filtering. However, when I use the filter (for example, selecting a category or color at the bottom, or any other option in the filters), the swatches under the product stop working. 🙁
I have tried countless ways to solve this, but I am not sure if it’s even possible to fix. Could you please help with this issue? I have also attached a photo
.
Thank you in advance for your assistance.
Best regards,
Kamil Kuciel