问题概述
将WooCommerce Fast Cart与 WPML 结合使用时,购物车按钮的“Button text”设置以及[fast_cart text="..."]按钮的文本在翻译页面上会保持为默认语言。
临时解决方法
- 前往 WPML设置自定义 XML 配置,添加以下 XML 并保存:
XML
<wpml-config> <shortcodes> <shortcode> <tag>fast_cart</tag> <attributes> <attribute>text</attribute> </attributes> </shortcode> </shortcodes> </wpml-config>
- 使用
[fast_cart text="..."]简码将购物车按钮添加到您的页面,并翻译页面。然后,按钮文本会随页面一起翻译。 - “按钮文本”设置目前没有临时解决方法。