{"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&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":"

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

If you still want to show an auto selected variation with an image there are two options:\u00a0<\/p>\n

Disable “Remove Term from Permalink” in Exclusion settings<\/h2>\n

When this option is enabled it will strip out your excluded attributes (e.g. size) from your URL. An example:<\/p>\n

From:
\/product\/awesome-shirt\/?attribute_pa_color=black&size=s
To:
\/product\/awesome-shirt\/?attribute_pa_color=black<\/pre>\n

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

Advantages:<\/strong><\/p>\n