fbpx
Want To Add Extra Images Per Product Variation? Download This Free Plugin

Variation Swatches Not Appearing on Shop Page

Hello,

Some of our variation’s images aren’t showing up on the shop pages and when they do, they are below the CTA button. (see screenshot) https://paste.pics/977fe1a9f4e914c24621d09e0077f4e5

You can see on this page, only some of the variation images show while others don’t. https://lavarijewelers.com/product-category/body-jewelry/nose-rings/.

Can you please look into this?

 

Thank you,

Jessika

Hakik Zaman

Hi Jessika,

Thanks for reaching out to us.

You have selected here the Stone Type (stone-type) attribute.

So, it displays which has the Stone Type attribute.

For your convenience, I have selected the First Attribute. Now, it will display the first attribute of the products.

Please check now and let me know whether it helps or not.

Hope to hear from you soon.

Thank You

Hakik Zaman

Hi Jessika,

You are using a builder to display products and they didn’t keep a standard WooCommerce hook.

Therefore, I have added the following snippet using the Code Snippets plugin installed on your site:
add_action('woo_variation_swatches_pro_archive_page_loaded', function($wvs_pro){
remove_action('woocommerce_init', array( $wvs_pro, 'enable_swatches' ), 1);
}, 10, 1);
add_filter('woocommerce_loop_add_to_cart_link', function( $archive_atc_btn, $product, $args ){
return do_shortcode('[wvs_show_archive_variation]').$archive_atc_btn;
}, 10, 3 );
Now it displays like this- https://paste.pics/ed00df8b8ac5951902602492bc5743c8

Hope to hear from you soon.

Thank You

Hello Hakik,

Looks great! I appreciate your help with this issue. Have a great day!

Thank you,

Jessika