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

Variation swatches Pro Plugin showing an error

Burhan P

I am getting below or attached error from this plugin. I have updated it to the latest version but still same error occurs. It also affects caching and layout for some pages.

 

Error.png

 

How do I fix this?

Hakik Zaman

Hi Burhan,

Thanks for reaching out to us. You are using the following snippet on your site:

do_action('wvs_pro_variation_show_archive_variation');

The action is deprecated since the version 2.0 series of the Swatches plugin.

Instead, use the following:

if ( function_exists( 'woo_variation_swatches' ) ){
      woo_variation_swatches()->show_archive_page_swatches();
}

Thank You