Auto-select variation on product card
-
How can I auto-select the first available variation on the product card?
Attachments:
You must be
logged in to view attached files.
Hello,
To set default attributes manually, first, in the WooCommerce dashboard go to Products and then click on your variable product.
Then, select Variable product from the Product data dropdown.
After that, under Variations, you have to select the Default Form Values. Those are the attributes that will be selected by default for that product
Screenshot for clarification:
https://ibb.co/8z2SQVz
This option is only working on a single product page but not on the Archive pages.
Best Regards.
Thank you for the reply.
I did it already for single product pages. I want to be done on the shop page as well.
If it can be done through customization, can you please let me know where is the code for this product card on the shop page so I can edit it?
I need someone to point in the right direction, please.
Hello,
Sorry to say this option is working on a single product page but not on the Archive pages. You can check it with the Storefront theme. Storefront is a free theme developed by WooСommerce.
Best Regards.