【发布时间】:2019-05-26 08:59:18
【问题描述】:
(如何)我可以在 WooCommerce 中为固定运费设置 max_fee 吗?
将此添加到运输方式的固定费用设置中的成本字段有效:
(1 * [qty]) + [fee min_fee = "2,5"]
(即每个订单的运费 2.5 + 每个产品 1 欧元)-> 至少 3.5 并且每件产品增加 + 1)。
但是,我想至少收取 3,50(1 件商品)和最高 4,50(2 件或更多商品)。 IE。从功能上讲,这个公式:(3,5 * [qty]) 或 [fee **max_fee** = "4,5"]
这可能吗? / 使用的正确语法是什么?我在任何地方都找不到这个。我只找到了this reference ("add max_fee shortcode attribute for flat rate" / "allow max_fee in addition to min_fee in flat rate costs fields"),这似乎表明针对固定费用(百分比除外)的 max_fee 的功能请求已实现。但我无法让它工作。
【问题讨论】:
标签: php wordpress woocommerce cart shipping-method