custom/plugins/Tuerschild_2/src/Resources/views/storefront/block/cms-block-gallery-buybox.html.twig line 1

Open in your IDE?
  1. {% set reviewTabId = "#review-tab-" ~ page.product.id %}
  2. {% block block_gallery_buybox %}
  3.     {% block block_gallery_buybox_column_left %}
  4.         {% set element = block.slots.getSlot('left') %}
  5.         {% set config = element.fieldConfig.elements %}
  6.         <div class="col-lg-7 product-detail-media">
  7.             {% if page.product.media %}
  8.                 {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  9.                     'mediaItems': mediaItems,
  10.                     'zoom': false,
  11.                     'zoomModal': true,
  12.                     'displayMode': 'contain',
  13.                     'gutter': 5,
  14.                     'minHeight': '430px',
  15.                     'galleryPosition': 'left',
  16.                     'isProduct': true,
  17.                     'fallbackImageTitle': page.product.translated.name,
  18.                     'startIndexThumbnails': page.product.cover.position,
  19.                     'startIndexSlider': page.product.cover.position
  20.                 } %}
  21.             {% endif %}
  22.         </div>
  23.     {% endblock %}
  24.     {% block block_gallery_buybox_column_right %}
  25.         {% set element = block.slots.getSlot('right') %}
  26.         <div class="col-lg-5 position-relative">
  27.             <div class=" product-detail-buy-box-wrapper ">
  28.                 <div class="product-detail-buy-box">
  29.                     <div><h1 class="product-detail-name"
  30.                              itemprop="name">
  31.                             {{ page.product.translated.name }}
  32.                             {% if page.product.calculatedCheapestPrice.listPrice.percentage %}
  33.                                 <span class="badge badge-danger">
  34.                     {{ "detail.listPricePercentage"|trans({'%price%': page.product.calculatedCheapestPrice.listPrice.percentage|round })|sw_sanitize }}
  35.                 </span>
  36.                             {% endif %}
  37.                         </h1>
  38.                     </div>
  39.                     <div class="product-detail-review-wrapper d-flex justify-content-between align-items-center">
  40.                         <span>
  41.                         {% sw_include '@Storefront/storefront/component/review/rating.html.twig' with {
  42.                             points: page.product.ratingAverage,
  43.                             style: 'text-primary'
  44.                         } %}
  45.                         ( {{ element.data.totalReviews }} )
  46.                         </span>
  47.                         <span>
  48.                             {{ page.product.productNumber }}
  49.                         </span>
  50.                     </div>
  51.                     <div class="product-detail-buy">
  52.                         {% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  53.                     </div>
  54.                     {% set remoteClickOptions = {
  55.                         selector: reviewTabId,
  56.                         scrollToElement: true
  57.                     } %}
  58.                     {% if page.product.calculatedPrices|length > 1 %}
  59.                         {% block page_product_detail_price_block %}
  60.                             <div class="product-block-prices test2">
  61.                                 {% block page_product_detail_price_block_table %}
  62.                                     <table class="table product-block-prices-grid">
  63.                                         {% block page_product_detail_price_block_table_head %}
  64.                                             <thead class="product-block-prices-head">
  65.                                             {% block page_product_detail_price_block_table_head_inner %}
  66.                                                 <tr class="product-block-prices-row">
  67.                                                     <th scope="col" class="product-block-prices-cell">
  68.                                                         {{ "detail.dataColumnQuantity"|trans|sw_sanitize }}
  69.                                                     </th>
  70.                                                     <th scope="col" class="product-block-prices-cell">
  71.                                                         {{ "detail.dataColumnPrice"|trans|sw_sanitize }}
  72.                                                     </th>
  73.                                                     {% if page.product.calculatedPrice.referencePrice %}
  74.                                                         <th scope="col" class="product-block-prices-cell">
  75.                                                             {{ "detail.dataColumnReferencePrice"|trans|sw_sanitize }}
  76.                                                         </th>
  77.                                                     {% endif %}
  78.                                                 </tr>
  79.                                             {% endblock %}
  80.                                             </thead>
  81.                                         {% endblock %}
  82.                                         
  83.                                         {% block page_product_detail_price_block_table_body %}
  84.                                             <tbody class="product-block-prices-body">
  85.                                             {% block page_product_detail_price_block_table_body_inner %}
  86.                                                 {% for price in page.product.calculatedPrices %}
  87.                                                     {% block page_product_detail_price_block_table_body_row %}
  88.                                                         {% if loop.first %}
  89.                                                         {% else %}
  90.                                                         <tr class="product-block-prices-row"
  91.                                                             itemprop="offers" itemscope
  92.                                                             itemtype="https://schema.org/Offer">
  93.                                                             {% block page_product_detail_price_block_table_body_cell_quantity %}
  94.                                                                 <th scope="row"
  95.                                                                     class="product-block-prices-cell product-block-prices-cell-thin">
  96.                                                                     <meta itemprop="priceCurrency"
  97.                                                                           content="{{ page.header.activeCurrency.id }}"/>
  98.                                                                     <meta itemprop="price"
  99.                                                                           content="{{ price.unitPrice }}"/>
  100.                                                                     <link itemprop="availability"
  101.                                                                           href="https://schema.org/InStock"/>
  102.                                                                     
  103.                                                                     {{ "detail.priceDataInfoFrom"|trans|sw_sanitize }}
  104.                                                                     <span class="product-block-prices-quantity"> {{ page.product.calculatedPrices.elements[loop.index -2].quantity + 1}}</span>
  105.                                                                 </th>
  106.                                                             {% endblock %}
  107.                                                             {% block page_product_detail_price_block_table_body_cell_price %}
  108.                                                                 <td class="product-block-prices-cell price">
  109.                                                                     {% sw_include '@Storefront/storefront/component/product/block-price.html.twig' with {
  110.                                                                         price: price
  111.                                                                     } only %}
  112.                                                                 </td>
  113.                                                             {% endblock %}
  114.                                                             {% block page_product_detail_price_block_table_body_cell_reference_price %}
  115.                                                                 {% if price.referencePrice is not null %}
  116.                                                                     <td class="product-block-prices-cell product-block-prices-cell-thin price">
  117.                                                                         {{ price.referencePrice.price|currency }}{{ "general.star"|trans|sw_sanitize }}
  118.                                                                         / {{ price.referencePrice.referenceUnit }} {{ price.referencePrice.unitName }}
  119.                                                                     </td>
  120.                                                                 {% endif %}
  121.                                                             {% endblock %}
  122.                                                         </tr>
  123.                                                         {% endif %}
  124.                                                     {% endblock %}
  125.                                                 {% endfor %}
  126.                                             {% endblock %}
  127.                                             </tbody>
  128.                                         {% endblock %}
  129.                                     </table>
  130.                                 {% endblock %}
  131.                                 {% if context.taxState == "gross" %}
  132.                                     {% set taxText = "general.grossTaxInformation"|trans|sw_sanitize %}
  133.                                 {% else %}
  134.                                     {% set taxText = "general.netTaxInformationFirstPart"|trans|sw_sanitize %}
  135.                                     {% set taxTextLink = "general.netTaxInformationSecondPart"|trans|sw_sanitize %}
  136.                                 {% endif %}
  137.                                 <span class="product-detail-tax-link">{{ taxText }}
  138.                                     <a
  139.                                        href="{{ path('frontend.cms.page',{ id: shopware.config.core.basicInformation.shippingPaymentInfoPage }) }}"
  140.                                        title="{{ taxTextLink }}"
  141.                                        data-toggle="modal"
  142.                                        data-url="{{ path('frontend.cms.page',{ id: shopware.config.core.basicInformation.shippingPaymentInfoPage }) }}">
  143.                                         {{ taxTextLink }}
  144.                                     </a>
  145.                                 </span>
  146.                             </div>
  147.                         {% endblock %}
  148.                     {% endif %}
  149.                     <div class="row align-items-center product-detail-actions mx-0">
  150.                         <div class="col-12 col-sm-4">
  151.                             <div class="product-detail-action">
  152.                             <span style="position:relative; top:-1px;">{% sw_icon 'phone' style {
  153.                                     'namespace': 'Tuerschild_2',
  154.                                 } %} </span>
  155.                                 <a class="product-detail-action-call-link" href="tel:{{ "detail.contactNumber"|trans|sw_sanitize }}">{{ "detail.contactNumber"|trans|sw_sanitize }}</a>
  156.                             </div>
  157.                         </div>
  158.                         <div class="col-12 col-sm-4 d-flex align-items-center justify-content-sm-center">
  159.                             <div class="text-center product-detail-action">
  160.                             <span style="position:relative; top:-2px;">{% sw_icon 'rating' style {
  161.                                     'namespace': 'Tuerschild_2',
  162.                                 } %} </span>
  163.                                 <span data-toggle="tab"
  164.                                       class="product-detail-reviews-link product-detail-tab-navigation-link"
  165.                                       data-toggle="tab"
  166.                                       data-offcanvas-tabs="true"
  167.                                       data-remote-click="true"
  168.                                       data-remote-click-options='{{ remoteClickOptions|json_encode }}'
  169.                                       role="tab"
  170.                                       aria-controls="review-tab-pane"
  171.                                       aria-selected="true">
  172.                                 {{ "detail.evaluate"|trans|sw_sanitize }}
  173.                             </span>
  174.                             </div>
  175.                         </div>
  176.                         <div class="col-12 col-sm-4 d-flex align-items-center  justify-content-sm-end">
  177.                             <div class="text-right product-detail-action">
  178.                                 {% block component_product_wishlist %}
  179.                                     {% set addToWishlistOptions = {
  180.                                         productId: page.product.id,
  181.                                         router: {
  182.                                             add: {
  183.                                                 afterLoginPath: path('frontend.wishlist.add.after.login', { productId: page.product.id }),
  184.                                                 path: path('frontend.wishlist.product.add', { productId: page.product.id }),
  185.                                                 token: sw_csrf('frontend.wishlist.product.add', {"mode": "token"})
  186.                                             },
  187.                                             remove: {
  188.                                                 path: path('frontend.wishlist.product.remove', { productId: page.product.id }),
  189.                                                 token: sw_csrf('frontend.wishlist.product.remove', {"mode": "token"}),
  190.                                             }
  191.                                         }
  192.                                     } %}
  193.                                     {% set size = size ?? 'md' %}
  194.                                     {% block component_product_wishlist_button %}
  195.                                         <button
  196.                                                 class="d-flex align-items-center product-wishlist-{{ productId }} product-wishlist-action{% if appearance == 'circle' %}-circle{% endif %} product-wishlist-not-added product-wishlist-loading"
  197.                                                 title="{{ "listing.toggleWishlist"|trans|sw_sanitize }}"
  198.                                                 data-add-to-wishlist="true"
  199.                                                 data-add-to-wishlist-options="{{ addToWishlistOptions|json_encode }}"
  200.                                         >
  201.                                             {% block component_product_wishlist_icon %}
  202.                                                 {% sw_icon 'heart-fill' style { 'class': 'wishlist icon-wishlist-added', 'size': size } %}
  203.                                                 {% sw_icon 'heart' style {'class': 'wishlist icon-wishlist-not-added', 'size': size } %}
  204.                                             {% endblock %}
  205.                                             <span class="product-detail-favorite-text">{{ "detail.favorite"|trans|sw_sanitize }}</span>
  206.                                         </button>
  207.                                     {% endblock %}
  208.                                 {% endblock %}
  209.                             </div>
  210.                         </div>
  211.                     </div>
  212.                 </div>
  213.             </div>
  214.         </div>
  215.     {% endblock %}
  216. {% endblock %}