Untitled

mail@pastecode.io avatar
unknown
plain_text
2 years ago
357 B
2
Indexable
Never
{% if is_sample %}
    {# show sample button #}
    <button class="btn btn-primary btn-buy"
        data-cart-tooltip-ignore="true"
        title="Add Sample">
        Add Sample
    </button>
{% else %}
    {# show default cart button %}
    <button class="btn btn-primary btn-buy"
        title="Add to cart">
        Add to cart
    </button>
{% endif %}