Hey there I want to display multiple option selectors ( one for color options / one for material etc. ) on the collection page in dawn theme with an add to cart button. I have implemented the code for the option selectors and the add to cart button but anyways its not working. I think I am missing a js function, but can’t figure out how it should look.
When I have selected a prefered variant and click on add to cart it throws me the error “Required parameter missing or invalid: items”
This is the code of my custom-card-product.liquid file:
{% assign image_test = card_product.featured_media %}
###### {{ card_product.title | escape }}
{% unless card_product.selected_or_first_available_variant.compare_at_price == blank %}{% if card_product.metafields.custom.mehrere_preise_ %}Ab:{% endif %} {% endunless %} {{ card_product.selected_or_first_available_variant.compare_at_price | money}}{% if card_product.selected_or_first_available_variant.compare_at_price == blank %}{% if card_product.metafields.custom.mehrere_preise_ %}Ab:{% endif %}{% endif %} {{ card_product.selected_or_first_available_variant.price | money}}
{%- if card_product.available == false -%}
Ausverkauft
{% endif %}
