fbpx
Enjoy Year-End Sale: 50% Off All Plugins! Coupon Code: NewYear2025

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
issue-support.png.

Thank you in advance for your assistance.
Best regards,
Kamil Kuciel

Golam Kibria

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

Kamil Kuciel

also you can add anything in plugin snippet because with link i send you are an admin

Kamil Kuciel

Do i prepared everything how i should ? Everything okey ?

Golam Kibria

Hi Kamil,

Please check now (watch this screencast).

I have updated the snippet on your site.

'wcpf_update_products' is not your plugin’s trigger; your trigger is 'wpf_ajax_success'

Let me know if you have the desired effect.

Thank You

Kamil Kuciel

It looks like it’s working; I still need to contact the company behind the Filters add-on to see if it’s possible to have the product image change automatically to match the selected color variant from the filter. That would be fantastic if achievable.

thank you !

Golam Kibria

Hi Kamil,

We get excited & honored when you use our plugin on your site.

If you found my support helpful, could you leave your valuable review here: https://wordpress.org/support/plugin/woo-variation-swatches/reviews/?filter=5
(It would be nice if you mentioned your favorite feature in the review 🙂)

Your rating keeps us inspired 🎉️

Is there anything else we can do for you now?

Thanks a lot & have a great day