custom/plugins/SchilderSysteme/src/Resources/views/storefront/page/product-detail/index.html.twig line 1

Open in your IDE?
  1. {% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
  2. {% block page_product_detail_buy %}
  3.     <div class="col-lg-5 position-relative">
  4.         <div class="product-detail-buy-box">
  5.             <div class="title_wishlist">
  6.                 <div><h1 class="product-detail-name"
  7.                          itemprop="name">
  8.                         {{ page.product.translated.name }}
  9.                         {% if page.product.calculatedCheapestPrice.listPrice.percentage %}
  10.                             <span class="badge badge-danger">
  11.                     {{ "detail.listPricePercentage"|trans({'%price%': page.product.calculatedCheapestPrice.listPrice.percentage|round })|sw_sanitize }}
  12.                 </span>
  13.                         {% endif %}
  14.                     </h1>
  15.                 </div>
  16.                 {% block component_product_wishlist %}
  17.                     {% set addToWishlistOptions = {
  18.                         productId: page.product.id,
  19.                         router: {
  20.                             add: {
  21.                                 afterLoginPath: path('frontend.wishlist.add.after.login', { productId: page.product.id }),
  22.                                 path: path('frontend.wishlist.product.add', { productId: page.product.id }),
  23.                                 token: sw_csrf('frontend.wishlist.product.add', {"mode": "token"})
  24.                             },
  25.                             remove: {
  26.                                 path: path('frontend.wishlist.product.remove', { productId: page.product.id }),
  27.                                 token: sw_csrf('frontend.wishlist.product.remove', {"mode": "token"}),
  28.                             }
  29.                         }
  30.                     } %}
  31.                     {% set size = size ?? 'md' %}
  32.                     {% block component_product_wishlist_button %}
  33.                         <button
  34.                                 class="product-wishlist-{{ productId }} product-wishlist-action{% if appearance == 'circle' %}-circle{% endif %} product-wishlist-not-added product-wishlist-loading"
  35.                                 title="{{ "listing.toggleWishlist"|trans|sw_sanitize }}"
  36.                                 data-add-to-wishlist="true"
  37.                                 data-add-to-wishlist-options="{{ addToWishlistOptions|json_encode }}"
  38.                         >
  39.                             {% block component_product_wishlist_icon %}
  40.                                 {% sw_icon 'heart-fill' style { 'class': 'wishlist icon-wishlist-added', 'size': size } %}
  41.                                 {% sw_icon 'heart' style {'class': 'wishlist icon-wishlist-not-added', 'size': size } %}
  42.                             {% endblock %}
  43.                         </button>
  44.                     {% endblock %}
  45.                 {% endblock %}
  46.             </div>
  47.             <p class="sw-cms-el-buy-box__product-number">{{ page.product.productNumber }}</p>
  48.             <div class="product-detail-buy">
  49.                 {% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
  50.             </div>
  51.         </div>
  52.     </div>
  53. {% endblock %}
  54. {% block page_product_detail_tabs %}
  55.     <div class="product-detail-tabs col-lg-7">
  56.         {% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
  57.     </div>
  58. {% endblock %}
  59. {% block page_product_detail_media %}
  60.     <div class="col-lg-7 product-detail-media">
  61.         {% if page.product.media %}
  62.             {% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
  63.                 'mediaItems': mediaItems,
  64.                 'zoom': false,
  65.                 'zoomModal': true,
  66.                 'displayMode': 'contain',
  67.                 'gutter': 5,
  68.                 'minHeight': '430px',
  69.                 'navigationArrows': 'inside',
  70.                 'navigationDots': 'inside',
  71.                 'galleryPosition': 'left',
  72.                 'isProduct': true,
  73.                 'fallbackImageTitle': page.product.translated.name,
  74.                 'startIndexThumbnails': page.product.cover.position + 1,
  75.                 'startIndexSlider': page.product.cover.position + 1
  76.             } %}
  77.         {% endif %}
  78.     </div>
  79. {% endblock %}
  80. {% block page_product_detail_cross_selling %}
  81. {% endblock %}