Home › Forums › WoodMart support forum › Use images from product variations
Use images from product variations
- This topic has 8 replies, 2 voices, and was last updated 5 years, 9 months ago by Elise Noromit.
-
AuthorPosts
-
February 26, 2019 at 11:56 am #109872
eimulexParticipantHi,
I am trying to set up variable products to display their images uploaded directly to variable product not to attribute term.
I know its a duplicate post from https://xtemos.com/forums/topic/use-images-from-product-variations/ tried to follow the instructions provided there as a guide, but failed.At the moment we can look at this product https://internetinesparduotuves.lt/kpnaujas/plaukams/kadus-extra-rich-creme-demi-permanent-plauku-dazai-60ml/
and the color option for 6.4 should be displaying the image from product variation (all of them are uploaded http://prntscr.com/mqb5ic ), however it fails.
Added this:woodmart/woocommerce/single-products/add-to-cart/variable.php between lines #41 and #42 $available_variations = $product->get_available_variations();
Also tried to set a generic color for attribute in Products > attributes for 6.4 color to #000000, but then the 6.4 attribute on product page is shown as #000000 color…
Theme setup for shop>attribute swatches: http://prntscr.com/mqb8mi
P.S.
Just to be clear most of the attributes at the moment have pictures attached, however, we want to use them directly uploaded to variations, as the images differ between different products.Kind regards,
Eimantas.February 26, 2019 at 12:56 pm #109898
Elise NoromitMemberHello,
Please provide your site admin access so that we could check the settings and suggest.
Best Regards
February 26, 2019 at 12:59 pm #109899
eimulexParticipantHere it is
February 26, 2019 at 2:00 pm #109914
Elise NoromitMemberHello,
If you want the swatches to show the featured images of the variations, you need to add images to your variations https://gyazo.com/b23f9d58a0a333298fd2600301c0da1c
Best Regards
February 26, 2019 at 3:09 pm #109937
eimulexParticipantHi,
I did asign the images. Still not working, what am I missing else?
February 26, 2019 at 9:08 pm #109990
Elise NoromitMemberHello,
Please deactivate all the plugins not related to the theme, and switch to the parent them and check the issue.
Best Regards
February 27, 2019 at 8:35 am #110037
eimulexParticipantHi,
Thanks, seems that one of the woo optimization plugins (scalability pro) had an affect.
We have set a default color to #000000 for all attribute terms.
Now I see that I have a problem when there is a lot of variations.
The images dont show up:
https://internetinesparduotuves.lt/kpnaujas/plaukams/expertia-professionel-dazomasis-plauku-kremas-100-ml/
https://internetinesparduotuves.lt/kpnaujas/plaukams/londacolor-demi-permanent-plauku-dazai-60ml/And its not that like we need to add images to all variations as here it does work with image attached to only one variation: https://internetinesparduotuves.lt/kpnaujas/plaukams/kadus-color-switch-plauku-dazai-80-ml/
Any ideas?
February 27, 2019 at 11:23 am #110072
eimulexParticipantHi,
We have modified the code:
woodmart/woocommerce/single-products/add-to-cart/variable.php $available_variations = $product->get_available_variations();
and all works well now I guess…
February 27, 2019 at 2:25 pm #110094
Elise NoromitMemberHello,
That is great! If you have any questions please feel free to contact us.
Best Regards
-
AuthorPosts
- You must be logged in to create new topics. Login / Register