Home Forums WoodMart support forum WPML – Unit of measurement

WPML – Unit of measurement

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #703322

    edgarskairans
    Participant

    Hello,

    I’m using WPML with 3 languages and I’ve encountered the following problem:
    the “Unit of measurement” field has to be filled in separately for each language, which is very inconvenient. Moreover, when saving products in the translated languages, which are translated from English, bugs often occur.

    Could you please advise how to make it so that this field is filled in only in the main language, and in the other languages it is automatically translated or synchronized from the main one?

    Thank you,
    Best Regards

    #703415

    Hello,

    The “Unit of measurement” field in WoodMart, located in the WooCommerce product Inventory tab, is a custom post meta field that WPML treats as translatable by default, requiring separate entry per language. To synchronize it from the main language (English) to translations automatically, configure WPML to copy the field value instead of translating it.

    Go to WPML > Settings > Custom Fields Translation.

    – Enable “Show system fields” if hidden.
    – Search for the WoodMart unit field name (e.g., _woodmart_unit_measurement).
    – Set its translation preference to “Copy”.

    Save changes, then resave main language products and sync translations via WPML > Translation Management to sync values.

    Otherwise, if the issue still exists then please share the WP admin login details of your site so I will check and give you a possible solution.

    Best Regards.

    #703434

    edgarskairans
    Participant

    Hello,

    Why should the translation preference be set to “Copy”? For example, “pcs.” or other values may be translated differently in each language. Wouldn’t it be better to set it to “Translate” instead?

    Thanks,
    Best Regards

    #703475

    Hello,

    WPML’s “Copy” preference synchronizes the field value from the original language to all translations automatically and keeps them in sync on updates, eliminating the need to fill it separately per language. This suits units of measurement like “pcs.” (pieces), “kg”, or “m” that remain identical or functionally equivalent across languages, avoiding duplication and bugs during saves.

    “Copy” propagates the exact value (e.g., “kg” stays “kg”) and hides the field in the Translation Editor since no manual input is needed. “Translate” makes it editable per language in the editor, allowing changes like “pcs.” to “pièces” in French, but requires manual entry.

    Best Regards.

Viewing 4 posts - 1 through 4 (of 4 total)