نظرة عامة على المشكلة
عند استخدام إضافة YITH WooCommerce Points and Rewards Premium مع WPML، لا تظهر اللافتات المترجمة في صفحة My points، ويكون مستوى العميل مخفياً في الصفحات المترجمة. لا تحصل الترجمات على إعدادات اللافتة والمستوى.
حل بديل مؤقت
- اذهب إلى WPMLإعدادات وافتح علامة التبويب تكوين XML مخصص.
- أضف هذا الكود واحفظ:
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>
- حدّث ترجمات اللافتات والمستويات.