From 85c2f9d0c8f4a69787edb40c9210fa9702d61cf0 Mon Sep 17 00:00:00 2001 From: Matthias Lodner Date: Sat, 28 Jun 2025 18:24:44 +0200 Subject: [PATCH] vault backup: 2025-06-28 18:24:44 --- Martin/Shopware/Idealo.de Export Template.md | 51 +++++++++++++++++++- 1 file changed, 50 insertions(+), 1 deletion(-) diff --git a/Martin/Shopware/Idealo.de Export Template.md b/Martin/Shopware/Idealo.de Export Template.md index 93f5d1b..398e03b 100644 --- a/Martin/Shopware/Idealo.de Export Template.md +++ b/Martin/Shopware/Idealo.de Export Template.md @@ -182,9 +182,58 @@ Mit Varianten Bezeichnung "0.00"{#- Change or add your payment methods -#} ``` -Mit Kategorie Zuordnung: +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 -%}";{#- -#} +"{{ product.manufacturer.translated.name }}";{#- -#} +"{{ product.translated.name }}";{#- -#} +"{%- for option in product.options -%} + {{ option.name }}{#- -#} +{%- endfor -%}";{#- -#} + +{% set price = product.calculatedPrice %} +{%- if product.calculatedPrices.count > 0 -%} + {% 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 }}{#- -#} +{%- endif -%}";{#- -#} +"{{ product.manufacturerNumber }}"; {#- -#} +"{{ product.ean }}";{#- -#} + +"{% if price.unitPrice <= 70.00 %} + {{ 4.90|currency }}{#- -#} +{% else %} + {{ 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')}) }}{#- -#} +{%- 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')}) }}{#- -#} +{%- else -%} + {{ "detail.soldOut"|trans }}{#- -#} +{%- endif -%}";{#- -#} +"{{ product.productNumber }}";{#- -#} +"{% if product.cover is not null %}{{ product.cover.media.url }}{% endif %}";{#- -#} +"{{ product.translated.description|striptags|length > 300 ? product.translated.description|striptags|slice(0,300) ~ '...' : product.translated.description|striptags }}";{#- -#} +"0.00";{#- Change or add your payment methods -#} +"0.00";{#- Change or add your payment methods -#} +"0.00"{#- Change or add your payment methods -#} ```