Shipping costs Text instead of shipping costs
Description
Highlights
Features
About the Extension
Function / Purpose
Display of a freely configurable shipping costs text to be displayed instead of the calculated shipping costs in the shopping cart.In certain cases it is necessary to display a shipping cost text instead of the shipping costs.
(e.g. delivery costs on request, free delivery, free of charge, delivery costs according to agreement, etc.).
This plugin enables exactly this function - the following settings are possible:
Configuration of the shipping costs Texts directly in the shipping types
Under Settings > Shop > Shipping > Select shipping type > In the area "Additional fields" > Settings for the display of shipping costsDisplay of shipping costs
- Show shipping costs (standard) - if this function is selected, the display corresponds to the Shopware standard.
- Show text instead of shipping costs - if this function is selected, the text "Shipping costs text" in combination with the selected rules "Shipping costs text rules" will be displayed instead of the shipping costs.
Additional information / interesting facts
- The text is displayed in the OffCarnvas shopping cart and in the checkout.
- The display of the shipping costs text is set for each shipping type and language.
- The shipping costs text only replaces the display of the shipping costs -
It is therefore important to ensure that no shipping costs are stored, otherwise they will be calculated but not explicitly displayed. - If the shipping costs text is also to be displayed in the order confirmation, HTML code adjustments are required:
Replace this HTML code
Shipping costs: {{ order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }} </br>
Version 1.0.0 and 1.0.1
German Language against this HTML code
{% 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 %}
Versandkosten: {{ shippingMethod.translated.customFields.acris_shipping_costs_text }}
{% endif %}
{% else %}
Versandkosten: {{ order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }}
{% endif %}
Or this for English language:
{% 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 %}
Shipping costs: {{ shippingMethod.translated.customFields.acris_shipping_costs_text }}
{% endif %}
{% else %}
Shipping costs: {{ order.deliveries.first.shippingCosts.totalPrice|currency(currencyIsoCode) }}
{% endif %}
Version 2.0.1 and above
German Language against this HTML code
{% 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 %}
Or this for English language:
{% 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 %}
Details
- Available: English, German
- Latest update: 12 November 2024
- Publication date: 14 February 2022
- Version: 3.0.1
- Category: Checkout / Cart process
Resources
Reviews (0)
About the Extension Partner
ACRIS E-Commerce GmbH
Partner Status
-
Shopware
Gold Partner -
Shopware
Premium Extension Partner
Details
- Ø-Rating: 4.9
- Partner since: 2015
- Extensions: 122
Support
- Based in: Austria
- Speaks: German, English
- Response time: Very quickly