This is the technical support forum for WPML - the multilingual WordPress plugin.

Everyone can read, but only WPML clients can post here. WPML team is replying on the forum 6 days per week, 22 hours per day.

This topic contains 3 replies, has 2 voices.

Last updated by Jamal 1 month, 2 weeks ago.

Assigned support staff: Jamal.

Author Posts
September 5, 2019 at 10:21 am #4518391

billK-3

Hello, I would like to keep inventory on a per-translation basis. I can see that you can force a sync between translations for the stock/inventory levels - i DO NOT want to do this. Is there a way I can be sure that the inventory levels will not sync?

September 5, 2019 at 11:29 am #4518801

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hello,

Thank you for contacting WPML Support. I will be glad to help with this.

WooCommerce Multilingual will always sync the stock quantities across languages. We provide also a troubleshooting action to sync the quantities if the automatic sync has failed and presented some differences between languages.
A product and its translation will always be considered the same product and we must keep sync between stock quantities.

You can suggest this feature in this page https://wpml.org/suggest-a-new-feature-for-wpml/

Or you can create different products in different languages. This way, each product won't have a translation and will have its own stock quantity.

I hope this helps. Let me know if there is anything else I can do.

Best regards,
Jamal
WPML Support

September 5, 2019 at 11:32 am #4518809

billK-3

Hi, are you able to tell me how that sync takes place as we want the opposite - no sync!

Thanks,
Bill

September 5, 2019 at 12:08 pm #4519025

Jamal
Supporter

Languages: English (English ) French (Français )

Timezone: Africa/Casablanca (GMT+01:00)

Hi Bill,

You can hook into these WooCommerce Multilingual filters and perform any changes, or you may want to look for their usage in the code and remove the functions that handle the sync.
- https://wpml.org/wcml-hook/wcml_before_sync_product/
- https://wpml.org/wcml-hook/wcml_before_sync_product_data/

Let me know if you still need anything.

Best regards,
Jamal