{"id":4284,"date":"2020-03-12T13:23:50","date_gmt":"2020-03-12T13:23:50","guid":{"rendered":"https:\/\/demos.welaunch.io\/woocommerce-single-variations\/?post_type=faq&#038;p=765"},"modified":"2020-07-27T09:51:05","modified_gmt":"2020-07-27T07:51:05","slug":"exclude-attributes-variations","status":"publish","type":"faq","link":"https:\/\/www.welaunch.io\/en\/knowledge-base\/faq\/exclude-attributes-variations\/","title":{"rendered":"How to Exclude Attributes \/ Variations"},"content":{"rendered":"<p>Some shops have shirts with 2 variation attributes &#8211; one for the color and one for the size. That would for example be 20 variations if you have 2 colors and 10 sizes (10 x 2).<\/p>\n<p>An example here, you can see the size variation displays for each T-Shirt:<\/p>\n<figure id=\"attachment_5232\" aria-describedby=\"caption-attachment-5232\" style=\"width: 919px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-full wp-image-5232\" src=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/variations-show-size-attribute.png\" alt=\"variations show size attribute\" width=\"919\" height=\"420\" srcset=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/variations-show-size-attribute.png 919w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/variations-show-size-attribute-247x113.png 247w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/variations-show-size-attribute-510x233.png 510w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/variations-show-size-attribute-300x137.png 300w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/variations-show-size-attribute-768x351.png 768w\" sizes=\"auto, (max-width: 919px) 100vw, 919px\" \/><figcaption id=\"caption-attachment-5232\" class=\"wp-caption-text\">variations show size attribute<\/figcaption><\/figure>\n<p>But most of the time you only want to show one attribute variation (e.g. the color one). To do this enable the following settings.<\/p>\n<h2>Exclude attribute in Plugin settings<\/h2>\n<ol>\n<li>Make sure you have clicked on init variations. Try reset before.<\/li>\n<li>Go to plugin settings &gt; variation title &gt; exclude the attribute you do not want to show in the title (e.g. pa_size)<\/li>\n<li>Go to to plugin settings &gt; exclusions &gt; choose the attribute you want to hide.<\/li>\n<li>Enable &#8220;Keep First Variation&#8221; and &#8220;Remove Term from Permalink&#8221; if you want<\/li>\n<\/ol>\n<figure id=\"attachment_5229\" aria-describedby=\"caption-attachment-5229\" style=\"width: 1020px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-5229\" src=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-shop-loop-1024x716.png\" alt=\"exclude size attribute from shop loop\" width=\"1020\" height=\"713\" srcset=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-shop-loop-1024x716.png 1024w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-shop-loop-247x173.png 247w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-shop-loop-510x357.png 510w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-shop-loop-300x210.png 300w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-shop-loop-768x537.png 768w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-shop-loop.png 1095w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><figcaption id=\"caption-attachment-5229\" class=\"wp-caption-text\">exclude size attribute from shop loop<\/figcaption><\/figure>\n<figure id=\"attachment_5231\" aria-describedby=\"caption-attachment-5231\" style=\"width: 1020px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-5231\" src=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-variation-title-1024x747.png\" alt=\"exclude size attribute from variation title\" width=\"1020\" height=\"744\" srcset=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-variation-title-1024x747.png 1024w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-variation-title-247x180.png 247w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-variation-title-510x372.png 510w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-variation-title-300x219.png 300w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-variation-title-768x560.png 768w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/exclude-size-attribute-from-variation-title.png 1040w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><figcaption id=\"caption-attachment-5231\" class=\"wp-caption-text\">exclude size attribute from variation title<\/figcaption><\/figure>\n<p>This will remove all variation products, that are assigned to a size attribute. So if you enable this you will see no products anymore maybe.<\/p>\n<figure id=\"attachment_5230\" aria-describedby=\"caption-attachment-5230\" style=\"width: 1020px\" class=\"wp-caption aligncenter\"><img loading=\"lazy\" decoding=\"async\" class=\"size-large wp-image-5230\" src=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/after-size-is-excluded-1024x470.png\" alt=\"after size is excluded\" width=\"1020\" height=\"468\" srcset=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/after-size-is-excluded-1024x470.png 1024w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/after-size-is-excluded-247x113.png 247w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/after-size-is-excluded-510x234.png 510w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/after-size-is-excluded-300x138.png 300w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/after-size-is-excluded-768x353.png 768w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2020\/03\/after-size-is-excluded.png 1154w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/><figcaption id=\"caption-attachment-5230\" class=\"wp-caption-text\">after size is excluded<\/figcaption><\/figure>\n<p>&nbsp;<\/p>\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-4284","faq","type-faq","status-publish","hentry","faq_topics-single-variations-faq"],"_links":{"self":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/4284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq"}],"about":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/types\/faq"}],"author":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/comments?post=4284"}],"version-history":[{"count":2,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/4284\/revisions"}],"predecessor-version":[{"id":5233,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/4284\/revisions\/5233"}],"wp:attachment":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/media?parent=4284"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/product_cat?post=4284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}