Tổng quan về sự cố
Khi sử dụng YITH WooCommerce Cart Messages với WPML, thông báo đã dịch không bao giờ hiển thị, vì các cài đặt của nó (loại, trang, người dùng, liên kết nút) không được sao chép sang bản dịch. Một thông báo đã hết hạn cũng vẫn hiển thị bằng ngôn ngữ phụ.
Giải pháp tạm thời
- Đi đến WPMLCài đặtCấu hình XML tùy chỉnh, thêm XML sau và lưu:
XML
<wpml-config> <custom-fields> <custom-field action="copy">_ywcm_message_type</custom-field> <custom-field action="copy">_ywcm_message_pages</custom-field> <custom-field action="copy">_ywcm_message_user</custom-field> <custom-field action="copy">_ywcm_message_role_user</custom-field> <custom-field action="copy">_ywcm_message_layout</custom-field> <custom-field action="copy">_ywcm_message_cart_page_position</custom-field> <custom-field action="copy">_ywcm_message_country</custom-field> <custom-field action="copy">_ywcm_message_start</custom-field> <custom-field action="copy">_ywcm_message_expire</custom-field> <custom-field action="copy">_ywcm_message_products_cart_minimum</custom-field> <custom-field action="copy">_ywcm_message_minimum_amount</custom-field> <custom-field action="copy">_ywcm_message_button_url</custom-field> </custom-fields> </wpml-config>
- Dịch lại các thông báo.