migrate product detail templates

This commit is contained in:
Martin Filipovic Hinrichs 2026-06-04 17:46:11 +02:00
parent 86559e7b92
commit 3a237af9c9
11 changed files with 142 additions and 200 deletions

View file

@ -0,0 +1,33 @@
{% sw_extends '@Storefront/storefront/component/buy-widget/buy-widget.html.twig' %}
{% block buy_widget_rich_snippets %}
{% block page_product_detail_name %}
<h1 class="product-detail-name"
{% if not feature('JSON_LD_DATA') %}itemprop="name"{% endif %}>
{% if product.customFields.custom_wein_jahrgang %}<span class="year">{{ product.customFields.custom_wein_jahrgang }}er</span>{% endif %}
<span class="site">{{ product.extensions.bwegProperties.get('4d005d04a2924cc4b59612875aee757c') }}</span>
{{ product.translated.name }}
<span class="qty_taste">{{ product.extensions.bwegProperties.get('840da18f18184040ac2c34e9a13abd83') }} {{ product.extensions.bwegProperties.get('087598bcbf044684b57fa108f0385128') }}</span>
{% if product.customFields.custom_wein_addendum %}
<span class="addendum">{{ product.customFields.custom_wein_addendum }}</span>
{% endif %}
</h1>
{% endblock %}
{{ parent() }}
{% endblock %}
{# Description and properties: replace the order-number block (last child inside the buy column) #}
{% block buy_widget_ordernumber_container %}
{% block page_product_detail_buy_description %}
<div class="h3 product-detail-description-title">
{{ "detail.miscTitle"|trans|sw_sanitize }}
</div>
<div class="product-detail-description-text"
{% if not feature('JSON_LD_DATA') %}itemprop="description"{% endif %}>
{{ product.translated.description|raw }}
</div>
{% endblock %}
{% sw_include '@Wgsh/storefront/page/product-detail/customfields.html.twig' with { 'product': product } %}
{% endblock %}