diff --git a/.obsidian/workspace.json b/.obsidian/workspace.json index 1b5d601..0df9b2e 100644 --- a/.obsidian/workspace.json +++ b/.obsidian/workspace.json @@ -69,10 +69,14 @@ "id": "56d26be6d604a08f", "type": "leaf", "state": { - "type": "empty", - "state": {}, + "type": "markdown", + "state": { + "file": "Martin/Shopware/Idealo.de Export Template.md", + "mode": "source", + "source": false + }, "icon": "lucide-file", - "title": "New tab" + "title": "Idealo.de Export Template" } } ], diff --git a/Martin/Shopware/Idealo.de Export Template.md b/Martin/Shopware/Idealo.de Export Template.md index c965b40..183b8a5 100644 --- a/Martin/Shopware/Idealo.de Export Template.md +++ b/Martin/Shopware/Idealo.de Export Template.md @@ -19,7 +19,7 @@ "paymentCosts_Invoice"{#- Change or add your payment methods -#} ``` -## Produktzeile +## Produktzeile: ``` "{%- if product.categories.count > 0 -%} @@ -54,3 +54,40 @@ "0.00"{#- Change or add your payment methods -#} ``` + +# Produktzeile: + +``` +"{%- if product.categories.count > 0 -%} + {{ product.categories.first.getBreadCrumb|slice(1)|join(' > ')|raw }}{#- -#} +{%- endif -%}";{#- -#} +"{{ product.manufacturer.translated.name }}";{#- -#} +"{{ product.translated.name }}";{#- -#} +{% 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 }}";{#- -#} +"{{ 4.90|currency }}, ab 70 Euro Warenwert liefern wir versandkostenfrei";{#- -#}{#- Change to your delivery costs -#} +"{{ 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 -#} +``` + +