Set Minimum item cost in Woocommerce Shipping method rates

倖福魔咒の 提交于 2020-01-02 22:28:10

问题


In Woocommerce, I have a Flat Rate Shipping set up with 1 Zone & 3 Shipping Options. In each of the Shipping Options I have Shipping Classes and in each of these Shipping Class Costs for each of my major product categories. My problem is that I can't seem to correctly set a minimum fee for the Shipping Class Costs. For example, when I use something like this in a Shipping Class Cost 1.43 * [qty] [fee min_fee="20"] it multiplies my product cost by 20, instead of simply having the fee be a minimum of 20 for the cart.

How can I fix this, so that when someone goes to order an item the shipping cost defaults to the fee of 20, but after 20 simply uses the 1.43 per product in the cart?


回答1:


To get a shipping default starting cost of 20 + 1.43 by item use instead one of the following:

20+(1.43*[qty])

or

1.43*[qty]+[fee min_fee="20"]

But if you want to have a cost of 20 for the first item and + 1.43 by following items, use:

18.57+(1.43*[qty])

or

1.43*[qty]+[fee min_fee="18.57"]


来源:https://stackoverflow.com/questions/54962719/set-minimum-item-cost-in-woocommerce-shipping-method-rates

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!