WPML

Overview of the Issue

When using WooCommerce Lead Time with WPML, the global lead time text and the per-status prefix are not in String Translation, and a product’s own lead time is lost on its translation.

Workaround

  1. Go to WPMLSettingsCustom XML Configuration, add the following XML and save:
    XML
    <wpml-config>
      <custom-fields>
        <custom-field action="translate">_wclt_lead_time</custom-field>
      </custom-fields>
      <admin-texts>
        <key name="wclt_global_time"/>
        <key name="wclt_units"/>
        <key name="wclt_global_prefix_instock"/>
        <key name="wclt_global_prefix_outofstock"/>
        <key name="wclt_global_prefix_onbackorder"/>
      </admin-texts>
    </wpml-config>
  2. Translate the texts in WPMLString Translation, and translate the products again.
  3. For a category, set the lead time on the translated category too.
  4. In the [lead_time] shortcode on a translated page, use the ID of the translated product.

All known issues

Need Help with This Issue?

Ask a support question and we’ll look into it with you.