Home › Forums › WoodMart support forum › Automatically replace attribute dropdown with variation thumbnails
Automatically replace attribute dropdown with variation thumbnails
- This topic has 18 replies, 3 voices, and was last updated 6 years, 4 months ago by
Artem Temos.
-
AuthorPosts
-
September 29, 2018 at 12:03 pm #79784
plusinternetParticipantIf you check the attached screenshot you can see that the Colour attributes for variations are shown in a drop-down. Is there a way to automatically replace the drop-down with thumbnails for each option?
Attachments:
You must be logged in to view attached files.September 29, 2018 at 1:26 pm #79805
Elise NoromitMemberHello,
There are settings allowing to show attributes as featured images of the variations, however, some part of work is done manually.
Please navigate to Dashboard -> Products -> Attributes -> Color -> Configure iterms, enable swatch as shown http://prntscr.com/jskm29
Navigate to Theme Settings > Shop > Attribute swatches > choose pa_color (your color attribute) and enable “Use images from product variations”
Make sure each variation in a variable product has an image: http://prntscr.com/kk870w
Best Regards
September 29, 2018 at 2:50 pm #79823
plusinternetParticipantExcellent, do you know of a way I can automatically tick that option for ALL products, either via phpMyAdmin or ideally through WP-ALL-IMPORT
September 29, 2018 at 3:24 pm #79826
Elise NoromitMemberHello,
No, there is no trick. Product filling is a manual process.
Best Regards
September 29, 2018 at 3:39 pm #79829
plusinternetParticipantOK, thank you.
Finally, when the products are displayed on the homepage, you will see no images are displayed. Do I have to add the images manually via the attributes?
If this is the case, is there a way this data can be implemented via my wp-all-import system.
We work off a Google Sheet that is automatically imported with potentially 1000s of products being imported/updated daily.
September 29, 2018 at 3:51 pm #79831
Elise NoromitMemberHello,
Read and follow the instructions: https://docs.woocommerce.com/document/managing-products/
Best Regards
September 29, 2018 at 4:00 pm #79832
plusinternetParticipantWhat about the issue where variation/attribute images are displayed on the product page but not the category page or homepage?
September 29, 2018 at 4:12 pm #79835
Elise NoromitMemberHello,
What do you mean? I see the variation product works properly: https://gyazo.com/4ef19d4b3657917ff87c42e86f93700d
Best Regards
September 29, 2018 at 5:19 pm #79844
plusinternetParticipantThey should be product thumbnails like you’ll see on the product page.
September 29, 2018 at 5:25 pm #79848
Artem TemosKeymasterPlease, provide us your admin access so we can check the configuration.
September 29, 2018 at 5:45 pm #79852
plusinternetParticipantadded you, please see Private Content for login information.
September 29, 2018 at 6:24 pm #79865
Elise NoromitMemberHello,
Navigate to Products > Attributes > Color > Configure items and add the default images into each color value: http://prntscr.com/l08hbs
Best Regards
September 29, 2018 at 7:27 pm #79868
plusinternetParticipantI have to ask, is there anyway to automate this? I’m trying to automate the update of the website so everything can be imported automatically.
The WP ALL IMPORT website says:
Technical Details: Full Support For Custom Fields, Custom Post Types, Custom TaxonomiesWP All Import can import to Custom Fields (post meta), Custom Post Types, and Custom Taxonomies. WP All Import can even import to serialized Custom Fields. And if your theme or plugin stores data in custom MySQL database tables, our API hooks let you import there as well.
Would this apply to editing the attributes that you referenced in your last reply? I understand this might be outside the scope of your support but if I am to speak to a developer I need to understand what I am asking them to do.
Many thanks
September 29, 2018 at 8:28 pm #79873
Artem TemosKeymasterHi,
Yes, we use custom fields and term meta table so you should be able to automatize it.
Regards
September 30, 2018 at 1:18 am #79878
plusinternetParticipantWould you be able to tell me which custom fields need to be edited in order to import data to the two fields shown in the attached image?
WP-ALL-IMPORT allows taxonomies to be imported with Term META, its auto detect feature is pulling up the following data:
product_count_product_cat
thumbnail_id
category_icon_alt
category_icon
woodmart_chosen_sguide
stretch_slider
height
height_tablet
height_mobile
arrows_style
pagination_style
pagination_color
autoplay
animationI believe, if I can find out the name of the fields I need to import data to (see attached image) I can use WP-ALL-IMPORT. At the very least could you please direct me to which file I need to review to find this info?
I appreciate your help and assistance, thank you.
Attachments:
You must be logged in to view attached files.September 30, 2018 at 1:41 am #79881
plusinternetParticipantAfter further testing, I have got the attribute images working correctly on the homepage, category page but not on the product page, it displays the attributes as a drop down box.
When I edit the Attribute Terms and tick the box titled “Enable Swatch” it makes the attributes display as a thumbnail but stops displaying the thumbnails on the homepage and category page (it displays the attribute name as text).
This seems to be a bug, are you able to review and help me fix this?
September 30, 2018 at 11:50 am #79913
Artem TemosKeymasterWe still don’t see that you uploaded default images for your color terms https://gyazo.com/36e5b5c2e3bc663ca51e4ec43e7c691e
They are required even if you are using images from your variations.Term meta is called
image
and it is for you your attributes terms, not for the product itself.October 4, 2018 at 5:13 pm #80957
plusinternetParticipantI have resolved this issue, I am now able to import product data and the custom attribute data automatically using WP-ALL-IMPORT.
Thank you for your help.
October 4, 2018 at 5:40 pm #80968
Artem TemosKeymasterGreat, you are welcome.
-
AuthorPosts
- You must be logged in to create new topics. Login / Register