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: Mit Kategorie Zuordnung - Test:
``` ```
"{%- if product.categories.count > 0 -%} {%- if product.categories.count > 0 -%}
Sport & Outdoor > Sportartikel > Tischtennis > Tischtennisschläger > {% set run = true %}
{%- if product.categories.first.getBreadCrumb|slice(1,1)|join(' > ')|raw == 'Beläge & Hölzer' -%} {% for main_categories in product.categories.sortByPosition() %}
{%- if product.categories.first.getBreadCrumb|slice(2,2)|join(' > ')|raw == 'Beläge' -%} {% if main_categories.breadcrumb|first == 'TT-Xpert-Tischtennis-Onlineshop' && run %}
Schlägerbelag {% set run = false %}
{%- endif -%} {%- if main_categories.breadcrumb[1]|raw == 'Beläge & Hölzer' -%}
{%- if product.categories.first.getBreadCrumb|slice(2,2)|join(' > ')|raw == 'Hölzer' -%} {%- if main_categories.breadcrumb[2]|raw == 'Beläge' -%}
Schlägerblatt {{ "Sport & Outdoor > Sportartikel > Tischtennis > Schlägerbelag" }}{#- -#}
{%- endif -%} {%- endif -%}
{%- endif -%} {%- if main_categories.breadcrumb[2]|raw == 'Hölzer' -%}
{#- -#} {{ "Sport & Outdoor > Sportartikel > Tischtennis > Schlägerblatt" }}{#- -#}
{%- endif -%}";{#- -#} {%- 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.manufacturer.translated.name }}";{#- -#}
"{{ product.translated.name }}";{#- -#} "{{ product.translated.name }}";{#- -#}
"{%- for option in product.options -%} "{%- for option in product.options -%}
{{ option.name }}{#- -#} {{ option.name }}{#- -#}
{%- endfor -%}";{#- -#} {%- endfor -%}";{#- -#}
{% set price = product.calculatedPrice %} {% set price = product.calculatedPrice %}
{%- if product.calculatedPrices.count > 0 -%} {%- if product.calculatedPrices.count > 0 -%}
{% set price = product.calculatedPrices.last %} {% set price = product.calculatedPrices.last %}
{%- endif -%} {%- endif -%}
"{{ price.unitPrice|currency }}";{#- -#} "{{ price.unitPrice|currency }}";{#- -#}
"{%- if price.referencePrice is not null -%} "{%- 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 -%}";{#- -#} {%- endif -%}";{#- -#}
"{{ product.manufacturerNumber }}"; {#- -#} "{{ product.manufacturerNumber }}"; {#- -#}
"{{ product.ean }}";{#- -#} "{{ product.ean }}";{#- -#}
"{% if price.unitPrice <= 70.00 %} "{% if price.unitPrice <= 70.00 %}
{{ 4.90|currency }}{#- -#} {{ 4.90|currency }}{#- -#}
{% else %} {% else %}
{{ 0.00|currency }}{#- -#} {{ 0.00|currency }}{#- -#}
{% endif %}";{#- -#} {% endif %}";{#- -#}
"{{ seoUrl('frontend.detail.page', {'productId': product.id}) }}";{#- -#} "{{ seoUrl('frontend.detail.page', {'productId': product.id}) }}";{#- -#}
"{%- if product.availableStock >= product.minPurchase and product.deliveryTime -%} "{%- 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 -%} {%- 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 -%} {%- else -%}
{{ "detail.soldOut"|trans }}{#- -#} {{ "detail.soldOut"|trans }}{#- -#}
{%- endif -%}";{#- -#} {%- endif -%}";{#- -#}
"{{ product.productNumber }}";{#- -#} "{{ product.productNumber }}";{#- -#}
"{% if product.cover is not null %}{{ product.cover.media.url }}{% endif %}";{#- -#} "{% if product.cover is not null %}{{ product.cover.media.url }}{% endif %}";{#- -#}