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

Swatches broken after plugin update

Marc Ringrave

Hello,

Sorry if you received 2 messages from me.  I have updated an old ticket and I don’t know if you have received it.

in this old ticket, you have my credentials and the code your did for me in the past.

Thank you in advance for your help and your time.

Cheers

Marc

Hakik Zaman

Hi Marc,

Thanks for reaching out to us.

Let’s start a conversation on this new ticket. It will help me to track your issue.

The previous code I provided is not needed in this new update.

Just replace the previous code with-

add_action('woo_variation_swatches_pro_archive_page_loaded', function($wvs_pro){

remove_action('woocommerce_init', array( $wvs_pro, 'enable_swatches' ), 1);

add_action('woocommerce_after_shop_loop_item_title', array( $wvs_pro, 'after_shop_loop_item' ), 9);

}, 10, 1);

Then let me know if your issue is resolved or not.

Thank You

Hakik Zaman

Hi Marc,

I have changed the image selector as per your theme wrapper.

Can you please check and confirm if it works from your side or not?

Before checking don’t forget to clear your cache like- Browser Cache, Caching Plugin Cache, and Server-Side Cache.

Hope to hear from you soon!

Thank You

Marc Ringrave

It works just perfect now !!!

Thank you so much for your time and VERY quick feedbacks.

Have a great day !

Marc