Variant product to the cart only add the first option

I received this website and they told me to fix this issue.

Clicking on a variant will display the first variant when adding it to the cart. I don’t know what they did, but they say they didn’t change in the last few days. The theme is Boost

This is happening on all the products: Your Source for the Best in Gifts, Jewelry and Little Luxuries – Coco and Duckie

Here is the main-product.liquid: https://codeshare.io/Bd6K7y

I’d try to replace this:


  {%- form 'product', product, id: product_form_id, class: form_class -%}

With this:

{%- form 'product', product, id: product_form_id, class: form_class -%}
  
  
  

  

Whoever added the quantity drop-down has created an extra form and removed required elements from the main cart form…

There are other possible improvements, but start with this.

1 Like

Thanks for taking the time to solve my problem, now it works!

I was testing most of the products, and seems to work perfectly! Thanks again.