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