{"id":8477,"date":"2021-04-30T13:22:14","date_gmt":"2021-04-30T11:22:14","guid":{"rendered":"https:\/\/www.welaunch.io\/en\/?post_type=faq&#038;p=8477"},"modified":"2021-04-30T13:22:14","modified_gmt":"2021-04-30T11:22:14","slug":"product-variation-doesnt-autoselect","status":"publish","type":"faq","link":"https:\/\/www.welaunch.io\/en\/knowledge-base\/faq\/product-variation-doesnt-autoselect\/","title":{"rendered":"Product variation doesn\u2019t Autoselect"},"content":{"rendered":"<p>When you work with exclusions you may have seen, that when you click on a single product in your categories, the variation does not autoselect the correct variation. This issue is caused, because when you remove the size attribute for example, then there is no valid variation found on the product page that can be selected.<\/p>\n<p>If you still want to show an auto selected variation with an image there are two options:\u00a0<\/p>\n<h2>Disable &#8220;Remove Term from Permalink&#8221; in Exclusion settings<\/h2>\n<p>When this option is enabled it will strip out your excluded attributes (e.g. size) from your URL. An example:<\/p>\n<pre>From:<br \/>\/product\/awesome-shirt\/?attribute_pa_color=black&amp;size=s<br \/>To:<br \/>\/product\/awesome-shirt\/?attribute_pa_color=black<\/pre>\n<p>You see it strips out the size variation from attribute. When a user visits that page now he has to choose a size and only color is preselected.\u00a0<\/p>\n<p><strong>Advantages:<\/strong><\/p>\n<ul>\n<li>User has to select size \/ does not accidentally buys wrong sizes<\/li>\n<\/ul>\n<p><strong>Disadvantages<\/strong><\/p>\n<ul>\n<li>No variation is found, so no image change \/ select field change<\/li>\n<\/ul>\n\t<div class=\"img has-hover x md-x lg-x y md-y lg-y\" id=\"image_1845635605\">\n\t\t\t\t\t\t\t\t<div class=\"img-inner box-shadow-1 box-shadow-2-hover dark\" >\n\t\t\t<img loading=\"lazy\" decoding=\"async\" width=\"1020\" height=\"110\" src=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2021\/04\/remove-term-from-permalink-setting-1024x110.png\" class=\"attachment-large size-large\" alt=\"remove term from permalink setting\" srcset=\"https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2021\/04\/remove-term-from-permalink-setting-1024x110.png 1024w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2021\/04\/remove-term-from-permalink-setting-247x27.png 247w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2021\/04\/remove-term-from-permalink-setting-510x55.png 510w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2021\/04\/remove-term-from-permalink-setting-300x32.png 300w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2021\/04\/remove-term-from-permalink-setting-768x83.png 768w, https:\/\/www.welaunch.io\/en\/wp-content\/uploads\/sites\/8\/2021\/04\/remove-term-from-permalink-setting.png 1376w\" sizes=\"auto, (max-width: 1020px) 100vw, 1020px\" \/>\t\t\t\t\t\t\n\t\t\t\t\t\t\t<div class=\"caption\">remove term from permalink setting<\/div>\n\t\t\t\t\t<\/div>\n\t\t\t\t\t\t\t\t\n<style>\n#image_1845635605 {\n  width: 100%;\n}\n<\/style>\n\t<\/div>\n\t\n","protected":false},"author":1,"featured_media":0,"menu_order":0,"comment_status":"open","ping_status":"closed","template":"","product_cat":[],"class_list":["post-8477","faq","type-faq","status-publish","hentry","faq_topics-show-single-variations","faq_topics-single-variations-faq"],"_links":{"self":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/8477","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=8477"}],"version-history":[{"count":2,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/8477\/revisions"}],"predecessor-version":[{"id":8482,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/faq\/8477\/revisions\/8482"}],"wp:attachment":[{"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/media?parent=8477"}],"wp:term":[{"taxonomy":"product_cat","embeddable":true,"href":"https:\/\/www.welaunch.io\/en\/wp-json\/wp\/v2\/product_cat?post=8477"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}