custom/plugins/IabTheme/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.         {% if not feature('FEATURE_NEXT_16992') %}
  6.             {# @deprecated tag:v6.5.0 tag:)(FEATURE_NEXT_16992) - Block will be removed in v6.5.0 #}
  7.             {% block buy_widget_not_available %}
  8.             {% endblock %}
  9.         {% endif %}
  10.         {% block buy_widget_buy_container %}
  11.             {% set loginCustomer = context.customer %}
  12.             {% set hidePrice = config('SprinixHidePrice.hidePrice.hidePrices') %}
  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.                     {% if hidePrice and not(loginCustomer) %}
  19.                         <div class="login_block">
  20.                             <a href="{{ path('frontend.account.login') }}"
  21.                                     class="btn btn-block btn-buy">
  22.                                 {{ "listing.priceAfterLogin"|trans|sw_sanitize }}
  23.                             </a>
  24.                         </div>
  25.                     {% else %}
  26.                         {{ block('buy_widget_data_rich_snippet_price_range') }}
  27.                         {{ block('buy_widget_data_rich_snippet_price_currency') }}
  28.                         {{ block('buy_widget_price') }}
  29.                         {{ block('buy_widget_tax') }}
  30.                     {% endif %}
  31.                     {# @deprecated tag:v6.5.0 - Will be removed - The variable will be moved into block `buy_widget_reviews` #}
  32.                     {% set remoteClickOptions = {
  33.                         selector: "#review-tab-" ~ product.id,
  34.                         scrollToElement: true
  35.                     } %}
  36.                     {# @deprecated tag:v6.5.0 - Will be removed - The variable will be moved into block `buy_widget_reviews` #}
  37.                     {% set reviewTabHref = '#review-tab-' ~ product.id ~ '-pane' %}
  38.                     {{ block('buy_widget_reviews') }}
  39.                 {% endblock %}
  40.                 {{ block('buy_widget_configurator_include') }}
  41.                 {% if not(hidePrice) or (loginCustomer) %}
  42.                     {{ block('buy_widget_buy_form') }} {# if show price #}
  43.                 {% endif %}
  44.             </div>
  45.             {% block page_product_detail_add_to_compare_button %} {# from Frosch product-compare plugin #}
  46.                 <div class="mb-2">
  47.                     {% sw_include '@Storefront/storefront/component/product/card/compare-button.html.twig' with {
  48.                         navigationTree: page.header.navigation.tree,
  49.                         categoryTree: page.product.categoryTree|last,
  50.                         product: page.product
  51.                     } only %}
  52.                 </div>
  53.             {% endblock %}
  54.         {% endblock %}
  55.         {% if config('core.cart.wishlistEnabled') %}
  56.             {{ block('buy_widget_wishlist') }}
  57.         {% endif %}
  58.         {% block buy_widget_ordernumber_container %}
  59.             {% if product.productNumber %}
  60.                 <div class="product-detail-ordernumber-container {% if product.parentId and configuratorSettings|length > 0 %} is-hidden{% endif %}">
  61.                     {% block buy_widget_ordernumber_label %}
  62.                         <span class="product-detail-ordernumber-label">
  63.                             {{ "detail.productNumberLabel"|trans|sw_sanitize }}
  64.                         </span>
  65.                     {% endblock %}
  66.                     {% block buy_widget_ordernumber %}
  67.                         <meta itemprop="productID"
  68.                               content="{{ product.id }}"/>
  69.                         <span class="product-detail-ordernumber"
  70.                               itemprop="sku">
  71.                             {{ product.productNumber }}
  72.                         </span>
  73.                     {% endblock %}
  74.                 </div>
  75.             {% endif %}
  76.         {% endblock %}
  77.         {% block buy_widget_custom_fields_container %}
  78.             {% set customFields = element.data.product.translated.customFields %}
  79.             <div class="row">
  80.                 <div class="col-6">
  81.                     <div class="font-weight-bold mb-1">{{ 'detail.features'|trans|sw_sanitize }}</div>
  82.                     <div>
  83.                         {{ customFields.migration_ShopwarewithAPI_product_teaser_text|default('')|sw_sanitize}}
  84.                     </div>
  85.                 </div>
  86.                 <div class="col-6">
  87.                     <div class="row">
  88.                         <div class="col-auto">
  89.                             <div class="font-weight-bold mb-1">{{ 'detail.packagingUnit'|trans|sw_sanitize }}</div>
  90.                             <div>
  91.                                 {{ customFields.migration_ShopwarewithAPI_product_produkt_ve|default('')|sw_sanitize }}
  92.                             </div>
  93.                         </div>
  94.                     </div>
  95.                     {% if product.deliveryTime %}
  96.                         <div class="row">
  97.                             <div class="col-auto">
  98.                                 <div class="font-weight-bold mb-1 mt-3">{{ 'detail.deliveryStatus'|trans|sw_sanitize }}</div>
  99.                                 <div>
  100.                                     {{ block('buy_widget_delivery_informations') }}
  101.                                 </div>
  102.                             </div>
  103.                         </div>
  104.                     {% endif %}
  105.                 </div>
  106.             </div>
  107.         {% endblock %}
  108.         {% block buy_widget_main_features_container %}
  109.             {% block element_buy_box_properties %}
  110.                 <div class="product-detail-main-features-container">
  111.                     {% set group = product.sortedProperties %}
  112.                     {% sw_include '@Storefront/storefront/component/product/teaser-properties.html.twig' with {
  113.                         group: product.sortedProperties
  114.                     } %}
  115.                 </div>
  116.             {% endblock %}
  117.         {% endblock %}
  118.     </div>
  119. {% endblock %}