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

Open in your IDE?
  1. {% block buy_widget %}
  2.     <div class="product-detail-buy{% if elementId %}-{{ elementId }}{% endif %} js-magnifier-zoom-image-container">
  3.         {% block buy_widget_rich_snippets %}
  4.             {% block buy_widget_rich_snippets_brand %}
  5.                 {% if product.manufacturer %}
  6.                     <div itemprop="brand" itemtype="https://schema.org/Brand" itemscope>
  7.                         <meta itemprop="name" content="{{ product.manufacturer.translated.name }}" />
  8.                     </div>
  9.                 {% endif %}
  10.             {% endblock %}
  11.             {% block buy_widget_rich_snippets_gtin13 %}
  12.                 {% if product.ean %}
  13.                     <meta itemprop="gtin13"
  14.                           content="{{ product.ean }}"/>
  15.                 {% endif %}
  16.             {% endblock %}
  17.             {% block buy_widget_rich_snippets_mpn %}
  18.                 {% if product.manufacturerNumber %}
  19.                     <meta itemprop="mpn"
  20.                           content="{{ product.manufacturerNumber }}"/>
  21.                 {% endif %}
  22.             {% endblock %}
  23.             {% block buy_widget_rich_snippets_weight %}
  24.                 {% if product.weight %}
  25.                     <meta itemprop="weight"
  26.                           content="{{ product.weight }} kg"/>
  27.                 {% endif %}
  28.             {% endblock %}
  29.             {% block buy_widget_rich_snippets_height %}
  30.                 {% if product.height %}
  31.                     <meta itemprop="height"
  32.                           content="{{ product.height }} mm"/>
  33.                 {% endif %}
  34.             {% endblock %}
  35.             {% block buy_widget_rich_snippets_width %}
  36.                 {% if product.width %}
  37.                     <meta itemprop="width"
  38.                           content="{{ product.width }} mm"/>
  39.                 {% endif %}
  40.             {% endblock %}
  41.             {% block buy_widget_rich_snippets_depth %}
  42.                 {% if product.length %}
  43.                     <meta itemprop="depth"
  44.                           content="{{ product.length }} mm"/>
  45.                 {% endif %}
  46.             {% endblock %}
  47.             {% block buy_widget_rich_snippets_release_date %}
  48.                 <meta itemprop="releaseDate"
  49.                       content="{{ product.releaseDate|format_date(pattern="Y-MM-dd", locale=app.request.locale) }}"/>
  50.             {% endblock %}
  51.         {% endblock %}
  52.         {% if not feature('FEATURE_NEXT_16992') %}
  53.             {# @deprecated tag:v6.5.0 tag:)(FEATURE_NEXT_16992) - Block will be removed in v6.5.0 #}
  54.             {% block buy_widget_not_available %}
  55.             {% endblock %}
  56.         {% endif %}
  57.         {% block buy_widget_buy_container %}
  58.             <div itemprop="offers"
  59.                  itemscope
  60.                  itemtype="{% if product.calculatedPrices|length > 1 %}http://schema.org/AggregateOffer{% else %}http://schema.org/Offer{% endif %}">
  61.                 {% block buy_widget_data %}
  62.                     {% block buy_widget_data_rich_snippet_url %}
  63.                         <meta itemprop="url"
  64.                               content="{{ seoUrl('frontend.detail.page', { productId: product.id }) }}"/>
  65.                     {% endblock %}
  66.                     {% block buy_widget_data_rich_snippet_price_range %}
  67.                         {% if product.calculatedPrices|length > 1 %}
  68.                             {% set lowestPrice = false %}
  69.                             {% set highestPrice = false %}
  70.                             {% for price in product.calculatedPrices %}
  71.                                 {% if not lowestPrice or price.unitPrice < lowestPrice %}
  72.                                     {% set lowestPrice = price.unitPrice %}
  73.                                 {% endif %}
  74.                                 {% if not highestPrice or price.unitPrice > highestPrice %}
  75.                                     {% set highestPrice = price.unitPrice %}
  76.                                 {% endif %}
  77.                             {% endfor %}
  78.                             <meta itemprop="lowPrice" content="{{ lowestPrice }}"/>
  79.                             <meta itemprop="highPrice" content="{{ highestPrice }}"/>
  80.                             <meta itemprop="offerCount" content="{{ product.calculatedPrices|length }}"/>
  81.                         {% endif %}
  82.                     {% endblock %}
  83.                     {% block buy_widget_data_rich_snippet_price_currency %}
  84.                         <meta itemprop="priceCurrency"
  85.                               content="{{ context.currency.translated.shortName }}"/>
  86.                     {% endblock %}
  87.    {% if  context.customer.requestedGroupID =='627cf61efef04a5799a3526387475c5d' %}
  88.                 <div class="anfrage">
  89.                     {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  90.                         type: 'info',
  91.                         content: 'account.CustomerGroupRequestInfo'|trans({'%group%': page.customer.requestedGroup.translated.name})
  92.                     } %}
  93.                 </div>
  94.             {% endif %}
  95.  
  96.                     {% block buy_widget_price %}
  97.                         <div class="product-detail-price-container">
  98.                             {% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-price.html.twig' %}
  99.                         </div>
  100.                     {% endblock %}
  101.                     {% block buy_widget_tax %}
  102.                         <div class="product-detail-tax-container">
  103.                             {% if context.taxState == "gross" %}
  104.                                 {% set taxText = "general.grossTaxInformation"|trans|sw_sanitize %}
  105.                             {% else %}
  106.                                 {% set taxText = "general.netTaxInformation"|trans|sw_sanitize %}
  107.                             {% endif %}
  108.                             <p class="product-detail-tax">
  109.                                 {% block buy_widget_tax_link %}
  110.                                     <a class="product-detail-tax-link"
  111.                                        href="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}"
  112.                                        title="{{ taxText }}"
  113.                                        {{ dataBsToggleAttr }}="modal"
  114.                                        data-url="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}">
  115.                                         {{ taxText }}
  116.                                     </a>
  117.                                 {% endblock %}
  118.                             </p>
  119.                         </div>
  120.                     {% endblock %}
  121.                     {% set remoteClickOptions = {
  122.                         selector: "#review-tab-" ~ product.id,
  123.                         scrollToElement: true
  124.                     } %}
  125.                     {% set reviewTabHref = "#review-tab-" ~ product.id ~ "-pane" %}
  126.                     {% block buy_widget_reviews %}
  127.                         {% if product.ratingAverage > 0 and totalReviews > 0 and config('core.listing.showReview') %}
  128.                             <div class="product-detail-reviews">
  129.                                 {% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
  130.                                     points: product.ratingAverage,
  131.                                     style: 'text-primary'
  132.                                 } %}
  133.                                 <a {{ dataBsToggleAttr }}="tab"
  134.                                    class="product-detail-reviews-link"
  135.                                    data-offcanvas-tabs="true"
  136.                                    data-remote-click="true"
  137.                                    data-remote-click-options='{{ remoteClickOptions|json_encode }}'
  138.                                    href="{{ reviewTabHref }}"
  139.                                    aria-controls="review-tab-pane">
  140.                                     {{ totalReviews }}
  141.                                     {{ "detail.reviewLinkText"|trans({'%count%': totalReviews})|sw_sanitize }}
  142.                                 </a>
  143.                             </div>
  144.                         {% endif %}
  145.                     {% endblock %}
  146.                     {% block buy_widget_delivery_informations %}
  147.                    
  148.                         <div class="product-detail-delivery-information">
  149.                             {% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
  150.                         </div>
  151.                        {#  S23  
  152.                     #}
  153.                     {% endblock %}
  154.                 {% endblock %}
  155.                 {% block buy_widget_configurator_include %}
  156.                     {% if product.parentId and configuratorSettings|length > 0 %}
  157.                         <div class="product-detail-configurator-container">
  158.                             {% sw_include '@Storefront/storefront/component/buy-widget/configurator.html.twig' %}
  159.                         </div>
  160.                     {% endif %}
  161.                 {% endblock %}
  162. {% if  context.customer.GroupID =='' %}
  163.                 <div class="gewerbeInfo dd">
  164.                     {% sw_include '@Storefront/storefront/utilities/alert.html.twig' with {
  165.                         type: 'info',
  166.                         content: 'zogi.gewerbeInfo'|trans
  167.                     } %}
  168.                 </div>
  169.             {% endif %}
  170.                 {% block buy_widget_buy_form %}
  171.                     {% if product.active %}
  172.                         <div class="product-detail-form-container">
  173.                             {% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-form.html.twig' %}
  174.                         </div>
  175.                     {% endif %}
  176.                 {% endblock %}
  177.             </div>
  178.         {% endblock %}
  179.         {% if config('core.cart.wishlistEnabled') %}
  180.             {% block buy_widget_wishlist %}
  181.                 {% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
  182.                     showText: true,
  183.                     size: 'md',
  184.                     productId: product.id
  185.                 } %}
  186.             {% endblock %}
  187.         {% endif %}
  188.         {% block buy_widget_ordernumber_container %}
  189.             {% if product.productNumber %}
  190.                 <div class="product-detail-ordernumber-container">
  191.                     {% block buy_widget_ordernumber_label %}
  192.                         <span class="product-detail-ordernumber-label">
  193.                             {{ "detail.productNumberLabel"|trans|sw_sanitize }}
  194.                         </span>
  195.                     {% endblock %}
  196.                     {% block buy_widget_ordernumber %}
  197.                         <meta itemprop="productID"
  198.                               content="{{ product.id }}"/>
  199.                         <span class="product-detail-ordernumber"
  200.                               itemprop="sku">
  201.                             {{ product.productNumber }}
  202.                         </span>
  203.                     {% endblock %}
  204.                 </div>
  205.             {% endif %}
  206.         {% endblock %}
  207.     </div>
  208. {% endblock %}