Shipping calculation
Product information "Shipping calculation"
Highlights
Freely definable shipping cost calculation via TWIG Debug output via acris_dump() Insert additional fields into an order using TWIG code Extended access to variables
Features
Individual calculation for individual shipping methods via TWIG Debug output via acris_dump() for analysing variables and intermediate steps Extended access to variables Rule-based application Add custom fields to an order during TWIG shipping calculation with acris_set_order_custom_field(“custom_field_one”, “My value 1”)
Shipping cost calculation in Shopware is very limited. This makes price calculation difficult for many products.
We have therefore developed a plugin that offers the following functions:
Customizable shipping cost calculation using TWIG
With this plugin, any logic for shipping cost calculation can be created, greatly expanding the flexibility in designing shipping costs. Example TWIG code snippets are provided in the configuration guide.
Debug output via acris_dump()
With the new acris_dump() function, any variables or intermediate steps can be output directly in the TWIG code during shipping cost calculation. The debug values appear in the JavaScript console of the storefront, making it easier to analyse and test complex shipping logic.
Access to more variables
By using TWIG, it is possible to access more variables and their properties. These include currency, context, customer, shopping cart, lineItem, and much more. The available variables are explained in detail in the configuration guide.
Add custom fields to an order using TWIG code (from 4.2.0 for Shopware 6.6 and 5.2.0 for Shopware 6.7)
The following code allows you to add a custom field to the order when it is created. Of course, this requires that the shipping method and calculation of the shipping method with the individual TWIG code are applied to the order.
acris_set_order_custom_field(“custom_field_one”, “My value 1”)
The first parameter (custom_field_one) corresponds to the technical name of the additional field. This can match the technical name of the custom field created in the admin (Settings > Custom fields) for later display in the administration when the order is placed. However, there does not have to be a match. In this case, the value would be stored in the database, but it would not be displayed in the administration when the order is placed.
The second parameter corresponds to the value of the custom field. The following types are possible:
* Text (string)
* Number (int, float)
* Array
Code example:
{% set number_of_parcels = 0 %}
{% set shipping = 10 %}
{% for lineItem in lineItems %}
{% if lineItem.good %}
{% set number_of_parcels = number_of_parcels + 1 %}
{% endif %}
{% endfor %}
{{ acris_set_order_custom_field('custom_number_of_parcels', number_of_parcels) }}
{{ shipping }}
- Fixed the error on wrong custom field type.
- Fixes the issue with the sanitized shipping calculation template.
- Implemented a new Twig function acris_set_order_custom_field for manual shipping calculation to store records in the order custom field.
- Implement a debug feature using acris_dump() for manual shipping cost calculation.
- Optimized admin component layout and code.
- Optimized admin component layout and disabled the 'Add pricing level' button when manual shipping calculation is enabled.
- Improved plugin compatibility with Shopware 6.7.
- Improved plugin compatibility with Shopware 6.7.
- Fixes an issue where individual shipping costs could no longer be entered or edited in the administration.
- Compatibility with Shopware 6.7.
- Support for the following languages: de-DE, en-GB, nl-NL, fr-FR, es-ES, fi-FI, nn-NO, sv-SE, cs-CZ, pt-PT, tr-TR, da-DK, it-IT, pl-PL, bs-BA
- Fixed the error on wrong custom field type.
- Fixes the issue with the sanitized shipping calculation template.
- Implemented a new Twig function acris_set_order_custom_field for manual shipping calculation to store records in the order custom field.
- Implement a debug feature using acris_dump() for manual shipping cost calculation.
- Re-release due to potential issues with plugin installation via Composer.
- Fixes a possible problem if the prices of the shipping costs are not set correctly in the database (e.g. after a data migration).
- Improves plugin compatibility.
- Updated Pipeline file
- Compatibility with Shopware 6.6.
- Optimised the custom field type code.
- Fixed the error on wrong custom field type
- Fixes the issue with the sanitized shipping calculation template.
- Implemented a new Twig function acris_set_order_custom_field for manual shipping calculation to store records in the order custom field.
- Implement a debug feature using acris_dump() for manual shipping cost calculation.
- Improved plugin compatibility.
- Improves plugin compatibility.
- Optimizes plugin update.
- Adds basic unit and selling unit data to line items payload in the cart.
- Improves plugin compatibility.
- Improves plugin compatibility.
- Compatibility with Shopware 6.5.
- Change of the plugin name and the manufacturer links.
- Optimizes shipping calculation on cart recalculation.
- Fixes a problem where calculated shipping costs result in a value of 0.
- Fixes a problem where the shop is not accessible after a change of the shipping costs template on the first call.
- From now on it is possible to use own Twig functions from other plugins in the shipping costs calculation.
- Optimizes plugin image.
- Improves compatibility with Shopware >= 6.4.10.0.
- Optimizes delivery calculator on manually calculation.
- Determines the tax rates relevant to the delivery and adds them as a possible variable in Twig.
- Adds new variables to the shipping calculation.
- Adds cart variable suggestion in the shipping calculation template.
- Added cart to the shipping calculation template.
- Improved compatibility with Shopware 6.4*.
- Improves compatibility with Shopware version > 6.3.0.0 and <= 6.3.3.1.
- Added validation on shipping calculation.
Login
10 reviews
16 October 2025 06:44
Extrem flexibel
Das Plugin ermöglicht sehr flexible Versandkostenberechnungen. Hier gibt es kaum Grenzen. Auch auf die Variablen anderer Plugins kann zugegriffen werden. Auf meine Anregung wurde sogar eine Debug Möglichkeit eingebaut.
Der Support war dafür Top und sehr hilfreich und schnell, hier ein wirklich großes Dankeschön!
Alles in allem sehr zu empfehlen bei komplexen Versandkostenstrukturen.
24 June 2024 09:56
Ein muss für jeden Shop mit komplexeren Versandlogiken. Top!
Wir nutzen das Plugin zur komplexeren Versandkalkulation (Volumengewicht, Bandmaße, verschiedene Logiken) und es tut genau das, was man eigentlich von Bord vermisst. Der Support hat mir innerhalb kürzester Zeit geholfen, sehr lobenswert!
24 May 2024 15:20
Exemplary support
Due to Shopware being quite basic in terms of shipping, we looked for a plugin to meet our needs and this one was the only one that accepted complex rules. Of course we had no idea how to create the code for the rules, but we asked for help from the plugin developers to create the script for us based on our request. Julian was a massive help and replied all day long to our requests, thank you for this!
4 March 2024 09:10
Mächtiges, gut funktionierendes Werkzeug
Die Erweiterung stellt ein mächtiges Werkzeug zur Darstellung auch komplexerer Versandkostenanforderungen zur Verfügung.
Der Acris-Support, wenn man ihn mal benötigt, ist schnell und kompetent und hilft ersichtlich gerne.
Leider ist die Erweiterung überhaupt erst nötig, weil Shopware in SW6 keine Auf- und Abschlagsversandarten mehr bietet und eigene Regeln und Bedingungen ebenfalls nicht mehr möglich sind.
In SW5 konnte man unsere Anforderungen noch mit Hausmittel darstellen!
27 March 2023 14:02
Endlich wieder individuelle Berechnungen
Leider ist es, aus mir unerklärlichen Gründen, nicht möglich, im Standard von SW6 individuelle Versandkostenberechnungen vorzunehmen.
Mit diesem Plugin lassen sich eigentlich simple Berechnungen auch wieder simpel durchführen.
Beispielsweise Versandgewicht bis 5 kg = Preis x
Für jedes hinzu kommende KG zahlt der Kunde y, addieert auf x.
Kein Problem mit diesem Plugin.
P.S.: Schade, dass derartig nötige Funktionen nicht Standard sind.
13 March 2023 15:05
Acris = Erweiterung und Support 1+
Wir nutzen einige Erweiterungen von Acris und sind IMMER und durchgehend damit gut gefahren.
Der Support ist Weltklasse, antwortet schnell und präzise und hilft auch darüber hinaus, wo sie können.
8 June 2022 12:01
Produkt und Service sind erstklassig
Das Plugin löst das Problem individuell berechneter Versandkosten auf denkbar einfache Weise. Unser Wunsch auch eigene Twig-Funktionen verwenden zu können wurde in Rekordtempo umgesetzt. Dieser Support ist sowohl in Sachen Reaktionsgeschwindigkeit als auch Zielorientierung spitze. Danke!
9 December 2021 11:01
Endlich die Erweiterung nach der man sucht wenn man komplexen Versand berechnen will.
Es ist möglich alle Parameter die von Interesse sind mit TWIG Programmiertechnisch abzubilden und individuell zu errechnen. Beauftragen Sie mich wenn Sie Hilfe benötigen. Mein Name in Google reicht.
29 November 2021 09:30
Essenzielle Erweiterung
Wahrscheinlich unser wichtigstes Plugin, um auch komplexere Versandkostenstrukturen abzubilden, die nicht nach Gewicht oder Anzahl gehen. Extrem simpel zu bedienen, Zusatzvariablen wurden vom Support innerhalb von Tagen eingebaut.
31 May 2021 07:20
Tut was es soll
Top Plugin, Top Entwickler mit schnellem Support.
Hatte einige Probleme und Fragen zum Versand, die alle schnell und erfolgreich gelöst werden konnten.
Yes. This can be done using the following code:
acris_set_order_custom_field(“custom_field_one”, “My value 1”)
Detailed information is documented in the description of the extension.