{% sw_extends '@Storefront/storefront/page/product-detail/index.html.twig' %}
{% block page_product_detail_buy %}
<div class="col-lg-5 position-relative">
<div class="product-detail-buy-box">
<div class="title_wishlist">
<div><h1 class="product-detail-name"
itemprop="name">
{{ page.product.translated.name }}
{% if page.product.calculatedCheapestPrice.listPrice.percentage %}
<span class="badge badge-danger">
{{ "detail.listPricePercentage"|trans({'%price%': page.product.calculatedCheapestPrice.listPrice.percentage|round })|sw_sanitize }}
</span>
{% endif %}
</h1>
</div>
{% block component_product_wishlist %}
{% set addToWishlistOptions = {
productId: page.product.id,
router: {
add: {
afterLoginPath: path('frontend.wishlist.add.after.login', { productId: page.product.id }),
path: path('frontend.wishlist.product.add', { productId: page.product.id }),
token: sw_csrf('frontend.wishlist.product.add', {"mode": "token"})
},
remove: {
path: path('frontend.wishlist.product.remove', { productId: page.product.id }),
token: sw_csrf('frontend.wishlist.product.remove', {"mode": "token"}),
}
}
} %}
{% set size = size ?? 'md' %}
{% block component_product_wishlist_button %}
<button
class="product-wishlist-{{ productId }} product-wishlist-action{% if appearance == 'circle' %}-circle{% endif %} product-wishlist-not-added product-wishlist-loading"
title="{{ "listing.toggleWishlist"|trans|sw_sanitize }}"
data-add-to-wishlist="true"
data-add-to-wishlist-options="{{ addToWishlistOptions|json_encode }}"
>
{% block component_product_wishlist_icon %}
{% sw_icon 'heart-fill' style { 'class': 'wishlist icon-wishlist-added', 'size': size } %}
{% sw_icon 'heart' style {'class': 'wishlist icon-wishlist-not-added', 'size': size } %}
{% endblock %}
</button>
{% endblock %}
{% endblock %}
</div>
<p class="sw-cms-el-buy-box__product-number">{{ page.product.productNumber }}</p>
<div class="product-detail-buy">
{% sw_include '@Storefront/storefront/page/product-detail/buy-widget.html.twig' %}
</div>
</div>
</div>
{% endblock %}
{% block page_product_detail_tabs %}
<div class="product-detail-tabs col-lg-7">
{% sw_include '@Storefront/storefront/page/product-detail/tabs.html.twig' %}
</div>
{% endblock %}
{% block page_product_detail_media %}
<div class="col-lg-7 product-detail-media">
{% if page.product.media %}
{% sw_include '@Storefront/storefront/element/cms-element-image-gallery.html.twig' with {
'mediaItems': mediaItems,
'zoom': false,
'zoomModal': true,
'displayMode': 'contain',
'gutter': 5,
'minHeight': '430px',
'navigationArrows': 'inside',
'navigationDots': 'inside',
'galleryPosition': 'left',
'isProduct': true,
'fallbackImageTitle': page.product.translated.name,
'startIndexThumbnails': page.product.cover.position + 1,
'startIndexSlider': page.product.cover.position + 1
} %}
{% endif %}
</div>
{% endblock %}
{% block page_product_detail_cross_selling %}
{% endblock %}