[英]Progressive Flat rate shipping method based on item quantity in Woocommerce
I Would like to add different progressive flat rates shipping cost for 2 different shipping Zones domestic and international : A fixed amount for the first item and an additional cost for every additional items.我想为国内和国际2 个不同的运输区域添加不同的累进统一费率运输成本:第一个项目的固定金额和每个额外项目的额外费用。
eg: Standard domestic postage $10, and $20 international, with $5 additional for each extra item.例如:标准国内邮资 10 美元,国际邮资 20 美元,每件额外邮资 5 美元。
Is this possible through woocommerce shipping setting?这可以通过 woocommerce 运输设置实现吗? or this need some custom coding?或者这需要一些自定义编码?
Any help is appreciated.任何帮助表示赞赏。
You can use the following cost line that will give you a fixed cost + an additional cost by item.您可以使用以下成本行,该行将为您提供固定成本 + 按项目计算的额外成本。 This need to be differently for each shipping zone.对于每个运输区域,这需要有所不同。
For your " Domestic " shipping Zone, use: 5+([qty]*5)
对于您的“国内”运输区,请使用: 5+([qty]*5)
So the first item will be at 10
(5+5)
and each additional item will add +5
to the cost.因此,第一个项目将为10
(5+5)
,每增加一个项目,成本就会增加+5
。
For your " International " shipping Zone, use: 15+([qty]*5)
对于您的“国际”运输区,请使用: 15+([qty]*5)
So the first item will be at 20
(15+5)
and each additional item will add +5
to the cost..所以第一个项目将是20
(15+5)
,每增加一个项目将增加+5
的成本..
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.