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

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  2. {% block page_product_detail_buy_inner %}
  3.     <div class="js-magnifier-zoom-image-container">
  4.         {% block page_product_detail_rich_snippets %}
  5.             {% block page_product_detail_rich_snippets_brand %}
  6.                 {% if page.product.manufacturer %}
  7.                     <div itemprop="brand" itemtype="https://schema.org/Brand" itemscope>
  8.                         <meta itemprop="name" content="{{ page.product.manufacturer.translated.name }}" />
  9.                     </div>
  10.                 {% endif %}
  11.             {% endblock %}
  12.             {% block page_product_detail_rich_snippets_gtin13 %}
  13.                 {% if page.product.ean %}
  14.                     <meta itemprop="gtin13"
  15.                           content="{{ page.product.ean }}"/>
  16.                 {% endif %}
  17.             {% endblock %}
  18.             {% block page_product_detail_rich_snippets_mpn %}
  19.                 {% if page.product.manufacturerNumber %}
  20.                     <meta itemprop="mpn"
  21.                           content="{{ page.product.manufacturerNumber }}"/>
  22.                 {% endif %}
  23.             {% endblock %}
  24.             {% block page_product_detail_rich_snippets_weight %}
  25.                 {% if page.product.weight %}
  26.                     <meta itemprop="weight"
  27.                           content="{{ page.product.weight }} kg"/>
  28.                 {% endif %}
  29.             {% endblock %}
  30.             {% block page_product_detail_rich_snippets_height %}
  31.                 {% if page.product.height %}
  32.                     <meta itemprop="height"
  33.                           content="{{ page.product.height }} mm"/>
  34.                 {% endif %}
  35.             {% endblock %}
  36.             {% block page_product_detail_rich_snippets_width %}
  37.                 {% if page.product.width %}
  38.                     <meta itemprop="width"
  39.                           content="{{ page.product.width }} mm"/>
  40.                 {% endif %}
  41.             {% endblock %}
  42.             {% block page_product_detail_rich_snippets_depth %}
  43.                 {% if page.product.length %}
  44.                     <meta itemprop="depth"
  45.                           content="{{ page.product.length }} mm"/>
  46.                 {% endif %}
  47.             {% endblock %}
  48.             {% block page_product_detail_rich_snippets_release_date %}
  49.                 <meta itemprop="releaseDate"
  50.                       content="{{ page.product.releaseDate|format_date(pattern="Y-MM-dd", locale=app.request.locale) }}"/>
  51.             {% endblock %}
  52.         {% endblock %}
  53.         {% if not feature('FEATURE_NEXT_16992') %}
  54.             {# @deprecated tag:v6.5.0 tag:)(FEATURE_NEXT_16992) - Block will be removed in v6.5.0 #}
  55.             {% block page_product_detail_not_available %}
  56.             {% endblock %}
  57.         {% endif %}
  58.         {% block page_product_detail_buy_container %}
  59.             <div itemprop="offers"
  60.                  itemscope
  61.                  itemtype="{% if page.product.calculatedPrices|length > 1 %}http://schema.org/AggregateOffer{% else %}http://schema.org/Offer{% endif %}">
  62.                 {% block page_product_detail_data %}
  63.                     {% block page_product_detail_data_rich_snippet_url %}
  64.                         <meta itemprop="url"
  65.                               content="{{ seoUrl('frontend.detail.page', { productId: page.product.id }) }}"/>
  66.                     {% endblock %}
  67.                     {% block page_product_detail_data_rich_snippet_price_range %}
  68.                         {% if page.product.calculatedPrices|length > 1 %}
  69.                             {% set lowestPrice = false %}
  70.                             {% set highestPrice = false %}
  71.                             {% for price in page.product.calculatedPrices %}
  72.                                 {% if not lowestPrice or price.unitPrice < lowestPrice %}
  73.                                     {% set lowestPrice = price.unitPrice %}
  74.                                 {% endif %}
  75.                                 {% if not highestPrice or price.unitPrice > highestPrice %}
  76.                                     {% set highestPrice = price.unitPrice %}
  77.                                 {% endif %}
  78.                             {% endfor %}
  79.                             <meta itemprop="lowPrice" content="{{ lowestPrice }}"/>
  80.                             <meta itemprop="highPrice" content="{{ highestPrice }}"/>
  81.                             <meta itemprop="offerCount" content="{{ page.product.calculatedPrices|length }}"/>
  82.                         {% endif %}
  83.                     {% endblock %}
  84.                     {% block page_product_detail_data_rich_snippet_price_currency %}
  85.                         <meta itemprop="priceCurrency"
  86.                               content="{{ context.currency.translated.shortName }}"/>
  87.                     {% endblock %}
  88.                     {% block page_product_detail_price %}
  89.                         <div class="product_price">
  90.                             {% sw_include '@Storefront/storefront/page/product-detail/buy-widget-price.html.twig' %}
  91.                         </div>
  92.                     {% endblock %}
  93.                     <div class="short_description">
  94.                            {{ page.product.description|trans|sw_sanitize }}
  95.                     {% block page_product_detail_tax %}
  96.                         <div class="product-detail-tax-container">
  97.                             {% if context.taxState == "gross" %}
  98.                                 {% set taxText = "general.grossTaxInformation"|trans|sw_sanitize %}
  99.                             {% else %}
  100.                                 {% set taxText = "general.netTaxInformation"|trans|sw_sanitize %}
  101.                             {% endif %}
  102.                             <p class="product-detail-tax">
  103.                                 {% block page_product_detail_tax_link %}
  104.                                     <a class="product-detail-tax-link"
  105.                                        href="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}"
  106.                                        title="{{ taxText }}"
  107.                                     {{ dataBsToggleAttr }}="modal"
  108.                                     data-url="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}">
  109.                                     {{ taxText }}
  110.                                     </a>
  111.                                 {% endblock %}
  112.                             </p>
  113.                         </div>
  114.                     {% endblock %}
  115.                     {% set remoteClickOptions = {
  116.                         selector: "#review-tab",
  117.                         scrollToElement: true
  118.                     } %}
  119.                     {% block page_product_detail_reviews %}
  120. {#                        {% if page.product.ratingAverage > 0 and page.reviews.totalReviews > 0 and config('core.listing.showReview') %}#}
  121. {#                            <div class="product-detail-reviews">#}
  122. {#                                {% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {#}
  123. {#                                    points: page.product.ratingAverage,#}
  124. {#                                    style: 'text-primary'#}
  125. {#                                } %}#}
  126. {#                                <a {{ dataBsToggleAttr }}="tab"#}
  127. {#                                class="product-detail-reviews-link"#}
  128. {#                                data-offcanvas-tabs="true"#}
  129. {#                                data-remote-click="true"#}
  130. {#                                data-remote-click-options='{{ remoteClickOptions|json_encode }}'#}
  131. {#                                href="#review-tab-pane"#}
  132. {#                                aria-controls="review-tab-pane">#}
  133. {#                                {{ page.reviews.totalReviews }}#}
  134. {#                                {{ "detail.reviewLinkText"|trans({'%count%': page.reviews.totalReviews})|sw_sanitize }}#}
  135. {#                                </a>#}
  136. {#                            </div>#}
  137. {#                        {% endif %}#}
  138.                     {% endblock %}
  139.                     {% block page_product_detail_delivery_informations %}
  140.                         <div class="product-detail-delivery-information">
  141.                             {% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
  142.                         </div>
  143.                     {% endblock %}
  144.                 {% endblock %}
  145.                     </div>
  146.                 {% block page_product_detail_buy_form %}
  147.                     {% if page.product.active %}
  148.                         <div class="product_actions">
  149.                             {% sw_include '@Storefront/storefront/page/product-detail/buy-widget-form.html.twig' %}
  150.                         </div>
  151.                     {% endif %}
  152.                 {% endblock %}
  153.                 {% block page_product_detail_configurator_include %}
  154.                     {% if page.product.parentId and page.configuratorSettings|length > 0 %}
  155.                         <div class="product_options">
  156.                             {% sw_include '@Storefront/storefront/page/product-detail/configurator.html.twig' %}
  157.                         </div>
  158.                     {% endif %}
  159.                 {% endblock %}
  160.             </div>
  161.         {% endblock %}
  162.         {% block page_product_detail_ordernumber_container %}
  163.             {% if page.product.productNumber %}
  164. {#                <div class="product-detail-ordernumber-container">#}
  165. {#                    {% block page_product_detail_ordernumber_label %}#}
  166. {#                        <span class="product-detail-ordernumber-label">#}
  167. {#                            {{ "detail.productNumberLabel"|trans|sw_sanitize }}#}
  168. {#                        </span>#}
  169. {#                    {% endblock %}#}
  170.                     {% block page_product_detail_ordernumber %}
  171.                         <meta itemprop="productID"
  172.                               content="{{ page.product.id }}"/>
  173. {#                        <span class="product-detail-ordernumber"#}
  174. {#                              itemprop="sku">#}
  175. {#                            {{ page.product.productNumber }}#}
  176. {#                        </span>#}
  177.                     {% endblock %}
  178. {#                </div>#}
  179.             {% endif %}
  180.         {% endblock %}
  181.     </div>
  182. {% endblock %}