Tổng quan về sự cố
Khi sử dụng plugin YITH WooCommerce Points and Rewards Premium với WPML, các banner đã dịch không hiển thị trên trang My points, và cấp độ của khách hàng bị ẩn trên các trang đã dịch. Các bản dịch không nhận được các cài đặt banner và cấp độ.
Giải pháp tạm thời
- Truy cập WPMLCài đặt và mở tab Cấu hình XML tùy chỉnh.
- Thêm mã này và lưu:
XML
<wpml-config> <custom-fields> <custom-field action="copy">_status</custom-field> <custom-field action="copy">_priority</custom-field> <custom-field action="copy">_type</custom-field> <custom-field action="copy">_simple_position</custom-field> <custom-field action="copy">_action_type</custom-field> <custom-field action="copy">_action_target_type</custom-field> <custom-field action="copy">_link_status</custom-field> <custom-field action="copy">_link_url</custom-field> <custom-field action="translate">_name</custom-field> <custom-field action="copy">_badge_enabled</custom-field> <custom-field action="copy">_level_color</custom-field> </custom-fields> </wpml-config>
- Cập nhật bản dịch cho các biểu ngữ và cấp độ của bạn.