DAWN THENE 2.0 Add to cart on collection page with ajax like it works in product single page

Hi Guleria, followed exact corrected instructions. Any reason why add to cart button only takes me to product page? Product neither registers in cart.

I have the same problem, can you talk to me? how can you solve this problem?

Thanks advance

Yow was solve this problem?

The easiest way in 2.0 is to simply check ‘Enable quick add button’ in the Collection settings.

When customizing your theme, go to the homepage > go to the ‘Featured collection’ > check ‘Enable quick add button’.

Hello Guleria,

I have copied the following code of the variant selector drop-down menu option from the “main-product.liquid” file into the “card-product.liquid” for incorporating its functionality on the collection page along with atc button.

<variant-selects class=“no-js-hidden” data-section=“{{ section.id }}” data-url=“{{ product.url }}” {{ block.shopify_attributes }}>
{%- for option in product.options_with_values -%}

{{ option.name }}
{% render 'icon-caret' %}
{%- endfor -%}

The problem is that for some reason this implementation doesn’t work. The “atc” functionality works perfectly but when the drop-down is implemented, it fails.

Can you please guide me a bit on how to get this fixed. I have a feeling that there’s some small thing that I’m overlooking and will require some minor change in the code to get the desired result.

I would really appreciate your response and guidance on this issue.

Thanks