WooCommerce 更名为“免费送货"结账字段 [英] WooCommerce rename "Free Shipping" field on checkout

查看:25
本文介绍了WooCommerce 更名为“免费送货"结账字段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们已将运费计入单个产品的成本中.因此,我们启用了免费送货,但我们想将结帐时显示的免费送货"文本重命名为产品成本中包含的运费"或类似内容.我真的不知道如何创建过滤器来做到这一点.

We have included shipping costs into the cost of the individual products. As such we enabled free shipping, but we want to rename "Free Shipping" text which appears on checkout to say "Shipping Included In Cost of Product" or something similar to that. I don't really know how to create a filter to do this .

我在 woocommerce/classes/shipping/free-shipping/class-wc-shipping-free-shipping.php 中找到了措辞

I found the verbiage in woocommerce/classes/shipping/free-shipping/class-wc-shipping-free-shipping.php

我还发现了 http://docs.woothemes.com/document/hooks/但同样我真的不知道正确的代码来创建一个动作/钩子来通过我的functions.php文件来改变这个文本.

I also found http://docs.woothemes.com/document/hooks/ but again I don't really know the proper code to create an action / hook to change this text via my functions.php file.

这是我所指模板区域的屏幕截图 - http://cl.ly/图像/0i311G3Y163E

Here is a screen shot to the area of the template I am referring to - http://cl.ly/image/0i311G3Y163E

推荐答案

    goto => 
 Dashboard =>
 woocommerce => 
 settings =>
 Shipping =>
 Free shipping => 
  Method Title - Change here 

这篇关于WooCommerce 更名为“免费送货"结账字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