Shipping costs

Version

5.5.0 or newer

Table of contents

With the delivery costs module it is possible to depict both standard delivery costs as well as complex delivery cost calculations. With specific conditions and calculations it is possible to realize almost any constellation of delivery costs calculation. This generally occurs through individual database queries within the delivery type (Individual calculations).

Creating delivery types

Start by opening the delivery costs module in the backend (Settings > Delivery costs). To create a new delivery type click on the add button. The detail tab for the type of delivery now opens.

The prices saved in the delivery types are stated as gross prices. If customers are delivered gross, the value added tax is dynamically deducted in the frontend.

Explanation of the individual fields

Name

Enter the name of the required delivery type, which the customer is then shown in the shop view, here.

Description

Enter a description of the delivery type, which the customer is then able to see in the shop view (e.g. a surcharge for cash on delivery packages), here.

Tracking URL

As the shop owner, this is where you can save the corresponding tracking URL from your supplier who carries out the delivery of this delivery type (e.g. DHL, Hermes, etc.). This is then shown to the customer in their "My account" area so that they are always up to date with their delivery.

In our Wiki we have saved a tutorial which shows you how to save a tracking URL and how you can use it effectively in Shopware: Tracking shipments with package numbers

Comments

In this field you can save different information on the delivery type which is not visible to the customer.

Sorting

Via the "Sorting" field, Shopware offers you the possibility of managing the positioning of the delivery types on the order completion page. This works via numerical entry (for example: Standard delivery/pos.1 = 1st position – Express delivery/pos. 2 = 2nd position).

Active

With this checkbox you can render the created delivery type active or inactive in your shop.

Shop

In the pull-down menu it is possible to specify the shop/subshop for which the delivery type is to be available, or for which it gains a general validity. If other delivery types are necessary for the lead and corresponding subshops, you enter a new delivery type for these shops in the overview, which refers to the corresponding shop. Language subshops cannot be selected.

Customer groups

As with the shop selection, via a pull-down menu, it is also possible to specify the customer group for which the delivery type is to be available or for which it gains a general validity here.

If another delivery type is necessary for the retailer’s customer group, for instance, you enter a new delivery type for this customer group in the overview, which refers to the corresponding customer group.

Shipping calculation by

In the context of the calculation of the delivery costs selected here, the entire delivery costs calculation (2) refers to the delivery weight that was recorded for the item. In the delivery costs (1) tab, 2 weight scales (3) have been saved. For further examples of the calculation of delivery costs (e.g. according to price and/or items), please refer to the aforementioned case examples.

Free delivery from

From what shopping basket amount should delivery costs be omitted?

Delivery type

This is where you can define the individual delivery types.

Standard delivery type

With this delivery type you define the key delivery types for your online shop. In combination with the "Surcharge delivery type" it is possible to specify special delivery costs according to your requirements here (see case examples below).

Alternate delivery type

This delivery type generally functions as an alternate delivery type whenever the standard delivery type is not available for the shopping basket constellation.

Please note, that an alternate shipping type will always be available and can not be restricted. A separation based on country, shipping type or other criteria is not possible.

Surcharge delivery type

This delivery type provides you the possibility of saving different surcharges, such as pallet delivery or bulky goods surcharges. It is also possible to save surcharges for certain payment methods here. You can find further examples in the case examples (see below).

Discount delivery type

This delivery type offers you the possibility of saving different discounts which then apply on the same basis as a surcharge delivery type, but reduce the delivery costs instead.

Absolute payment method surcharge

Here, please select from the following options:

Always charge

Here, the surcharges defined in the payment methods are always charged and incorporated in the delivery costs.

Do not charge with free delivery items

The surcharge defined in the payment methods is not charged if free delivery items are currently in the shopping cart.

Never charge

Here, no surcharges are charged for payment methods for this delivery type.

State as individual shopping cart position

The same as the first point, "always charge", only the surcharge for the payment method is stated as an individual position in the shopping cart.

The payment method surcharge only refers to the absolute and not the percentage discounts and/or surcharges which are saved in the payment methods.

