Skip to content

Instantly share code, notes, and snippets.

@seedcms
Created January 22, 2017 00:34
Show Gist options
  • Save seedcms/06c55ae311b1806bbd2b338c397612bc to your computer and use it in GitHub Desktop.
Save seedcms/06c55ae311b1806bbd2b338c397612bc to your computer and use it in GitHub Desktop.
Product Form Free Gift
<button type="submit" name="add" id="AddToCart-{{ section.id }}" {% unless current_variant.available %}disabled="disabled"{% endunless %} class="btn product-form__cart-submit{% if product.options.size == 1 and product.variants[0].title == 'Default Title' %} product-form__cart-submit--small{% endif %} {% if product.handle contains 'free-gift' %}free_item{% endif %}">
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment