vault backup: 2025-06-28 21:24:43

This commit is contained in:
2025-06-28 21:24:43 +02:00
parent 85c2f9d0c8
commit 7ec15d5850
+35 -20
View File
@@ -184,49 +184,64 @@ Mit Varianten Bezeichnung
Mit Kategorie Zuordnung - Test:
```
"{%- if product.categories.count > 0 -%}
Sport & Outdoor > Sportartikel > Tischtennis > Tischtennisschläger >
{%- if product.categories.first.getBreadCrumb|slice(1,1)|join(' > ')|raw == 'Beläge & Hölzer' -%}
{%- if product.categories.first.getBreadCrumb|slice(2,2)|join(' > ')|raw == 'Beläge' -%}
Schlägerbelag
{%- endif -%}
{%- if product.categories.first.getBreadCrumb|slice(2,2)|join(' > ')|raw == 'Hölzer' -%}
Schlägerblatt
{%- endif -%}
{%- endif -%}
{#- -#}
{%- endif -%}";{#- -#}
{%- if product.categories.count > 0 -%}
{% set run = true %}
{% for main_categories in product.categories.sortByPosition() %}
{% if main_categories.breadcrumb|first == 'TT-Xpert-Tischtennis-Onlineshop' && run %}
{% set run = false %}
{%- if main_categories.breadcrumb[1]|raw == 'Beläge & Hölzer' -%}
{%- if main_categories.breadcrumb[2]|raw == 'Beläge' -%}
{{ "Sport & Outdoor > Sportartikel > Tischtennis > Schlägerbelag" }}{#- -#}
{%- endif -%}
{%- if main_categories.breadcrumb[2]|raw == 'Hölzer' -%}
{{ "Sport & Outdoor > Sportartikel > Tischtennis > Schlägerblatt" }}{#- -#}
{%- endif -%}
{%- endif -%}
{%- if main_categories.breadcrumb[1]|raw == 'TT-Ausrüstung' -%}
{%- if main_categories.breadcrumb[2]|raw == 'Bälle' -%}
{{ "Sport & Outdoor > Sportartikel > Tischtennis > Tischtennisball" }}{#- -#}
{% else %}
{{ "Sport & Outdoor > Sportartikel > Tischtennis > Tischtennis-Zubehör" }}{#- -#}
{%- endif -%}
{%- endif -%}
{% endif %}
{% endfor %}
{%- endif -%};{#- -#}
"{{ product.manufacturer.translated.name }}";{#- -#}
"{{ product.translated.name }}";{#- -#}
"{%- for option in product.options -%}
{{ option.name }}{#- -#}
{{ option.name }}{#- -#}
{%- endfor -%}";{#- -#}
{% set price = product.calculatedPrice %}
{%- if product.calculatedPrices.count > 0 -%}
{% set price = product.calculatedPrices.last %}
{% set price = product.calculatedPrices.last %}
{%- endif -%}
"{{ price.unitPrice|currency }}";{#- -#}
"{%- if price.referencePrice is not null -%}
{{ price.referencePrice.price|currency }} / {{ price.referencePrice.referenceUnit }} {{ price.referencePrice.unitName }}{#- -#}
{{ price.referencePrice.price|currency }} / {{ price.referencePrice.referenceUnit }} {{ price.referencePrice.unitName }}{#- -#}
{%- endif -%}";{#- -#}
"{{ product.manufacturerNumber }}"; {#- -#}
"{{ product.ean }}";{#- -#}
"{% if price.unitPrice <= 70.00 %}
{{ 4.90|currency }}{#- -#}
{{ 4.90|currency }}{#- -#}
{% else %}
{{ 0.00|currency }}{#- -#}
{{ 0.00|currency }}{#- -#}
{% endif %}";{#- -#}
"{{ seoUrl('frontend.detail.page', {'productId': product.id}) }}";{#- -#}
"{%- if product.availableStock >= product.minPurchase and product.deliveryTime -%}
{{ "detail.deliveryTimeAvailable"|trans({'%name%': product.deliveryTime.translation('name')}) }}{#- -#}
{{ "detail.deliveryTimeAvailable"|trans({'%name%': product.deliveryTime.translation('name')}) }}{#- -#}
{%- elseif product.availableStock < product.minPurchase and product.deliveryTime and product.restockTime -%}
{{ "detail.deliveryTimeRestock"|trans({'%count%': product.restockTime,'%restockTime%': product.restockTime,'%name%': product.deliveryTime.translation('name')}) }}{#- -#}
{{ "detail.deliveryTimeRestock"|trans({'%count%': product.restockTime,'%restockTime%': product.restockTime,'%name%': product.deliveryTime.translation('name')}) }}{#- -#}
{%- else -%}
{{ "detail.soldOut"|trans }}{#- -#}
{{ "detail.soldOut"|trans }}{#- -#}
{%- endif -%}";{#- -#}
"{{ product.productNumber }}";{#- -#}
"{% if product.cover is not null %}{{ product.cover.media.url }}{% endif %}";{#- -#}