Rate of tax

Please select the VAT calculation for the delivery costs here from the following options.

Selection of payment method

Here you can choose the payment methods (1) in which a delivery with the corresponding delivery type is to be possible. Subsequently confirm your entry with save. (Multiple selections possible!)

Countries selection

Here you can choose the countries in which a delivery with the corresponding type of delivery is to be possible. Subsequently confirm your entry with save. (Multiple selections possible!)

Block categories

Using the folder structure (1), you are able to block different shop categories including the subcategories for this delivery type. This means that the delivery type is not available for items from the selected categories. Subsequently confirm your entry with save. (Multiple selections possible!)

Advanced settings

In the advanced settings (1) tab you are able to set the created delivery type in detail according to your delivery requirements. Shopware offers an exceptionally wide range of options here.

Sale items only

If this checkbox is activated the delivery type only refers to sale items.

Free delivery items

This is where you define whether the delivery type that is created should support fee delivery items.

Support

This point authorizes the delivery type for free delivery items, and delivery costs are not calculated.

Do not support and block delivery type

In this case, the delivery type is not supported for free delivery items in the shopping cart, and is therefore unavailable to the customer as it has been blocked by Shopware.

Support but still charge delivery costs

With this constellation the customer is able to put free delivery items in the shopping cart and the delivery type that was created here is also available. This means that delivery costs are also charged for the free delivery items.

Block orders without available shipment type

Normally orders orders can be taken without an available shipment type. A possible reason is, that there is no country or payment method associated to the shipment type. This situation can be blocked with a little change in the basic settings. In "Shipping Costs module" you find the setting "block orders with no available shipping type". Choose "Yes" and your customers will get an error message and the order cannot be completed.

 

When you want to change the content of the error message, open "Snippets" and search for "ShippingPaymentSelectShipping".

 

 

Stock bigger

Refers to the stocks of the individual item, e.g. 5. If the stocks are therefore lower, the delivery type is blocked / hidden.

Time from: – time to

Here you can define the exact time details so, for example, the "EXPRESS" delivery type is only on offer if you can receive the order by 3 pm. In this way you only make this delivery type available for selection until 3 pm.

Weight from: – weight to

Similar to the time of day, you can specify a weight limit for the delivery type here. The delivery type can only be selected by the customer within the specified weight range.

Price from: – price to

A corresponding price range can be defined here. This delivery type is only available to the customer if the shopping cart is within the price range.

Weekday from: – weekday to

Select the days on which the delivery type is to be available via the pull-down menus. In the case of express delivery, for example, you would enter Monday to Friday only here, as delivery on Sunday is impossible.

Block public holidays

This function enables you to block different public holidays for this delivery type. This means that the customer cannot order the EXPRESS delivery on the corresponding days. (Multiple selections possible!)

Individual conditions

Via individual conditions it is possible to realize complex, individual programming settings which extend beyond the standard scope of the module. In this context, for instance, it is possible to link an individual requirement which is realized in the context of a programming with the standard delivery costs module. In the standard scope of services this field is always empty.

Examples are provided here

Individual delivery costs calculation

In this field it is possible to define individual calculations which are not incorporated in the standard range. This means, for instance, it is possible to link individual requirements which are realized in the context of a programming with the standard delivery costs module. In the standard scope of services this field is always empty.

Examples are provided here

Case examples

Normal delivery (standard delivery type)

In this example the "Standard delivery" is created for the shop (without special details and/or limitations).

In the first step you enter a new delivery type. Start by filling the name (1) field with the name of the delivery type, and the description (2) field with the corresponding information.

Fill the additional fields of comments (3) and sorting (4) with your required information and set the delivery type on active (5).

Set the delivery costs calculation (4) according to weight and the delivery type (5) to standard delivery type. The remaining settings within the configuration can be adopted unchanged and are thereby specified for the standard delivery type. Optional payment method surcharges (6) are to be taken into consideration.

