From 0b0df5ab54cdaba89a2f1a4426fc16ff316a0080 Mon Sep 17 00:00:00 2001 From: Vitalij Mik Date: Mon, 18 Sep 2023 12:34:22 +0200 Subject: [PATCH] MOL-1243: Fix subscriptions as variants --- .../component/buy-widget/buy-widget-form.html.twig | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/Resources/views/storefront/component/buy-widget/buy-widget-form.html.twig b/src/Resources/views/storefront/component/buy-widget/buy-widget-form.html.twig index 058a72769..4ab48a6c1 100644 --- a/src/Resources/views/storefront/component/buy-widget/buy-widget-form.html.twig +++ b/src/Resources/views/storefront/component/buy-widget/buy-widget-form.html.twig @@ -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 %}