Installation
- Plugin Manager über Einstellungen > System > Plugins aufrufen
- Das Plugin hochladen, installieren und aktivieren
- Es gibt keine speziellen Plugin-Einstellungen im Hauptmenü
Versandkosten-Konfiguration
Einstellungen > Shop > Versand > Versandart auswählen > Zusatzfelder > Einstellungen für die Anzeige der Versandkosten
- Anzeige der Versandkosten
Entweder die berechneten Versandkosten wie anzeigen (Standard) oder einen individuellen Text einblenden. - Versandkostentext
Frei wählbarer Text, der statt des Betrags angezeigt wird (z. B. Versandkosten auf Anfrage, Lieferkosten laut Vereinbarung). - Versandkostentext-Regel
Mit dem Rule Builder können Bedingungen definiert werden (z. B. Kunden aus USA).
Der Text wird angezeigt, wenn mindestens eine der Regeln zutrifft . Wenn keine Regel hinterlegt ist, gilt der Text für alle Kunden.
Versandkostentext in der Bestellbestätigung
Soll der Versandkosten-Text auch in der Bestellbestätigung per E-Mail angezeigt werden, ist eine kleine Template-Anpassung notwendig.
Ersetzen Sie im Template den Standard-Code:
Shipping costs: {{ order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }} </br>
durch die folgenden Varianten:
Versionen 1.0.0 und 1.0.1
Deutsch
{% set shippingMethod = order.deliveries.first.shippingMethod %}
{% if shippingMethod.translated.customFields is defined and shippingMethod.translated.customFields.acris_shipping_costs_text_type == "show_text" %}
{% if shippingMethod.translated.customFields.acris_shipping_costs_text is defined and shippingMethod.translated.customFields.acris_shipping_costs_text is not empty %}
Versandkosten: {{ shippingMethod.translated.customFields.acris_shipping_costs_text }}<br>
{% else %}
Versandkosten: {{ order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }}<br>
{% endif %}
{% else %}
Versandkosten: {{ order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }}<br>
{% endif %}
Englisch:
{% set shippingMethod = order.deliveries.first.shippingMethod %}
{% if shippingMethod.translated.customFields is defined and shippingMethod.translated.customFields.acris_shipping_costs_text_type == "show_text" %}
{% if shippingMethod.translated.customFields.acris_shipping_costs_text is defined and shippingMethod.translated.customFields.acris_shipping_costs_text is not empty %}
Shipping costs: {{ shippingMethod.translated.customFields.acris_shipping_costs_text }}<br>
{% else %}
Shipping costs: {{ order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }}<br>
{% endif %}
{% else %}
Shipping costs: {{ order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }}<br>
{% endif %}
Versionen 2.0.1 und darüber
Deutsch
{% set shippingMethod = order.deliveries.first.shippingMethod %}
{%
if shippingMethod.translated.customFields is defined and
shippingMethod.translated.customFields.acris_shipping_costs_text_type is
defined and
shippingMethod.translated.customFields.acris_shipping_costs_text_type ==
"show_text" %}
{% if
shippingMethod.translated.customFields.acris_shipping_costs_text is
defined and
shippingMethod.translated.customFields.acris_shipping_costs_text is not
empty %}
{% if delivery.shippingMethod.translated.customFields.acris_shipping_costs_text_rules %}
{% set showText = 0 %}
{% for activeRule in order.ruleIds %}
{% for selectedRule in delivery.shippingMethod.translated.customFields.acris_shipping_costs_text_rules %}
{% if selectedRule == activeRule %}
{% set showText = 1 %}
{% endif %}
{% endfor %}
{% endfor %}
{% if showText == 1 %}
Versandkosten: {{ shippingMethod.translated.customFields.acris_shipping_costs_text }}<br>
{% else %}
Versandkosten: {{ order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }}<br>
{% endif %}
{% else %}
Versandkosten: {{ shippingMethod.translated.customFields.acris_shipping_costs_text }}<br>
{% endif %}
{% endif %}
{% else %}
Versandkosten: {{ order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }}<br>
{% endif %}
Englisch:
{% set shippingMethod = order.deliveries.first.shippingMethod %}
{%
if shippingMethod.translated.customFields is defined and
shippingMethod.translated.customFields.acris_shipping_costs_text_type is
defined and
shippingMethod.translated.customFields.acris_shipping_costs_text_type ==
"show_text" %}
{% if
shippingMethod.translated.customFields.acris_shipping_costs_text is
defined and
shippingMethod.translated.customFields.acris_shipping_costs_text is not
empty %}
{% if delivery.shippingMethod.translated.customFields.acris_shipping_costs_text_rules %}
{% set showText = 0 %}
{% for activeRule in order.ruleIds %}
{% for selectedRule in delivery.shippingMethod.translated.customFields.acris_shipping_costs_text_rules %}
{% if selectedRule == activeRule %}
{% set showText = 1 %}
{% endif %}
{% endfor %}
{% endfor %}
{% if showText == 1 %}
Shipping costs: {{ shippingMethod.translated.customFields.acris_shipping_costs_text }}<br>
{% else %}
Shipping costs: {{ order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }}<br>
{% endif %}
{% else %}
Shipping costs: {{ shippingMethod.translated.customFields.acris_shipping_costs_text }}<br>
{% endif %}
{% endif %}
{% else %}
Shipping costs: {{ order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }}<br>
{% endif %}