{"id":2015,"date":"2021-11-05T02:10:32","date_gmt":"2021-11-05T02:10:32","guid":{"rendered":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/?p=2015"},"modified":"2024-03-21T17:40:54","modified_gmt":"2024-03-21T17:40:54","slug":"product-attribute-swatches","status":"publish","type":"post","link":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/2021\/11\/05\/product-attribute-swatches\/","title":{"rendered":"Product Attribute Swatches"},"content":{"rendered":"\n<p class=\"wp-block-paragraph\">Beautiful Color and Images Variation Swatches for product attributes<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">UDesign theme has a swatch function for variable product within it. It offers an aesthetic and professional experience to select attributes for variation products. It turns the product variation select options fields into images and colors. It means with the help of this powerful UDesign Swatches, you can show product variation items in images and colors. So, you can say goodbye to dropdown product attribute fields.<\/p>\n\n\n\n<h4 class=\"wp-block-heading mt-9 mb-3\">How many swatch types<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">UDesign provides color and image swatch types. Default is color swatch type. If you want image swatch, go to <code class=\"code-grey\">Theme Options &gt; Features &gt; Advanced Swatch<\/code> and set <code class=\"code-grey\">Enable Image Swatch<\/code> toggle.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img fetchpriority=\"high\" decoding=\"async\" width=\"1024\" height=\"586\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-1024x586.png\" alt=\"\" class=\"wp-image-8216\" srcset=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-1024x586.png 1024w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-768x440.png 768w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<h4 class=\"wp-block-heading mt-9 mb-3\">How can you use it<\/h4>\n\n\n\n<p class=\"wp-block-paragraph\">To set a Color Swatch type or a Image Swatch type of product, your product must be a Variable Product and has&nbsp;corresponding attributes. If those attributes have not been created yet, you first add attributes and terms in <code class=\"code-grey\">Products &gt; Attributes<\/code>.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"1901\" height=\"931\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/product-attributes.png\" alt=\"\" class=\"wp-image-9608\" srcset=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/product-attributes.png 1901w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/product-attributes-1024x501.png 1024w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/product-attributes-768x376.png 768w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/product-attributes-1536x752.png 1536w\" sizes=\"(max-width: 1901px) 100vw, 1901px\" \/><figcaption class=\"wp-element-caption\">Add Product Attribute<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">In order to add new attributes to your variable products, you must input attribute name and choose display type in woocommerce pages. <strong>UDesign<\/strong> supports two major display types: <strong>Select box<\/strong> and <strong>Image Swatch<\/strong>. Once you click save button, you can see new attribute item in the top right table of screen. Here, you can configure sub items for your attributes.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img decoding=\"async\" width=\"930\" height=\"461\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-2.jpg\" alt=\"Feature Image\" class=\"wp-image-2023\" srcset=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-2.jpg 930w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-2-768x381.jpg 768w\" sizes=\"(max-width: 930px) 100vw, 930px\" \/><figcaption class=\"wp-element-caption\">Products &gt; Attributes &gt; Configure terms &gt; Black<\/figcaption><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you have finished adding attributes, you are ready to follow next steps.<\/p>\n\n\n\n<ol class=\"wp-block-list\">\n<li>To set color and image swatch, navigate to <code class=\"code-grey\">Products &gt; Attributes<\/code> and set the type as List for all attributes.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"455\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-3.jpg\" alt=\"Feature Image\" class=\"wp-image-2024\" srcset=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-3.jpg 930w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-3-768x376.jpg 768w\" sizes=\"(max-width: 930px) 100vw, 930px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n\n\n\n<li>Open product edit panel you selected and go to its <code class=\"code-grey\">Product Data<\/code>. Change the product to Variable Product.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"451\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-4.jpg\" alt=\"Feature Image\" class=\"wp-image-2025\" srcset=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-4.jpg 930w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-4-768x372.jpg 768w\" sizes=\"(max-width: 930px) 100vw, 930px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li>Go to Attributes and add color and size attributes to product with these settings.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"449\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-5.jpg\" alt=\"Feature Image\" class=\"wp-image-2026\" srcset=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-5.jpg 930w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-5-768x371.jpg 768w\" sizes=\"(max-width: 930px) 100vw, 930px\" \/><\/figure>\n\n\n\n<ol class=\"wp-block-list\">\n<li><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li><\/li>\n\n\n\n<li>Finally, go to Variations and add variation.<\/li>\n<\/ol>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"431\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-6.jpg\" alt=\"Feature Image\" class=\"wp-image-2027\" srcset=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-6.jpg 930w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-6-768x356.jpg 768w\" sizes=\"(max-width: 930px) 100vw, 930px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">You will then get the result like this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"623\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-7.jpg\" alt=\"Feature Image\" class=\"wp-image-2028\" srcset=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-7.jpg 930w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-7-768x514.jpg 768w\" sizes=\"(max-width: 930px) 100vw, 930px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">If you enable image swatch types in <code class=\"code-grey\">Theme Options<\/code>, it is possible to change swatch types color to image.<\/p>\n\n\n\n<p class=\"wp-block-paragraph\">Go to <code class=\"code-grey\">Product Data &gt; Image Change &amp; Swatch,<\/code> upload images for each color attribute.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"445\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-8.jpg\" alt=\"Feature Image\" class=\"wp-image-2029\" srcset=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-8.jpg 930w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-8-768x367.jpg 768w\" sizes=\"(max-width: 930px) 100vw, 930px\" \/><\/figure>\n\n\n\n<p class=\"wp-block-paragraph\">After clicking <code class=\"code-grey\">Save changes<\/code> button, you can get the result like this.<\/p>\n\n\n\n<figure class=\"wp-block-image size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"930\" height=\"628\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-9.jpg\" alt=\"Feature Image\" class=\"wp-image-2030\" srcset=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-9.jpg 930w, https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2021\/11\/swatch-9-768x519.jpg 768w\" sizes=\"(max-width: 930px) 100vw, 930px\" \/><\/figure>\n\n\n\n<p class=\"mt-6 wp-block-paragraph\">Thanks to our video support, you know this clearly.<\/p>\n\n\n\n<figure class=\"wp-block-video\"><video height=\"720\" style=\"aspect-ratio: 1320 \/ 720;\" width=\"1320\" controls muted poster=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2022\/01\/poster-product-swatch.jpg\" src=\"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-content\/uploads\/sites\/17\/2022\/01\/product-attribute.mp4\"><\/video><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Beautiful Color and Images Variation Swatches for product attributes UDesign theme has a swatch function for variable product within it. It offers an aesthetic and professional experience to select attributes for variation products. It turns the product variation select options fields into images and colors. It means with the help of this powerful UDesign Swatches, [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[17],"tags":[],"class_list":["post-2015","post","type-post","status-publish","format-standard","hentry","category-add-ons"],"_links":{"self":[{"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/posts\/2015","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/comments?post=2015"}],"version-history":[{"count":1,"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/posts\/2015\/revisions"}],"predecessor-version":[{"id":9613,"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/posts\/2015\/revisions\/9613"}],"wp:attachment":[{"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/media?parent=2015"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/categories?post=2015"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/d-themes.com\/wordpress\/udesign\/documentation\/wp-json\/wp\/v2\/tags?post=2015"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}