custom/static-plugins/NdVoorwindenTheme/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 %}
  3.     <div class="product-detail-buy{% if elementId %}-{{ elementId }}{% endif %} js-magnifier-zoom-image-container boxed-layout">
  4.         {% block buy_widget_rich_snippets %}
  5.             {{ parent() }}
  6.         {% endblock %}
  7.         {% if not feature('FEATURE_NEXT_16992') %}
  8.             {# @deprecated tag:v6.5.0 tag:)(FEATURE_NEXT_16992) - Block will be removed in v6.5.0 #}
  9.             {% block buy_widget_not_available %}
  10.             {% endblock %}
  11.         {% endif %}
  12.         {% block buy_widget_buy_container %}
  13.             <div itemprop="offers"
  14.                  itemscope
  15.                  itemtype="{% if product.calculatedPrices|length > 1 %}http://schema.org/AggregateOffer{% else %}http://schema.org/Offer{% endif %}">
  16.                 {% block buy_widget_data %}
  17.                     {% block buy_widget_data_rich_snippet_url %}
  18.                         {{ parent() }}
  19.                     {% endblock %}
  20.                     {% block buy_widget_data_rich_snippet_price_range %}
  21.                         {{ parent() }}
  22.                     {% endblock %}
  23.                     {% block buy_widget_data_rich_snippet_price_currency %}
  24.                         {{ parent() }}
  25.                     {% endblock %}
  26.                     {% block page_product_detail_brand %}
  27.                         {% if page.product.manufacturer %}
  28.                             <div class="product-detail-brand hidden font-accent font-medium text-sm lg:block lg:pb-1">
  29.                                 {{ page.product.manufacturer.translated.name }}
  30.                             </div>
  31.                         {% endif %}
  32.                     {% endblock %}
  33.                     {% block page_product_detail_headline %}
  34.                         <div class="product-detail-headline hidden lg:block py-1 lg:pb-3 uppercase">
  35.                             {% sw_include '@Storefront/storefront/page/product-detail/headline.html.twig' %}
  36.                         </div>
  37.                     {% endblock %}
  38.                 {% endblock %}
  39.                 <div class="swap lg:flex lg:flex-col-reverse">
  40.                     {% block buy_widget_configurator_include %}
  41.                         <div class="product-detail-configurator-container">
  42.                             {% sw_include '@Storefront/storefront/component/buy-widget/variations.html.twig' %}
  43.                             {% if page.product.children.elements|length > 0 %}
  44.                                 <div class="py-3">
  45.                                     {% sw_include '@Storefront/storefront/component/buy-widget/configurator.html.twig' %}
  46.                                 </div>
  47.                             {% endif %}
  48.                         </div>
  49.                     {% endblock %}
  50.                     {% block buy_widget_product_description_content_text %}
  51.                         <div class="product-detail-description-text py-3 text-sm"
  52.                              itemprop="description">
  53.                             {{ product.translated.description|raw }}
  54.                         </div>
  55.                     {% endblock %}
  56.                 </div>
  57.                 {% block product_offcanvas_tabs %}
  58.                     {{ parent() }}
  59.                 {% endblock %}
  60.                 {% block buy_widget_price %}
  61.                     <div class="product-detail-price-container py-3">
  62.                         {% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-price.html.twig' %}
  63.                     </div>
  64.                 {% endblock %}
  65.                 {% block buy_widget_buy_form %}
  66.                     {% block buy_widget_delivery_informations %}
  67.                         <div class="product-detail-delivery-information">
  68.                             {% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
  69.                         </div>
  70.                     {% endblock %}
  71.                     {% if product.active %}
  72.                         <div class="product-detail-form-container py-3">
  73.                             {% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-form.html.twig' %}
  74.                         </div>
  75.                     {% endif %}
  76.                 {% endblock %}
  77.                 {% block buy_widget_upsell_popup %}
  78.                     {{ parent() }}
  79.                 {% endblock %}
  80.                 {% block buy_widget_usps %}
  81.                     {% set usps = [
  82.                         "company.headerCarousel_1",
  83.                         "company.headerCarousel_2",
  84.                         "company.headerCarousel_3"
  85.                     ] %}
  86.                     {% if usps %}
  87.                         <div class="product-detail-usps pt-3 pb-5">
  88.                             <ul class="grid grid-gap-2">
  89.                                 {% for item in usps %}
  90.                                     <li class="product-detail-usp flex items-center grid-gap-1 text-xs text-grey-900 whitespace-nowrap">
  91.                                         {% sw_icon 'check' style{'pack': 'hero', 'class': 'block w-5'} %}
  92.                                         {{ item|trans|raw }}
  93.                                     </li>
  94.                                 {% endfor %}
  95.                             </ul>
  96.                         </div>
  97.                     {% endif %}
  98.                 {% endblock %}
  99.             </div>
  100.         {% endblock %}
  101.     </div>
  102. {% endblock %}