Skip to main content Skip to search Skip to main navigation
Diese Seite ist auch auf Deutsch verfügbar.
ACRIS E-Commerce GmbH

Shipping calculation

Rating: 5.0

Average rating of 5 out of 5 stars

(11 reviews)
Downloads: 266

Description

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”)

About the Extension

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 }}

Details

  • Available: English, German
  • Latest update: 19 March 2026
  • Publication date: 19 March 2021
  • Version: 5.2.2
  • Category: Checkout / Cart process

Resources

Reviews (11)

Average rating
5.0

Average rating of 5 out of 5 stars

Based on 11 reviews
5.0 Functionality
5.0 Usability
4.9 Documentation
5.0 Support

100 %
0 %
0 %
0 %
0 %

Write a review

If you downloaded this extension you can write a review in the Shopware Account.

Write a review
Tut was es soll
5.0

Average rating of 5 out of 5 stars

by Quadro GmbH
31 May 2021 09:20
Top Plugin, Top Entwickler mit schnellem Support.
Hatte einige Probleme und Fragen zum Versand, die alle schnell und erfolgreich gelöst werden konnten.
5.0 Functionality
5.0 Usability
5.0 Documentation
5.0 Support

About the Extension Partner

ACRIS E-Commerce GmbH

ACRIS E-Commerce GmbH

Partner Status

  • Shopware Bronze Partner Shopware
    Bronze Partner
  • Shopware Premium Extension Partner Shopware
    Premium Extension Partner

Details

  • Ø-Rating: 5

    Average rating of 5 out of 5 stars

  • Partner since: 2015
  • Extensions: 185
  • Certifications: Certifications

Support

  • Based in: Austria
  • Speaks: German, English
  • Response time: Very quickly
Shopware 6 certified This Extension Partner has been certified by our Academy for Shopware 6.