نظرة عامة على المشكلة
عند استخدام YITH WooCommerce Cart Messages مع WPML، لا تظهر الرسالة المترجمة أبداً، لأن إعداداتها (النوع، الصفحات، المستخدمين، رابط الزر) لا تُنسخ إلى الترجمة. كما تستمر الرسالة منتهية الصلاحية في الظهور أيضاً باللغة الثانية.
حل بديل مؤقت
- اذهب إلى WPMLإعداداتتكوين XML مخصص، أضف XML التالي واحفظ:
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>
- ترجم الرسائل مرة أخرى.