{% comment %} Renders an "Add to cart" button or a "Quick view" button if the product has multiple variants Usually it is used with the product card Accepts: - product: {object} The product object - btn_color {string} (Optional) The button color class (bootstrap) to apply to the button Usage: {% render 'product-card-form' product: product %} {% endcomment %} {% liquid assign btn_color = btn_color | default: settings.product_card_atc_btn_color %} {% form 'product', product, data-productid: product.id %} {% if product.has_only_default_variant %} {% else %} {% endif %} {% endform %}