WPML

Übersicht über das Problem

Wenn Sie WooCommerce Quantity Manager mit WPML verwenden, gelten die Mengenregeln eines Produkts, einer Variante oder einer Produktkategorie nicht für deren Übersetzungen. Übersetzte Produkte akzeptieren jede beliebige Menge.

Problemumgehung

  1. 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">_wqm_product_quantity</custom-field>
        <custom-field action="copy">_wqm_product_value</custom-field>
        <custom-field action="copy">_wqm_product_step</custom-field>
        <custom-field action="copy">_product_default_quantity</custom-field>
        <custom-field action="copy">_wqm_variation_product_quantity</custom-field>
        <custom-field action="copy">_wqm_variation_product_value</custom-field>
        <custom-field action="copy">_wqm_variation_product_step</custom-field>
        <custom-field action="copy">_wqm_variation_default_quantity</custom-field>
      </custom-fields>
      <custom-term-fields>
        <custom-term-field action="copy">quantity_manager_category_quantity</custom-term-field>
        <custom-term-field action="copy">quantity_manager_category_value</custom-term-field>
        <custom-term-field action="copy">quantity_manager_category_step</custom-term-field>
        <custom-term-field action="copy">_default_product_quantity</custom-term-field>
        <custom-term-field action="copy">quantity_manager_override_category_roles</custom-term-field>
        <custom-term-field action="copy">quantity_manager_category_user_roles[]</custom-term-field>
      </custom-term-fields>
    </wpml-config>
  2. Speichern Sie die ursprünglichen Produkte und Kategorien erneut.

Alle bekannten Probleme

Benötigen Sie Hilfe bei diesem Problem?

Stellen Sie eine Support-Anfrage und wir sehen uns das gemeinsam mit Ihnen an.