How to select the first product variant as a default?

I have products on woocommerce with 5 variants and I am trying to set the first variant as a default so when visitors/customers browse product pages they would see the first variant pre-selected.

I have gone through some of the threads which are not useful anymore.

If anyone could help to get this done with the recent version of woocommerce?

Topic woocommerce-offtopic e-commerce Wordpress

Category Web


You can use Woo-commerce option to select default variation in front-end. Please see attached file: These are the attributes that will be pre-selected on the frontend.

About

Geeks Mental is a community that publishes articles and tutorials about Web, Android, Data Science, new techniques and Linux security.