Seite wählen
Wie können wir Ihnen helfen?
Kategorien
< Alle Themen
Drucken

Google Shooping Export inkl. Versandkosten

Es kommt immer wieder vor, dass Artikel in keiner Kategorie, der Titel der Varianten fehlt oder die Versandkosten im Google Export nicht passen.

Dazu habe ich ein funktionierendes Template erstellt, dass die Standardfehler beseitigt und die Versandkosten anhand des Gewichts nach Artikel berechnet werden

{{ product.productNumber }} {% if product.translated is defined %}{{ product.translated.name|escape }}{% endif %} {% if product.translated is defined %}{{ product.translated.description|escape }}{% endif %} 950 {%- if product.categories.count > 0 -%} {{ product.categories.first.getBreadCrumb|slice(1)|join(' > ')|raw|escape }} {%- endif -%} {{ seoUrl('frontend.detail.page', {'productId': product.id}) }} {% if product.cover.media is defined %}{{ product.cover.media.url }}{% endif %} new {%- if product.availableStock >= product.minPurchase and product.deliveryTime -%} in_stock {%- elseif product.availableStock < product.minPurchase and product.deliveryTime and product.restockTime -%} preorder {%- else -%} out_of_stock {%- endif -%} {% set price = product.calculatedPrice %} {%- if product.calculatedPrices.count > 0 -%} {% set price = product.calculatedPrices.last %} {%- endif -%} {{ price.unitPrice|number_format(context.currency.itemRounding.decimals, '.', '') }} {{ context.currency.isoCode }} {%- if product.manufacturer -%} {{ product.manufacturer.translated.name|escape }} {%- endif -%} {{ product.ean }} {{ product.manufacturerNumber }} {% if product.weight %} DE {% if product.weight <= 10 %} Standard 30.93 {{ context.currency.isoCode }} {% elseif product.weight <= 20 %} Standard 34.5 {{ context.currency.isoCode }} {% elseif product.weight <= 30 %} Standard 38.07 {{ context.currency.isoCode }} {% elseif product.weight <= 400 %} Spedition 94.01 {{ context.currency.isoCode }} {% elseif product.weight <= 600 %} Spedition 153.51 {{ context.currency.isoCode }} {% endif %} {% endif %}
Inhaltsverzeichnis