Skip to content

Commit

Permalink
MOL-1243: Fix subscriptions as variants
Browse files Browse the repository at this point in the history
  • Loading branch information
Vitalij Mik committed Sep 18, 2023
1 parent c5f2ddd commit 0b0df5a
Showing 1 changed file with 8 additions and 1 deletion.
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
{% sw_extends '@Storefront/storefront/component/buy-widget/buy-widget-form.html.twig' %}

{% block buy_widget_buy_container %}
{% block buy_widget_buy_quantity_container %}
{% if mollie_subscriptions_enabled and product.customFields.mollie_payments_product_subscription_enabled %}
{% else %}
{{ parent() }}
{% endif %}
{% endblock %}

{% block buy_widget_buy_button_container %}

{% if mollie_subscriptions_enabled and product.customFields.mollie_payments_product_subscription_enabled %}
<button class="btn btn-primary btn-block btn-buy" title="{{ "molliePayments.subscriptions.product.addToCartText"|trans|sw_sanitize }}" aria-label="{{ "molliePayments.subscriptions.product.addToCartText"|trans|sw_sanitize }}">
Expand Down

0 comments on commit 0b0df5a

Please sign in to comment.