我正在将 WooCommerce 与 Storefront 主题一起使用,并且我正在尝试更改这个词“船运”在带有总计的购物篮页面上。
我在这里找到了一些建议:https://kriesi.at/support/topic/change-shipping-text-to-delivery-on-checkoutcart/ https://kriesi.at/support/topic/change-shipping-text-to-delivery-on-checkoutcart/
然而,他们提到可能需要定制工作才能做到这一点。
有人可以建议吗?
在 function.php 中添加这个钩子
add_filter( 'woocommerce_shipping_package_name', 'custom_shipping_package_name' );
function custom_shipping_package_name( $name ) {
return 'Your Text';
}
本文内容由网友自发贡献,版权归原作者所有,本站不承担相应法律责任。如您发现有涉嫌抄袭侵权的内容,请联系:hwhale#tublm.com(使用前将#替换为@)