WPML

סקירת התקלה

בעת שימוש ב־YITH WooCommerce Cart Messages עם WPML, הודעה מתורגמת אינה מוצגת לעולם, מכיוון שההגדרות שלה (סוג, עמודים, משתמשים, קישור כפתור) אינן מועתקות לתרגום. הודעה שפג תוקפה עדיין מוצגת גם בשפה המשנית.

פתרון עוקף

  1. עבור אל 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>
  2. תרגם שוב את ההודעות.

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

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

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