Hướng dẫn How to set a shipping cost by item in Woocommerce
13th Jul 2021In Woocommerce, when I add multiple products in cart, the shipping only applies to to 1 product. How should I change that to apply the cost to each item?
Like in the following image, the shipping cost for printer is applied but the LCD monitor is not.
The solution
In the Woocommerce Shipping Settings for "Flat rate" Shipping Method, there is many ways to get dynamic settings based on:
- Item quantity, using
[qty]
argument - Total item cost, using
[cost]
argument - A fee, using
[fee]
argument with additional parameterspercent
,min_fee
andmax_fee
You can also use +
, -
, *
and /
operators and parenthesis.
Đây là một số cách tính
[qty]*2
- Cost by item4+([qty]*2.5)
- Initial cost with an additional cost by item[fee percentage='10' min_fee='' max_fee='20']
- Percentage fee limited to a max amount[fee percentage='10' min_fee='4' max_fee='']
- Percentage fee with a minimal cost
Add new comment