custom/plugins/FuerstenbergPorzellan/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">
  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.                     {% if page.product.manufacturer %}
  27.                         <div class="product-detail-manufacturer">
  28.                             {{ page.product.manufacturer.translated.name }}
  29.                         </div>
  30.                     {% endif %}
  31.                     {% if page.product.manufacturer and page.product.manufacturer.media %}
  32.                         <img src="{{ page.product.manufacturer.media|sw_encode_media_url }}"
  33.                                 class="product-detail-manufacturer-logo d-none d-md-block"
  34.                                 alt="{{ page.product.manufacturer.translated.name }}"/>
  35.                     {% endif %}
  36.                     <h1 class="product-detail-name"
  37.                         itemprop="name">
  38.                             {{ page.product.translated.name }}
  39.                     </h1>
  40.                     {% if page.product.customFields.custom_product_information_subdesc %}
  41.                         <div class="subdesc" itemprop="description">
  42.                             {{page.product.customFields.custom_product_information_subdesc}}
  43.                         </div>
  44.                     {% endif %}
  45.                     {% if page.product.customFields.custom_product_information_design %}
  46.                         <div class="design">
  47.                             {{"detail.DesignTitle"|trans}} {{page.product.customFields.custom_product_information_design}}
  48.                         </div>
  49.                     {% endif %}
  50.                     
  51.                     {% block buy_widget_price %}
  52.                         <div class="product-detail-price-container">
  53.                             {% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-price.html.twig' %}
  54.                         </div>
  55.                     {% endblock %}
  56.                     {% block buy_widget_tax %}
  57.                         <div class="product-detail-tax-container">
  58.                             {% if context.taxState == "gross" %}
  59.                                 {% set taxText = "general.grossTaxInformation"|trans|sw_sanitize %}
  60.                             {% else %}
  61.                                 {% set taxText = "general.netTaxInformation"|trans|sw_sanitize %}
  62.                             {% endif %}
  63.                             <p class="product-detail-tax">
  64.                                 {% block buy_widget_tax_link %}
  65.                                     <a class="product-detail-tax-link"
  66.                                        href="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}"
  67.                                        title="{{ taxText }}"
  68.                                        {{ dataBsToggleAttr }}="modal"
  69.                                        data-url="{{ path('frontend.cms.page',{ id: config('core.basicInformation.shippingPaymentInfoPage') }) }}">
  70.                                         {{ taxText }}
  71.                                     </a>
  72.                                 {% endblock %}
  73.                             </p>
  74.                         </div>
  75.                     {% endblock %}
  76.                     {# @deprecated tag:v6.5.0 - Will be removed - The variable will be moved into block `buy_widget_reviews` #}
  77.                     {% set remoteClickOptions = {
  78.                         selector: "#review-tab-" ~ product.id,
  79.                         scrollToElement: true
  80.                     } %}
  81.                     {# @deprecated tag:v6.5.0 - Will be removed - The variable will be moved into block `buy_widget_reviews` #}
  82.                     {% set reviewTabHref = "#review-tab-" ~ product.id ~ "-pane" %}
  83.                     {% block buy_widget_reviews %}
  84.                         {% if product.ratingAverage > 0 and totalReviews > 0 and config('core.listing.showReview') %}
  85.                             {% if remoteClickOptions is not defined %}
  86.                                 {% set remoteClickOptions = {
  87.                                     selector: "#review-tab-" ~ product.id,
  88.                                     scrollToElement: true
  89.                                 } %}
  90.                             {% endif %}
  91.                             {% if reviewTabHref is not defined %}
  92.                                 {% set reviewTabHref = "#review-tab-" ~ product.id ~ "-pane" %}
  93.                             {% endif %}
  94.                             <div class="product-detail-reviews">
  95.                                 {% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
  96.                                     points: product.ratingAverage,
  97.                                     style: 'text-primary'
  98.                                 } %}
  99.                                 <a {{ dataBsToggleAttr }}="tab"
  100.                                    class="product-detail-reviews-link"
  101.                                    data-offcanvas-tabs="true"
  102.                                    data-remote-click="true"
  103.                                    data-remote-click-options='{{ remoteClickOptions|json_encode }}'
  104.                                    href="{{ reviewTabHref }}"
  105.                                    aria-controls="review-tab-pane">
  106.                                     {{ totalReviews }}
  107.                                     {{ "detail.reviewLinkText"|trans({'%count%': totalReviews})|sw_sanitize }}
  108.                                 </a>
  109.                             </div>
  110.                         {% endif %}
  111.                     {% endblock %}
  112.                     {% block buy_widget_delivery_informations %}
  113.                         <div class="product-detail-delivery-information">
  114.                             {% sw_include '@Storefront/storefront/component/delivery-information.html.twig' %}
  115.                         </div>
  116.                     {% endblock %}
  117.                 {% endblock %}
  118.                 {% block buy_widget_configurator_include %}
  119.                     {{parent()}}
  120.                 {% endblock %}
  121.                 {% block buy_widget_buy_form %}
  122.                     {{parent()}}
  123.                 {% endblock %}
  124.             </div>
  125.         {% endblock %}
  126.         
  127.         {% block buy_widget_ordernumber_container %}{% endblock %}
  128.         {% sw_include '@Storefront/storefront/component/buy-widget/accordion.html.twig' %}
  129.     </div>
  130. {% endblock %}