{% spaceless %}

{% set currency = attribute(settings, 'cart-currency') %}
{% set locale = attribute(settings, 'cart-locale') %}

{% for product in products %}

  {% if product.id == attributes.product  %}

    {% if product.subscription == true  %}

      <a subscribe
            data-name="{{ product.name }}"
            data-sku="{{ product.id }}"
            data-quantity="1"
            data-price="{{ product.price }}"
            data-button-label="{{ attributes.modaltext }}" class="btn btn-outline-primary">{{ attributes.text }}</a>

    {% else %}

       <p>Please use the buy now and/or add to cart button for non-subscriptions</p>

    {% endif %}


  {% endif %}

{% endfor %}

{% endspaceless %}


