Hello,
Thanks for writing back!
It’s not yet totally clear what you’re trying to achieve. Please consider the following example – check the image below for reference:
- head to your Flat Rate shipping settings
- set Cost to
5 * [qty]
– this will assume that shipping any item on your store will cost a minimum of $5
- then for the mugs and shirts shipping class cost insert the additional cost for each class – that is, the amount to be added on top of the base cost – I’ve chosen $2.50 for mugs and $1 for shirts
- finally, set Calculation type to “Per class”

Link to image: https://snipboard.io/VsMtj2.jpg
Make sure you have added the shipping class to each product, like shown here:

Link to image: https://snipboard.io/EAiGDW.jpg
The expected behavior for this configuration is:
- each unit in the cart will be charged a minimum of $5
- if there are products from a specific shipping class, that cost will be added on top
- for example, if you add 3 mugs and 2 shirts to the cart, the shipping cost will be
5 * $5 + $2.50 + $1 = $28.50
With a few tweaks to the settings show on the screenshot, you could have different outcomes:
- if on the Calculation type, you switch to “Per order” then only the most expensive class surcharge will be added, and the final cost would be
5 * $5 + $2.50 = $27.50
- if you would like the class surcharge to be added for each individual item from each class, you would keep “Per class” and change the class cost to
2.50 * [qty]
and 1 * [qty]
, and the final cost would be 5 * $5 + 3 * $2.50 + 2 * $1 = $34.50
If none of these suit your goals, it’s best that you give us a concrete, real world example of how you would like your shipping costs to work – don’t worry with WooCommerce lingo or what has been done or discussed before.
We’ll try to provide a solution.