סקירת התקלה
בעת שימוש בתוסף 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>
- עדכן את התרגומים של הבאנרים והרמות שלך.