Extra Variation Images (internal module)

You are here:
Estimated reading time: 1 min

This functionality works almost exactly the same as “WooCommerce Additional Variation Images” plugin, even better because it’s optimised to support a wide range of gallery styles and options.

If you access a product’s variation, you’ll notice a button called “Add extra images”:

As you can see, by default the module is disabled, so you’ll first need to access Customizer > WooCommerce > Product Page – Layout and enable the “Extra Variation images” module eg: https://d.pr/i/xN1Pwa .

Use “WC. Additional Variation images” storing key

In case you used WooCommerce Additional Variation images plugin on the site prior installing Rey and already have products that have loaded images through it, you can keep using that same storage, with Rey, by adding this code snippet:

add_filter('reycore/module/extra_variation_images', function($settings){
	$settings['key'] = '_wc_additional_variation_images';
	return $settings;
});

Using this, you can safely disable WooCommerce Additional Variation images plugin. Even if you disable Rey in the future, you can switch back to this plugin.

Was this article helpful?
Dislike 0
Views: 779

3 Replies to “Extra Variation Images (internal module)”

  1. Daniel

    Hello Mark
    I have a problem with photos for variant products. Photos of all available varieties are displayed only with the first varian indicated as the first one in the catalog. After selecting each other variant, e.g. color, only one photo is shown. In your demo, all variants of a given product have all photos available after clicking on them. I have already exported the file and I can see that there are photos assigned to each variant, but it is not visible in the store. How to do it ?

    1. Marius H[ Post Author ]

      Hey there!

      I’m not sure if i understood correctly. Do you mean the fact that when changing a product variation in the catalog, it only changes the first image eg: https://d.pr/v/pQ2630 ? If so, indeed, only the first image of the variation is supported in the catalog pages.

      If you meant the product pages gallery changing all images, in this case you’ll need to make use of the Extra variation images option in Customizer > WooCommerce > Product catalog – layout eg: https://d.pr/i/iL1O1Y , and in the product variations, you’ll have the ability to upload multiple images.

  2. Daniel

    Thank you very much 🙂 Problem solved.
    I had this indicator checked constantly. I marked it off as in the tip and the photos are only next to their variants.
    Thank you

Join the conversation