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.
| Sun | Mon | Tue | Wed | Thu | Fri | Sat |
|---|---|---|---|---|---|---|
| - | - | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 | 9:00 – 18:00 |
| - | - | - | - | - | - | - |
Supporter timezone: America/Lima (GMT-05:00)
Tagged: WCML
Related documentation:
This topic contains 25 replies, has 0 voices.
Last updated by Andreas W. 2 days, 9 hours ago.
Assisted by: Andreas W..
| Author | Posts |
|---|---|
| March 27, 2026 at 8:22 am #17931045 | |
|
sigurdurB |
Either I missed explicitly stating that I published the duplicate product after I tweaked it, or you missed that part. Either way, I obviously know the duplicate is initially created as a draft. So I make my tweaks, then I publish it before I translate it. I feel like I've already covered this at least once and that you are completely missing my point. It seems like you are bound and determined to find a way to blame this on user error, rather than consider that the product may have a bug. |
| March 27, 2026 at 9:05 am #17931258 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
It is not a user error; it is expected behavior. If you duplicate with WooCommerce, the translation will also be duplicated. As the original product is duplicated as "draft", the translation will also be a "draft". After that step, WPML by default will no longer sync the post status. I provided two snippets in my earlier comment that can change this behavior. |
| March 27, 2026 at 9:16 am #17931273 | |
|
sigurdurB |
If you are arguing that because the product was initially created as a draft, the translation will always be created as a draft regardless of the product's published state at the time the translation is created, that is absolutely not expected behaviour. |
| March 27, 2026 at 9:30 am #17931297 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
When duplicating a product in WooCommerce, it will be created as "draft". This is also the case when testing without WPML. WPML will sync the post status only when the translation is created for the first time, or in this case, once the duplicate is created. I provided a snippet in an earlier comment that lets you prevent a translation from being created once you duplicate a product in WooCommerce. When creating a duplicate in WooCommerce, the translation is created together with the duplicate, and this is why the post status will not sync any longer, as it was already synced on duplication. This is expected behavior, which was confirmed by our Compatilbity Team Lead. Most WPML users currently expect this behavior, as they want to be able to use independent post statuses after the content has been translated or duplicated. I also provided a snippet in a previous comment that will allow you to alter this behavior and keep post statuses in sync between original content and translations. |
| March 27, 2026 at 10:05 am #17931452 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
You can enable the option WPML > Settings > Translated documents options > When you publish the original post: If enabled, and you have original content saved as a draft, then publishing this original content will also publish the translation. This also works for products. |
| March 27, 2026 at 1:44 pm #17932488 | |
|
sigurdurB |
See that is the core of the problem. I've got that set, I'm publishing the duplicate, then I translate, and the translation is stuck on draft. |
| March 27, 2026 at 6:18 pm #17933169 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Thank you for the detailed steps! On my sandbox: 1) Duplicate an original product that is translated in WooCommerce This works as expected on my test Exception where the translated product is not published: This is exepcted. WPML only syncs from the original content to translation. This means: One-Click-Login: So, in this case, it would not be expected to duplicate an actual translation. The original product should be duplicated instead. You can recognize an original by the fact that it has translation method options inside the right sidebar of the WordPress Editor. Please take a look into this video, which I recorded for you: |
| March 28, 2026 at 1:09 pm #17933807 | |
|
sigurdurB |
Ok I can't argue if this expected behaviour since I know nothing about the design. However I'm sticking with my opinion that this is an undesirable behaviour and horrible UX, regardless of it is expected or not. |
| March 28, 2026 at 5:30 pm #17934115 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
Could you please confirm if the issue occurs because you are duplicating a translation, and not the original product? Also, please take note that I already created a feature request for adding a new option to WPML that will allow you to keep the post status always in sync. It is now in the hands of our product manager and the developers to decide if such a feature will be made available or not. I provided a snippet earlier on this ticker, which can be applied to your site to solve this. Do you need assistance with applying the snippet? |
| March 29, 2026 at 10:17 am #17934542 | |
|
sigurdurB |
I always duplicate the product in the origional language, not the translation. Sounds like there is nothing more to be done under this ticket. If you don't plan on doing any more troubleshooting on this, you may close this issue, and I'll delete your access. |
| March 31, 2026 at 6:36 pm #17941182 | |
|
Andreas W. WPML Supporter since 12/2018 Languages: English (English ) Spanish (Español ) German (Deutsch ) Timezone: America/Lima (GMT-05:00) |
This is expected, if you use WPML > Settings > When you publish the original post I have not adjusted to using the setting: I have duplicated one of your original products. After that, I published the original product, and the translation is getting published. I can not confirm this issue at the moment on your dev site. |