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

Swatches not working for Shop/Archive page

Kushal Patel

Hello,

We are using the pro version of the plugin and we have configured the plugin to show swatches on the shop/archive page.

Yet swatches are not showing up.

This is the URL  and credentials

https://stg.blackandgoldofficial.com/wp-admin
username : themesupport-dev
password : A4ROr$O&TZihkWiFwTxFbp%0

Can we please look into this problem as soon as possible.

Thank you.

Hakik Zaman

Hi Kushal,

Thanks for reaching out to us. You didn’t enable swatch from settings and your theme changed some WooCommerce default hooks. That’s why it was not working.

I have added a plugin called Code Snippet and pasted the below code as a snippet-

function wvs_lusion_addons_support(){
   add_action( 'woocommerce_shop_loop_item_title', 'wvs_pro_archive_variation_template', 31 );
}
add_action('wp', 'wvs_lusion_addons_support');

Please check now and don’t forget to clear your cache (browser cache, caching plugin cache) before checking.

Thank You

Kushal Patel

Hello,

Thank you for the quick fix.

However i have noticed that on the Shop/Archive page, upon selecting the color & size its not changing the image.

Can you take a look at that as well ?

Thanks in advance.

Kushal Patel

Hello,

Let me know if there is any update on the above mentioned issue.

Thanks.

Hakik Zaman

Hi Kushal,

Sorry for our late reply, we have been on weekend leave since Thursday.

Your theme overrides markup and hooks of default WooCommerce. So, our plugin couldn’t push our plugin’s wrapper to ul class.

I have added the wrapper and you should use it like this if you migrate your site.

Please let me know is everything working fine or not from your side.

Hope to hear from you soon!

Thank You

Kushal Patel

Hello,

Thank you for this !

This is really helpful.

And everything is working fine now.

Thank you for all the help again.