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
- 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>
- Translate the texts in WPMLString Translation, and translate the products again.
- For a category, set the lead time on the translated category too.
- In the
[lead_time]shortcode on a translated page, use the ID of the translated product.