Own calculation of shipping costs
Description
Features
About the Extension
The extension allows you to create and store your own calculation for your shipping costs with the help of variables. With your own calculation, it is possible to dynamically adjust the shipping costs without having to create an additional shipping method. Several shipping classes can be set up for each shipping method.
In the shop, the shipping costs are displayed transparently, broken down by shipping class.
Application examples
Dynamic calculation of shipping costs according to shopping basket weight
{% set priceNet = 5 %}
{% set priceGross = 11 %}
{% if totalWeight >= 30 and totalWeight < 100 %}
{% set priceNet = 4.96 + (0.27 * totalWeight) %}
{% set priceGross = 5.90 + (0.32 * totalWeight) %}
{% elseif totalWeight >= 100 and totalWeight < 200 %}
{% set priceNet = 4.96 + (0.22 * totalWeight) %}
{% set priceGross = 5.90 + (0.26 * totalWeight) %}
{% endif %}
Calculation of shipping costs when a specific item is in the shopping basket
{% set priceNet = 0 %}
{% set priceGross = 0 %}
{% for deliveryPosition in delivery.positions %}
{% set priceNet = priceNet + 6 %}
{% set priceGross = priceGross + 9 %}
{% if deliveryPosition.lineItem.label == 'Brot' %}
{% set priceNet = 3 %}
{% set priceGross = 3 %}
{% endif %}
{% endfor %}
Do you need help with the customised calculation of shipping costs? You are welcome to commission us to help you with this for a fee.
Details
- Available: English, German
- Latest update: 20 February 2025
- Publication date: 3 February 2025
- Version: 6.0.0
- Category: Checkout / Cart process
Resources
Reviews (0)
About the Extension Partner
LENZ eBusiness GmbH
Partner Status
-
Shopware
Bronze Partner -
Shopware
Premium Extension Partner
Details
- Ø-Rating: 4.9
- Partner since: 2014
- Extensions: 93
Support
- Based in: Germany
- Speaks: German, English
- Response time: Very quickly