fbpx
Want To Add Extra Images Per Product Variation For Free? Download Now

Elementor Taxonomy filter with Variation Swatches for WooCommerce

Hello,

I am using your plugins for an e-commerce website. Visible here : https://n7.devpoisson.fr/boutique/, i used Elementor to display my product via a grid loop.

When you hover the different product, your plugins is working perfectly but when you used the taxonomy filter, the different variations became unclickable after the filter effect until you refreshed the webpage.

Is it an incompatible feature between elementor filter way ( probably AJAX way ) and your filter or it is some other problem ?

 

Thank you

Hakik Zaman

Hi Jonathan,

Thanks for reaching out to us. We need an Ajax trigger that will fire after new products are loaded.

As the Berocket plugin shared this- berocket_ajax_products_loaded

So, please contact your filter plugin author and ask for a trigger that fires after the new product loads.

Then use it like this inside your current child theme’s functions.php file-

add_action( 'wp_footer', function(){
?>
<script id="wvs-ajax-compatibility" type="text/javascript">
jQuery(document).on('berocket_ajax_products_loaded', function () {

jQuery(document).trigger('woo_variation_swatches_pro_init');
});
}
</script>
<?php
}, 99 );

Just replace the berocket_ajax_products_loaded with the provided Ajax trigger.

Thank You

Hi there,

I am not sure to understand but I am not using the Berocket plugin to filter but the inside widget of Elementor Pro called Taxonomy Filter.

The page is here: https://n7.devpoisson.fr/boutique/ and each tag at the top of the page is a product category.

 

Jonathan

Hakik Zaman

Hi Jonathan,

I am not sure to understand but I am not using the Berocket plugin to filter but the inside widget of Elementor Pro called Taxonomy Filter.

I didn’t say you are using the “Berocket” plugin. I just gave an example of the trigger they have provided.

Please contact your filter plugin author and ask for a trigger that fires after the new product loads. You can give them the above trigger example for better understanding.

Thank You

Ok sorry for this misunderstanding, I thank you, and I will try to do this

 

Hello,

The Elementor support didnt really help me about the bug as is it for them only a bug about CSS compatibilty. After some test, I was able to observe that the bug only is when the ” Convert default dropdowns to button. ” is activated.

When I have to select a variation with select list there is no problem with the ajax category refresh

Did u have an idea about this ?

 

Thank’s

Hakik Zaman

Hi Jonathan,

Unfortunately, it depends on the filter plugin you are using.

If they haven’t a trigger to call another function, it is quite impossible to reinitialize our Swatches data.

So, swatches will not be clickable.

Thank You