custom/plugins/Tuerschild_2/src/Resources/views/storefront/page/product-detail/buy-widget.html.twig line 1

Open in your IDE?
  1. {% block page_product_detail_buy_inner %}
  2.     <div class="product-detail-buy-inner js-magnifier-zoom-image-container">
  3.         {% block page_product_detail_rich_snippets %}
  4.             {% block page_product_detail_rich_snippets_brand %}
  5.                 {% if page.product.manufacturer %}
  6.                     <meta itemprop="brand"
  7.                           content="{{ page.product.manufacturer.translated.name }}"/>
  8.                 {% endif %}
  9.             {% endblock %}
  10.             {% block page_product_detail_rich_snippets_gtin13 %}
  11.                 {% if page.product.ean %}
  12.                     <meta itemprop="gtin13"
  13.                           content="{{ page.product.ean }}"/>
  14.                 {% endif %}
  15.             {% endblock %}
  16.             {% block page_product_detail_rich_snippets_mpn %}
  17.                 <meta itemprop="mpn"
  18.                       content="{{ page.product.productNumber }}"/>
  19.             {% endblock %}
  20.             {% block page_product_detail_rich_snippets_weight %}
  21.                 {% if page.product.weight %}
  22.                     <meta itemprop="weight"
  23.                           content="{{ page.product.weight }} kg"/>
  24.                 {% endif %}
  25.             {% endblock %}
  26.             {% block page_product_detail_rich_snippets_height %}
  27.                 {% if page.product.height %}
  28.                     <meta itemprop="height"
  29.                           content="{{ page.product.height }} mm"/>
  30.                 {% endif %}
  31.             {% endblock %}
  32.             {% block page_product_detail_rich_snippets_width %}
  33.                 {% if page.product.width %}
  34.                     <meta itemprop="width"
  35.                           content="{{ page.product.width }} mm"/>
  36.                 {% endif %}
  37.             {% endblock %}
  38.             {% block page_product_detail_rich_snippets_depth %}
  39.                 {% if page.product.length %}
  40.                     <meta itemprop="depth"
  41.                           content="{{ page.product.length }} mm"/>
  42.                 {% endif %}
  43.             {% endblock %}
  44.             {% block page_product_detail_rich_snippets_release_date %}
  45.                 <meta itemprop="releaseDate"
  46.                       content="{{ page.product.releaseDate|format_date(pattern="Y-MM-dd", locale=app.request.locale) }}"/>
  47.             {% endblock %}
  48.         {% endblock %}
  49.         {% block page_product_detail_not_available %}
  50.             {# TODO: NEXT-2784 - product not available message #}
  51.         {% endblock %}
  52.         {% block page_product_detail_buy_container %}
  53.             <div itemprop="offers"
  54.                  itemscope
  55.                  itemtype="{% if page.product.calculatedPrices|length > 1 %}http://schema.org/AggregateOffer{% else %}http://schema.org/Offer{% endif %}">
  56.                 {% block page_product_detail_data %}
  57.                 {% block page_product_detail_data_rich_snippet_url %}
  58.                     <meta itemprop="url"
  59.                           content="{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}"/>
  60.                 {% endblock %}
  61.                 {% block page_product_detail_data_rich_snippet_price_range %}
  62.                     {% if page.product.calculatedPrices|length > 1 %}
  63.                         {% set lowestPrice = false %}
  64.                         {% set highestPrice = false %}
  65.                         {% for price in page.product.calculatedPrices %}
  66.                             {% if not lowestPrice or price.unitPrice < lowestPrice %}
  67.                                 {% set lowestPrice = price.unitPrice %}
  68.                             {% endif %}
  69.                             {% if not highestPrice or price.unitPrice > highestPrice %}
  70.                                 {% set highestPrice = price.unitPrice %}
  71.                             {% endif %}
  72.                         {% endfor %}
  73.                         <meta itemprop="lowPrice" content="{{ lowestPrice }}"/>
  74.                         <meta itemprop="highPrice" content="{{ highestPrice }}"/>
  75.                         <meta itemprop="offerCount" content="{{ page.product.calculatedPrices|length }}"/>
  76.                     {% endif %}
  77.                 {% endblock %}
  78.                 {% block page_product_detail_data_rich_snippet_price_currency %}
  79.                     <meta itemprop="priceCurrency"
  80.                           content="{{ context.currency.translated.shortName }}"/>
  81.                 {% endblock %}
  82.                 <div class="row product-detail-buy-top">
  83.                     <div class="col-6 d-flex flex-column justify-content-end">
  84.                         {% block page_product_detail_price %}
  85.                             <div class="product-detail-price-container">
  86.                                 {% sw_include '@Storefront/storefront/page/product-detail/buy-widget-price.html.twig' %}
  87.                             </div>
  88.                         {% endblock %}
  89.                         {% block page_product_detail_tax %}
  90.                             <div class="product-detail-tax-container">
  91.                                 {% if context.taxState == "gross" %}
  92.                                     {% set taxText = "general.grossTaxInformation"|trans|sw_sanitize %}
  93.                                 {% else %}
  94.                                     {% set taxText = "general.netTaxInformationFirstPart"|trans|sw_sanitize %}
  95.                                     {% set taxTextLink = "general.netTaxInformationSecondPart"|trans|sw_sanitize %}
  96.                                 {% endif %}
  97.                                 <p class="product-detail-tax">
  98.                                     {% block page_product_detail_tax_link %}
  99.                                         <span class="product-detail-tax-link">{{ taxText }}
  100.                                         <a
  101.                                            href="{{ path('frontend.cms.page',{ id: shopware.config.core.basicInformation.shippingPaymentInfoPage }) }}"
  102.                                            title="{{ taxTextLink }}"
  103.                                            data-toggle="modal"
  104.                                            data-url="{{ path('frontend.cms.page',{ id: shopware.config.core.basicInformation.shippingPaymentInfoPage }) }}">
  105.                                             {{ taxTextLink }}
  106.                                         </a>
  107.                                             </span>
  108.                                     {% endblock %}
  109.                                 </p>
  110.                             </div>
  111.                         {% endblock %}
  112.                         {% block page_product_detail_delivery_informations %}
  113.                             <div class="product-detail-delivery-information">
  114.                                 {% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
  115.                             </div>
  116.                         {% endblock %}
  117.                     </div>
  118.                     {% set remoteClickOptions = {
  119.                         selector: "#review-tab",
  120.                         scrollToElement: true
  121.                     } %}
  122.                     {% endblock %}
  123.                     {% block page_product_detail_configurator_include %}
  124.                         {% if page.product.parentId and page.configuratorSettings|length > 0 %}
  125.                             <div class="product-detail-configurator-container col-12 col-md-6">
  126.                                 {% sw_include '@Storefront/storefront/page/product-detail/configurator.html.twig' %}
  127.                             </div>
  128.                         {% endif %}
  129.                     {% endblock %}
  130.                 </div>
  131.                 {% block page_product_detail_buy_form %}
  132.                     {% if page.product.active %}
  133.                         <div class="product-detail-form-container">
  134.                             {% sw_include '@Storefront/storefront/page/product-detail/buy-widget-form.html.twig' %}
  135.                         </div>
  136.                     {% endif %}
  137.                 {% endblock %}
  138.             </div>
  139.         {% endblock %}
  140.         {% if shopware.config.core.cart.wishlistEnabled %}
  141.             {% block page_product_detail_wishlist %}
  142.                 {% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
  143.                     showText: true,
  144.                     size: 'md',
  145.                     productId: page.product.id
  146.                 } %}
  147.             {% endblock %}
  148.         {% endif %}
  149.         {% block page_product_detail_ordernumber_container %}
  150.         {% endblock %}
  151.     </div>
  152. {% endblock %}