In the delivery costs (7) tab, all you need do now is to specify the costs for the normal delivery. To do this, simply enter the amount which is to be calculated as the cost of delivery in the field. Subsequently confirm your entry with save.

 

Now change to the select payment method (1) tab. To ensure that the delivery type is offered in the frontend, you now have to link the available payment methods with the delivery type. In this example the delivery type is only offered if one of the selected payment methods (2) has been selected in the checkout process. This delivery type should not be available if the cash on delivery payment method is selected. Because of this, the cash on delivery payment method is still in the available (3) column. Next, save your settings.

Finally, all you have to do is to enable the delivery type for the required countries of delivery. Change over to the country selection (1) tab and enable the required countries of delivery. The delivery type is thus only offered if the customer has selected one of the countries saved under the selected country of delivery (2) in the checkout. Next, save your selection.

The delivery type is only visible in the frontend if it has been enabled for the available payment methods and countries of delivery.

Delivery via cash on delivery (standard delivery type)

In this example the "cash on delivery" delivery type is created. In addition to this, there is a surcharge of 3.90 euro for cash on delivery. The calculation of the delivery costs shall occur according to a pricing scale: 5.00 euro up to a delivery weight of 20 kg and 10.00 euro from a delivery weight of 20 kg.

In the first step you enter a new delivery type. In this example, the name of the delivery type (1) is cash on delivery. In the description (2), the clear notification of delivery with cash on delivery – cash payment to parcel delivery service will appear for the customer. In the internal comments field (3) you can also save the reference cash on delivery.

As the delivery type is to appear as the 2nd position in the checkout process, you have to set the sorting (4) to the value 2. So that the delivery type is also offered in the frontend, you have to ensure this is the case by activating the active (3) checkbox.

The delivery costs calculation (6) takes place according to the weight and the delivery type (7) is the standard delivery type. As additional costs are incurred with this delivery type (cash on delivery fees), it is necessary for the payment method surcharge (8) selection field to be set to always charge.

To now set up the weight scale for the delivery, in the delivery costs (9) tab below, enter the scale 0 – 19.999, and enter 5 under delivery costs. In addition to this, the second scale has to be set with 20, followed by 'any' and then 10 for the delivery costs. Subsequently confirm your entry with save.

 

Now change to the select payment method (1) tab. Since this delivery type is only to be offered in the frontend in combination with the cash on delivery (2) payment method, only the cash on delivery payment method should be saved in the selected column. Next, save your settings. In this way you exclusively link the delivery type of cash on delivery with the payment method of cash on delivery. Subsequently confirm your entry with save.

 

In the next step, the countries of delivery are specified for this delivery type. Change over to the countries selection (1) tab. Since cash on delivery is only to be offered in Germany, in the selected (2) column, the only country of delivery to be saved should be Germany. Next, save your settings.

 

Finally, we have to save the cash on delivery fee. As this is a fee which is only incurred if the cash on delivery payment method has been selected in the checkout, this surcharge is also saved in the payment method. Under Settings > Payment methods in the backend, change over to the payment methods configuration tab, and select the cash on delivery (1) payment method. Under the general (2) tab, the settings for the selected payment method will now appear. In the additional description (2) field, save an information text for incurred fees. In the fixed surcharge (4) field, it is now necessary to save the fees which are incurred when using this payment method. Once you are done, save your changes.

Tips & tricks

Multiple selections

To make a multiple selection the following options are available to you in the table:

1. By pressing and holding down the CTRL key and clicking on the payment methods you can highlight individual methods and add them to the selection using the arrow function.

2. By pressing and holding down the shift key and clicking on the payment methods, several methods are highlighted which can be added to the selection using the arrow function.

3. By clicking and/or the aforementioned methods, you can add several highlighted payment methods to the selection on the right hand side via drag & drop.

4. By double clicking on a corresponding payment method it is also included in the selection (right hand side).

Duplicate delivery type

So that you do not have to create a brand new delivery type all over again, the duplicate delivery type (1) function is available. Here, all you need to add are the designation, the affiliation, and the settings for differentiation.