custom/plugins/SelfdelveCms/src/Resources/views/storefront/component/buy-widget/buy-widget.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/component/buy-widget/buy-widget.html.twig' %}
  2. {% block buy_widget_ordernumber_container %}
  3.     {{ parent() }}
  4.     {% if page.product.customFields.selfdelve_theme_product_base_body != '' %}
  5.         {% set categoryId = 'e3efc64461514734934fcde14d3f2048' %}
  6.         <div class="product-detail-customfield-basebody-container">
  7.             <span class="product-detail-customfield-basebody-label">{{ 'SelfdelveCms.main.product.specialRequestTitle'|trans|sw_sanitize }}</span><br>
  8.             <a href="{{ seoUrl('frontend.navigation.page', { navigationId: categoryId }) }}?base_body={{ page.product.customFields.selfdelve_theme_product_base_body }}" title="{{ 'SelfdelveCms.main.product.specialRequestLink'|trans|sw_sanitize }}">
  9.                &raquo; {{ 'SelfdelveCms.main.product.specialRequestLink'|trans|sw_sanitize }}
  10.             </a>
  11.         </div>
  12.     {% endif %}
  13. {% endblock %}
  14. {% block buy_widget_price %}
  15.     {% if (config('SelfdelveCms.config.configuratorCmsPageName') != page.cmsPage.name) %}
  16.         {{ parent() }}
  17.     {% endif %}
  18. {% endblock %}
  19. {% block buy_widget_tax %}
  20.     {% if (config('SelfdelveCms.config.configuratorCmsPageName') != page.cmsPage.name) %}
  21.         {{ parent() }}
  22.     {% endif %}
  23. {% endblock %}
  24. {% block buy_widget_delivery_informations %}
  25.     {% if (config('SelfdelveCms.config.configuratorCmsPageName') != page.cmsPage.name) %}
  26.         {{ parent() }}
  27.     {% endif %}
  28. {% endblock %}
  29. {% block buy_widget_buy_form %}
  30.     {% if (config('SelfdelveCms.config.configuratorCmsPageName') == page.cmsPage.name) %}
  31.         <div class="mt-3 mt-md-4 mb-3 bg-light border p-3 shadow-sm" style="max-width: 700px;">
  32.             <div class="row">
  33.                 <div class="col-12 col-md-5">
  34.                     {# buy_widget_price #}
  35.                     <div class="product-detail-price-container">
  36.                         {% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-price.html.twig' %}
  37.                     </div>
  38.                     {# buy_widget_tax #}
  39.                     <div class="product-detail-tax-container">
  40.                         {% if context.taxState == "gross" %}
  41.                             {% set taxText = "general.grossTaxInformation"|trans|sw_sanitize %}
  42.                         {% else %}
  43.                             {% set taxText = "general.netTaxInformation"|trans|sw_sanitize %}
  44.                         {% endif %}
  45.                         <p class="product-detail-tax m-0">
  46.                             {% block buy_widget_tax_link %}
  47.                                 <a class="product-detail-tax-link"
  48.                                    href="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}"
  49.                                    title="{{ taxText }}"
  50.                                    data-toggle="modal"
  51.                                    data-url="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}">
  52.                                     {{ taxText }}
  53.                                 </a>
  54.                             {% endblock %}
  55.                         </p>
  56.                     </div>
  57.                     {# buy_widget_delivery_informations #}
  58.                     <div class="product-detail-delivery-information mt-3 mb-0">
  59.                         {% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
  60.                     </div>
  61.                 </div>
  62.                 <div class="col-12 col-md-7 mt-3 mt-md-0">
  63.                     {% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-form.html.twig' %}
  64.                 </div>
  65.             </div>
  66.         </div>
  67.     {% else %}
  68.         {{ parent() }}
  69.     {% endif %}
  70. {% endblock %}