Übersicht über das Problem
Wenn YITH WooCommerce Cart Messages mit WPML verwendet wird, wird eine übersetzte Nachricht nie angezeigt, da ihre Einstellungen (Typ, Seiten, Benutzer, Button-Link) nicht in die Übersetzung kopiert werden. Eine abgelaufene Nachricht wird auch weiterhin in der Sekundärsprache angezeigt.
Problemumgehung
- Gehen Sie zu WPMLEinstellungenBenutzerdefinierte XML-Konfiguration, fügen Sie das folgende XML hinzu und speichern Sie:
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>
- Übersetzen Sie die Nachrichten erneut.