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

Variation swatches issues with Xstore theme

Hello,

I have two issues with the variation swatches plugin in combination with the Xstore theme.

  1. In the shop page, the swatches are not visible.
  2. In the product page, when clicking on the color swatch only the first image of the variation is updated.

Can you please check it?

Hakik Zaman

Hi Athanasios,

Thanks for reaching out to us.

In the shop page, the swatches are not visible.

It depends on the hooks of your theme. If your theme removes the standard hooks of WooCommerce to redesign the template, our plugin will fail to add the swatches with the products.

I have added the following snippet inside your current child theme’s functions.php file-

// GWP - WVS - #152366 Support for Xtore Theme
add_action('et_before_shop_loop_title', function(){

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

In the product page, when clicking on the color swatch only the first image of the variation is updated.

Displaying variation gallery images is not a feature of our plugin, is a feature of your theme.

Could you temporarily deactivate our Swatches plugin and check if is it working without our plugin or not?

Hope to hear from you soon.

Thank You

Hi Hakik,

 

Thanks for your help. The swatches are available in the shop product page now.

Regarding the other issue, even when deactivating the Swatches plugin, only the first variation image is updated when clicking on the color. Notice that if I select both color and size then all images are updated (with your plugin too).

Any ideas?

Hakik Zaman

Hi Athanasios,

If you are indicating this feature- Single Variation Image Preview, unfortunately, this will only work with the default WooCommerce Gallery.

Your theme has any gallery features. Please disable the theme-built gallery and enable the WooCommerce default gallery.

If your theme didn’t provide a visual option to enable the default gallery, please contact theme support and ask them to do it for you.

Note: The `Single Variation Image Preview` feature is an extension of the default WooCommerce gallery. It will not work with your theme-built gallery. Because there are several themes with different gallery structures. Unfortunately, It is not possible to make it compatible with each. That’s why we extended the default WooCommerce Gallery.

Hope to hear from you soon!

Thank You

Hi,

I couldn’t find a way to change the gallery. Can you please help me? I have also installed your gallery (if it helps).

Hakik Zaman

Hi Athanasios,

Please contact your theme author and ask them to enable the default WooCommerce gallery.

It will help you to achieve your goal. I have tried to modify their template file but it doesn’t help.

They will know better about their codebase than us.

Thank You