Add to Cart on Collection Page Variants Don't Show Up - PRESTIGE THEME

NGS1
Visitor
1 0 0

I'm using this add to cart button code but it won't show the variants. How do I get the variants to show up for customers to pick the variants?

 

<button
class="ProductForm__AddToCart Button {% if product.selected_or_first_available_variant.available and use_primary_button %}Button--primary{% else %}Button--secondary{% endif %} Button--full"
onclick="_addMeToCart(event,this)"
data-action="open-drawer" data-drawer-id="sidebar-cart"
data-variant_id="{{ product.variants.first.id }}">
{{ 'product.form.add_to_cart' | t }}
</button>

 

Thanks!

Replies 0 (0)