php Woocommerce 在结帐页面中显示运输方式?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/17290044/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Woocommerce show shipping methods in checkout page?
提问by NewUser
I am using woocommerce pluginfor wordpress. Everything in woocommerce is fine. Only in one thing where I am totally strucked. In checkout page I want to show all the shipping methods in list format. Here with I have attached the screenshot for the shipping method that I want. I have gone through many settings but I am not getting the result. So any help and suggestions will be really appreciable. Thanks
我正在为 wordpress使用 woocommerce 插件。woocommerce 中的一切都很好。只有一件事让我完全震惊。在结帐页面中,我想以列表格式显示所有运输方式。在这里,我附上了我想要的运输方式的屏幕截图。我经历了很多设置,但没有得到结果。因此,任何帮助和建议都将非常可观。谢谢


回答by Denish
In your wordpress Backend Go to
在你的 wordpress 后端转到
WooCommerce -> Settings -> Shipping
WooCommerce -> 设置 -> 运输
You will see list of all shipping methods like this

您将看到像这样的所有运输方式的列表

Activte and configured all shipping methods, And for for some shipping methods, Your product must have dimensions like "Weight,Length,Width,Height" In order to calculate shipping charge.
激活并配置所有运输方式,对于某些运输方式,您的产品必须具有“重量,长度,宽度,高度”等尺寸才能计算运费。
Hope, It will help you!
希望,它会帮助你!
回答by user3236183
i tried some more setting on "shipping options' page and works for me finally.
我在“运输选项”页面上尝试了更多设置,最终对我有用。
- Enable the shipping calculator on the cart page > disable
- Hide shipping costs until an address is entered > disable
- most important, make sure u test ur cart/ checkout page on different computer (guest)
- 在购物车页面启用运费计算器 > 禁用
- 隐藏运费,直到输入地址 > 禁用
- 最重要的是,确保您在不同的计算机(访客)上测试您的购物车/结帐页面
回答by MakeWebBetter
You first have to create Shipping zones and add shipping method specific to those zones. Now as soon as you enter the address on the checkout page, WooCommerce searches for that address in all the zones and if matched display all the shipping assigned to that zone.
您首先必须创建送货区域并添加特定于这些区域的送货方式。现在,只要您在结帐页面上输入地址,WooCommerce 就会在所有区域中搜索该地址,如果匹配,则显示分配给该区域的所有运输。
回答by Reinhard Kiptoo
This Worked for me:
这对我有用:
Under WooCommerce/Settings/Shipping zones clear the 'Zone regions' then under shipping options/ Calculations uncheck both:
在 WooCommerce/设置/运输区域下清除“区域区域”,然后在运输选项/计算下取消选中两者:
- "Enable the shipping calculator on the cart page" and
- "Hide shipping costs until an address is entered"
- “在购物车页面启用运费计算器”和
- “在输入地址之前隐藏运费”
The plugin
"Shipping Method Display Style for WooCommerce" by "Thedotstore" may be handy.
“Thedotstore”的插件“WooCommerce 的运输方法显示样式”可能很方便。

