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

Variation Swatches Error in archive – shop page

Hello GetWooPlugins team.

The Variation Swatches pro plugin is generating several problems so I am attaching the following videos of each error so that you can help me. The website is https://www.kitcanpetshop.pe/

Error #1: Image change based on variation stops working when moving to the next page of a store section. Attached video and link so you can perform the test.

Video: https://www.loom.com/share/05a7cc294bbc4fa4b98bdf77c9bf2593

Link: https://www.kitcanpetshop.pe/producto-categoria/marcas/gran-plus/

Error #2: When using section filters, product variation images stop working again. Even after removing the filters, it still does not change the corresponding images.

Video: https://www.loom.com/share/58dd474308d543aa9c20e2294f43985d

Link: https://www.kitcanpetshop.pe/producto-categoria/marcas/gran-plus/

Error #3: In the section, you can see the stock of the product, and in previous versions it was possible to change the word “STOCK” or “WITHOUT STOCK”. Now the products appear with “STOCK” but when entering there is a product of the variation that does not have it.

Video: https://www.loom.com/share/e1a6d7556a344c92a36641f5a9a0e261

Link: https://www.kitcanpetshop.pe/producto-categoria/marcas/gran-plus/

I leave you the accesses of the administration so that you can review it please.

Hakik Zaman

Hi Kitcan,

Thanks for getting back to us.

Error 1 & Error 2:

I have changed the code inside your child theme > jet-woo-builder as per our new codebase.

Also changed the wrapper and selector here- https://prnt.sc/2JT4ka0mZb-J

Then added this snippet- https://prnt.sc/02yKjnHDS1y4 using the Code Snippets plugin:

add_action('wp_footer', function(){

if( !is_product() || !is_archive() ){
return;
}

?>
<script id="jet-woo-fix">
jQuery(document).ready(function( $ ){

// Your code is here

jQuery( document ).on( 'jet-filter-content-rendered', function(){

jQuery(document.body).trigger('woo_variation_swatches_pro_init');

});

});
</script>
<?php
}, 99);

Please check now and before checking don’t forget to clear your caches like- Browser Cache, Caching Plugin Cache, and Server-Side Cache [if you have any]

Error 3:

Can you temporarily disable our swatches plugin and check if it resolves your issue or not?

Thank You