如何在结帐时更改WooCommerce文本传送 [英] How to change WooCommerce text shipping in checkout

查看:76
本文介绍了如何在结帐时更改WooCommerce文本传送的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试从您的订单部分中将WooCommerce结帐页面中的文本从发货更改为交付.我试图在FTP中打开核心文件,并尝试手动更改它,但是在任何地方都找不到文本.对如何更改有帮助吗?

I am trying to change a text in the WooCommerce checkout page from Shipping to Delivery from Your Order Section. I tried to open the core files in FTP and tried to change it manually but I couldn't find the text anywhere. Any help on how to change it?

推荐答案

您是否尝试过以下操作:

Did you tried like this below:

// Add this to your functions.php

add_filter('gettext', 'translate_reply');
add_filter('ngettext', 'translate_reply');

function translate_reply($translated) {
$translated = str_ireplace('Shipping', 'Delivery', $translated);
return $translated;
}

也请参见此链接: http://businessbloomer .com/woocommerce-edit-translate-shipping-handling-cart-checkout-page/了解更多详细信息

Please see this link too: http://businessbloomer.com/woocommerce-edit-translate-shipping-handling-cart-checkout-page/ for more details

这篇关于如何在结帐时更改WooCommerce文本传送的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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