StartBlogWebsite maintenanceWooCommerce: Shipping costs - and packaging per bottle

WooCommerce: Shipping costs - and packaging per bottle

Bottle in shipping box

A special request reached us from our customer Saliba Alster Arcadeswho sells food in a WordPress/Woocommerce online shop.

In the shop, the shipping costs are represented by a flat rate of €9.50, which is due for every order regardless of the number of items.

Now, however, a new article should be included, the shipping of which is particularly costly due to the container in the form of certain bottles. Here, €5.00 should be added to the shipping costs for each additional bottle ordered. Do I need an extra plug-in for this? No, because the "shipping classes" of Woocommerce make this possible, because in addition to fixed amounts for each shipping class, formulas can also be entered here.

This is how it works, step by step:

1. under WooCommerce/Settings/Shipping/Shipping classes a new shipping class "Bottle shipping" has been set up.

Setting up shipping classes in WooCommerce: Step 1

The following settings have been made under Shipping zones/Germany/ Flat shipping rate:

Enter "Bottle shipping" in 'Costs for shipping class':
This is the magic formula and it means: item quantity ([qty]) minus one (i.e. deduction of the first item that initially triggers the flat rate) * additional surcharge from the second bottle of 5.00 EUR.
Setting up shipping classes in WooCommerce: Step 2

The new item has been assigned the shipping class "bottle shipping".

Setting up shipping classes in WooCommerce: Step 3

This is how the shipping calculator calculates as desired:
1x flat rate for everything = € 9.50 + € 5.00 per bottle from the second bottle for items with the shipping class "bottle shipping".

See also

E-commerce in small retail could look like this: Fruit labelled with a QR code

E-commerce: Create a webshop

21 January 2021

The ongoing Corona crisis is forcing many shops, especially smaller ones, to close their local shops for longer and longer periods. Online retail, however, is flourishing.
In this situation, even small traders have the chance to trade successfully online with good ideas. With Wordpress and WooCommerce, it is also quite easy to get started.

Light bulb with Wordpress logo as a symbol for hopefully good Wordpress ideas

WordPress beginner tips

7 September 2021

A few beginner tips for daily (or occasional) work with WordPress. No secret hacks, but the little settings that help especially with the first steps with WordPress, but are easy to overlook.


We will be happy to call you back.

Scroll to Top