Home › Forums › WoodMart support forum › Use images from product variations
Use images from product variations
- This topic has 19 replies, 2 voices, and was last updated 6 years, 12 months ago by
Artem Temos.
-
AuthorPosts
-
March 5, 2018 at 5:47 am #43822
Changyun SonParticipantHi,there
I’ve just make a product using import tool.
But I want our swatch image want to same with uploaded image like Amazon.com
But our listing option has only color name.
How can I resolve this situation?Attached file is our listing on woodmart theme, and Amazon listing (we want to change)
Thanks!
Attachments:
You must be logged in to view attached files.March 5, 2018 at 7:35 am #43841
Artem TemosKeymasterHello,
You need to enable the option ‘Use images from product variations’ in Theme Settings -> Shop -> Attributes swatches. Then, you need to add images for each variation while editing your product in Dashboard -> Products -> edit product.
Regards
March 5, 2018 at 2:56 pm #43967
Changyun SonParticipantHi,
I’ve just enable ‘Use images from product variation’. But anything changed.
Could I select in product attribute ‘Grid swatch attribute to display’?
And I made the product variation using color attribute and check the visible on the product page, used for variation.
Please let me know how to change the swatch image from product variation step by step.
Thanks again.
March 5, 2018 at 3:13 pm #43973
Artem TemosKeymasterYes, you need to select an attribute for
Grid swatch attribute to display
as well.
And you just need to upload an image for each variation. Could you please send us a screenshot of your variation list to see if you upload images to them or not?March 6, 2018 at 2:45 am #44082
Changyun SonParticipantGrid swatch attribute to display – pa_color
Attached file is attribute and variation. and product page.Thanks!
Attachments:
You must be logged in to view attached files.March 6, 2018 at 7:40 am #44118
Artem TemosKeymasterPlease, provide us your admin access so we can login and check this on your side.
Thank you in advance.
March 6, 2018 at 8:06 am #44137
Changyun SonParticipantHi,there
I write below private contentMarch 6, 2018 at 8:35 am #44153
Artem TemosKeymasterWooCommerce system doesn’t provide frontend with all variations if their number is bigger than 40. And because of that images for some variations are not available in the template file. You can fix it by adding the following line to the file
woodmart/woocommerce/single-products/add-to-cart/variable.php
between lines #41 and #42$available_variations = $product->get_available_variations();
Regards
March 6, 2018 at 1:31 pm #44233
Changyun SonParticipantHi,there
I changed the variable.php but nothing is changed.
Is there anything to do?Thanks!
March 6, 2018 at 2:52 pm #44252
Artem TemosKeymasterPlease, provide us your FTP access so we can check it.
March 6, 2018 at 3:21 pm #44271
Changyun SonParticipantour FTP server and pass
March 6, 2018 at 3:29 pm #44276
Artem TemosKeymasterYou didn’t select the attribute here https://gyazo.com/f8ca38ea358faa6889b1c933b9b286e0
And you need to set colors for each attribute term in Products -> Attributes.March 6, 2018 at 4:17 pm #44304
Changyun SonParticipantGrid swatch attribute to display?
It was pa_color and I changed the variable.php file but anything changed.
So I delete the selection pa_color.Now I select the pa_color. But there is no change.
What’s the problem?
March 6, 2018 at 7:20 pm #44330
Artem TemosKeymasterIt works well for those colors where you specified swatches values as per our instruction https://gyazo.com/c604d9e1bfa73a223abb4650608228fb
March 7, 2018 at 5:42 am #44383
Changyun SonParticipantThank you for your message. It works.
But I have last question.
To applied product swatch image, I manually select the color in color attribute?
Our product have too many color attribute actually over 100.If you have a solution, please let me know
Thanks!
March 7, 2018 at 7:43 am #44401
Artem TemosKeymasterYes, you just need to set color for each attribute’s term once to be able to use images from variations.
March 8, 2018 at 2:10 pm #44707
Changyun SonParticipanthi again.
One more question.I want see the swatch image only in product page, do not want to see the swatch image in product grid page. Is this possible?
If you hard to understand, please see below picture.
Thanks!
Attachments:
You must be logged in to view attached files.March 8, 2018 at 8:22 pm #44752
Artem TemosKeymasterHi,
Try to edit the file
woocommerce\content-product-quick.php
and remove this code<?php echo woodmart_swatches_list(); ?>
March 8, 2018 at 11:25 pm #44782
Changyun SonParticipantThank you very much
March 9, 2018 at 7:37 am #44816
Artem TemosKeymasterYou are welcome!
-
AuthorPosts
The topic ‘Use images from product variations’ is closed to new replies.
- You must be logged in to create new topics. Login / Register