WPML

סקירת התקלה

בעת שימוש ב־YITH WooCommerce Badge Management Premium עם WPML, ייתכן שתיתקל בבעיה הבאה: תג מתורגם מאבד את ההגדרות שלו, כגון הסוג, הצבעים והמיקום. WPML אינו מעתיק אותן, ולכן התג המתורגם כבוי. מוצר מתורגם המשתמש בתג זה אינו מציג תג.

פתרון עוקף

הגדר את WPML כך שיעתיק את הגדרות התגים לתגים המתורגמים:

  1. עבור אל WPMLהגדרות ופתח את הכרטיסייה הגדרות XML מותאמות אישית.
  2. הדבק את הקוד שלמטה ולחץ על שמירה.
  3. עדכן את התגים והמוצרים המקוריים, כדי ש־WPML יעדכן את התרגומים שלהם.
XML
<wpml-config>
  <custom-fields>
    <custom-field action="copy">_yith_wcbm_badge_from_date</custom-field>
    <custom-field action="copy" type="post-ids">_yith_wcbm_badge_ids</custom-field>
    <custom-field action="copy">_yith_wcbm_badge_schedule</custom-field>
    <custom-field action="copy">_yith_wcbm_badge_to_date</custom-field>
    <custom-field action="translate">_text</custom-field>
    <custom-field action="copy">_enabled</custom-field>
    <custom-field action="copy">_type</custom-field>
    <custom-field action="copy">_image</custom-field>
    <custom-field action="copy">_background_color</custom-field>
    <custom-field action="copy">_size</custom-field>
    <custom-field action="copy">_padding</custom-field>
    <custom-field action="copy">_border_radius</custom-field>
    <custom-field action="copy">_position</custom-field>
    <custom-field action="copy">_alignment</custom-field>
  </custom-fields>
</wpml-config>

כל התקלות הידועות

זקוק לעזרה בבעיה זו?

פתח פנייה לתמיכה ואנחנו נבדוק זאת איתך.