How to set a shipping cost by item in Woocommerce

最后都变了- 提交于 2019-12-01 10:36:32

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 parameters percent, min_fee and max_fee

You can also use +, -, * and / operators and parenthesis.

Here are some example:

  1. [qty]*2 - Cost by item
  2. 4+([qty]*2.5) - Initial cost with an additional cost by item
  3. [fee percentage='10' min_fee='' max_fee='20'] - Percentage fee limited to a max amount
  4. [fee percentage='10' min_fee='4' max_fee=''] - Percentage fee with a minimal cost

Related thread: Set Minimum item cost in Woocommerce Shipping method rates


Advanced shipping cost customizations:

It's possible to customize even more shipping costs using woocommerce_package_rates filter hook.

See all StackOverFlow related threads using woocommerce_package_rates filter hook.

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