Hi I can make this Possible on Product page?

First variant of the product (Color, Size etc.) should not be selected by default. When a user clicks on Add to cart or Buy Now button without selecting any variant, it should show an error message below the variant option “Please select an option first*”.

URL - https://amprest.myshopify.com/

@Shivam97

Please check link for help

https://help.shopify.com/en/manual/online-store/themes/os/customize/add-pick-an-option

Thanks!

Thanks @dmwwebartisan I tried but somehow it still picking as default. Please help me on this.

up this is my snippet product.liquid file

{%- if section.settings.product_variant_handle == ‘product_variant_swatch_option’ -%}
{%- if product.available and product.variants.size > 1 -%}
{% for option in product.options %}
{%- include ‘swatch’ with option -%}
{% endfor %}
{%- endif -%}

{%- endif -%}

{%- if section.settings.product_variant_handle == ‘product_variant_swatch_option’ or section.settings.product_variant_handle == ‘product_variant_without_option’ -%}

.product-variant-option .selector-wrapper{ display: none; }

{%- endif -%}