custom/static-plugins/CytexTheme/src/Resources/views/storefront/page/product-detail/cytex-detail-buy-container.html.twig line 1

Open in your IDE?
  1. {% block cytex_detail_buy_container %}
  2.     <section class="product-detail-price-main-container cytex-custom-quantity-field-settings ">
  3.         <div itemprop="offers"
  4.              itemscope
  5.              itemtype="{% if product.calculatedPrices|length > 1 %}http://schema.org/AggregateOffer{% else %}http://schema.org/Offer{% endif %}">
  6.             {% block buy_widget_data %}
  7.                 {% if galleryBuybox or productDetail.site %}
  8.                     {% block component_product_box_badges %}
  9.                         {% sw_include '@Storefront/storefront/component/product/card/badges.html.twig' with {
  10.                             productDetail: {
  11.                                 site: true,
  12.                                 discount: false
  13.                             }
  14.                         }%}
  15.                     {% endblock %}
  16.                 {% endif %}
  17.                 {% block cytex_detail_data_rich_snippet_url %}
  18.                     <meta itemprop="url"
  19.                           content="{{ seoUrl('frontend.detail.page', { productId: product.id }) }}"/>
  20.                 {% endblock %}
  21.                 {% block cytex_detail_data_rich_snippet_price_range %}
  22.                     {% if product.calculatedPrices|length > 1 %}
  23.                         {% set lowestPrice = false %}
  24.                         {% set highestPrice = false %}
  25.                         {% for price in product.calculatedPrices %}
  26.                             {% if not lowestPrice or price.unitPrice < lowestPrice %}
  27.                                 {% set lowestPrice = price.unitPrice %}
  28.                             {% endif %}
  29.                             {% if not highestPrice or price.unitPrice > highestPrice %}
  30.                                 {% set highestPrice = price.unitPrice %}
  31.                             {% endif %}
  32.                         {% endfor %}
  33.                         <meta itemprop="lowPrice" content="{{ lowestPrice }}"/>
  34.                         <meta itemprop="highPrice" content="{{ highestPrice }}"/>
  35.                         <meta itemprop="offerCount" content="{{ product.calculatedPrices|length }}"/>
  36.                     {% endif %}
  37.                 {% endblock %}
  38.                 {% block cytex_detail_data_rich_snippet_price_currency %}
  39.                     <meta itemprop="priceCurrency"
  40.                           content="{{ context.currency.translated.shortName }}"/>
  41.                 {% endblock %}
  42.                 {% block cytex_detail_headline %}
  43.                     <div class="align-items-center product-detail-headline">
  44.                         {{ block("page_product_detail_name", "@Storefront/storefront/page/product-detail/headline.html.twig") }}
  45.                     </div>
  46.                 {% endblock %}
  47.                 {% block cytex_detail_ordernumbers_container %}
  48.                     <section class="product-detail-order-numbers-container">
  49.                         {% if product.productNumber %}
  50.                             <p class="product-detail-ordernumber-container">
  51.                                 {% block cytex_detail_ordernumber_label %}
  52.                                     <span class="product-detail-ordernumber-label">
  53.                                         {{ "detail.productNumberLabel"|trans|sw_sanitize }}
  54.                                     </span>
  55.                                 {% endblock %}
  56.                                 {% block cytex_detail_ordernumber %}
  57.                                     <meta itemprop="productID"
  58.                                           content="{{ product.id }}"/>
  59.                                     <span class="product-detail-ordernumber"
  60.                                           itemprop="sku">
  61.                                         {{ product.productNumber }}
  62.                                     </span>
  63.                                 {% endblock %}
  64.                             </p>
  65.                         {% endif %}
  66.                         {% if product.ean %}
  67.                             <p class="product-detail-order-ean-container">
  68.                                 {% block buy_widget_order_ean_label %}
  69.                                     <span class="product-detail-ean-number-label">
  70.                                         {{ "detail.productEanLabel"|trans|sw_sanitize }}
  71.                                     </span>
  72.                                 {% endblock %}
  73.                                 {% block page_product_detail_ean_number %}
  74.                                     <span class="product-detail-ean-number"
  75.                                           itemprop="sku">
  76.                                         {{ page.product.ean }}
  77.                                     </span>
  78.                                 {% endblock %}
  79.                             </p>
  80.                         {% endif %}
  81.                         <div class="product-detail-line-graphic"></div>
  82.                         {% block cytex_detail_unit_amount %}
  83.                             <section class="product-detail-amount-container">
  84.                                 <div class="product-detail-amount-text">
  85.                                      <span>
  86.                                          {{ "component.product.feature.label.amount"|trans|sw_sanitize }}
  87.                                      </span>
  88.                                     {{ product.extensions.additionalProductInfo.translated.customField2|raw }}
  89.                                 </div>
  90.                             </section>
  91.                         {% endblock %}
  92.                         {% block cytex_detail_readmore_button %}
  93.                             <button id="cytex-product-detail-readmore-button"
  94.                                     class="cytex-btn-hover-light"
  95.                                     data-product-detail-readmore-button>
  96.                                 {{ "product.detail.button.readmore"|trans|sw_sanitize }}
  97.                             </button>
  98.                         {% endblock %}
  99.                         {% block cytex_detail_manufactorer_logo %}
  100.                             {% if page.product.manufacturer %}
  101.                                 <div class="col-md-auto p-0 product-detail-manufacturer">
  102.                                     {% block page_product_detail_manufacturer_inner %}
  103.                                         {% block page_product_detail_manufacturer_link %}
  104.                                             <div class="product-detail-manufacturer-link">
  105.                                                 {% if page.product.manufacturer.media %}
  106.                                                     {% block page_product_detail_manufacturer_logo %}
  107.                                                         <img src="{{ page.product.manufacturer.media|sw_encode_media_url }}"
  108.                                                              class="product-detail-manufacturer-logo"
  109.                                                              alt="{{ page.product.manufacturer.translated.name }}"/>
  110.                                                     {% endblock %}
  111.                                                 {% else %}
  112.                                                     {% block page_product_detail_manufacturer_text %}
  113.                                                         {{ page.product.manufacturer.translated.name }}
  114.                                                     {% endblock %}
  115.                                                 {% endif %}
  116.                                             </div>
  117.                                         {% endblock %}
  118.                                     {% endblock %}
  119.                                 </div>
  120.                             {% endif %}
  121.                         {% endblock %}
  122.                     </section>
  123.                 {% endblock %}
  124.                 {% block cytex_detail_price_and_buyform %}
  125.                     <section class="product-detail-priceAndForm-container">
  126.                         {% block cytex_detail_price %}
  127.                             {% if context.taxState == "gross" %}
  128.                                 {% set taxText = "general.grossTaxInformation"|trans|sw_sanitize %}
  129.                             {% else %}
  130.                                 {% set taxText = "general.netTaxInformation"|trans|sw_sanitize %}
  131.                             {% endif %}
  132.                             <div class="product-detail-price-info-container">
  133.                                 {% sw_include '@Storefront/storefront/page/product-detail/buy-widget-price.html.twig' with {
  134.                                     taxText: taxText
  135.                                 } %}
  136.                             </div>
  137.                         {% endblock %}
  138.                         {% block cytex_detail_buy_form %}
  139.                             {% if product.active %}
  140.                                 <div class="product-detail-form-container mt-3">
  141.                                     {% sw_include '@Storefront/storefront/component/buy-widget/buy-widget-form.html.twig' %}
  142.                                         {% if config('CoeWishlistSw6.config.wishlistButtonOnDetail') %}
  143.                                             <section class="product-detail-wishlist-container col-12 d-flex justify-content-end p-0">
  144.                                                 {% sw_include '@Storefront/storefront/component/wishlist/button/add-note.html.twig' %}
  145.                                             </section>
  146.                                         {% endif %}
  147.                                 </div>
  148.                             {% endif %}
  149.                         {% endblock %}
  150.                         {% if config('core.cart.wishlistEnabled') %}
  151.                             {% block cytex_detail_wishlist %}
  152.                                 {% sw_include '@Storefront/storefront/component/product/card/wishlist.html.twig' with {
  153.                                     showText: true,
  154.                                     size: 'md',
  155.                                     productId: product.id
  156.                                 } %}
  157.                             {% endblock %}
  158.                         {% endif %}
  159.                     </section>
  160.                 {% endblock %}
  161.                 {% set remoteClickOptions = {
  162.                     selector: "#review-tab-" ~ product.id,
  163.                     scrollToElement: true
  164.                 } %}
  165.                 {% set reviewTabHref = "#review-tab-" ~ product.id ~ "-pane" %}
  166.                 {% block cytex_detail_reviews %}
  167.                     {% if product.ratingAverage > 0 and totalReviews > 0 and config('core.listing.showReview') %}
  168.                         <div class="product-detail-reviews">
  169.                             {% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
  170.                                 points: product.ratingAverage,
  171.                                 style: 'text-primary'
  172.                             } %}
  173.                             <a data-toggle="tab"
  174.                                class="product-detail-reviews-link"
  175.                                data-offcanvas-tabs="true"
  176.                                data-remote-click="true"
  177.                                data-remote-click-options='{{ remoteClickOptions|json_encode }}'
  178.                                href="{{ reviewTabHref }}"
  179.                                aria-controls="review-tab-pane">
  180.                                 {{ totalReviews }}
  181.                                 {{ "detail.reviewLinkText"|trans({'%count%': totalReviews})|sw_sanitize }}
  182.                             </a>
  183.                         </div>
  184.                     {% endif %}
  185.                 {% endblock %}
  186.             {% endblock %}
  187.             {% block cytex_detail_configurator_include %}
  188.                 {% if product.parentId and configuratorSettings|length > 0 %}
  189.                     <div class="product-detail-configurator-container">
  190.                         {% sw_include '@Storefront/storefront/component/buy-widget/configurator.html.twig' %}
  191.                     </div>
  192.                 {% endif %}
  193.             {% endblock %}
  194.         </div>
  195.     </section>
  196. {% endblock %}