This thread is resolved. Here is a description of the problem and solution.
Problem:
The client is experiencing issues with the translation of product variation colors in the WooCommerce backend, which is affecting the functionality of the Product Pre-Orders for Woocommerce plugin. The colors are not translated in the backend, causing pre-order functionality to fail for out-of-stock products with variations.
Solution:
We have identified that the Product Pre-Orders for Woocommerce plugin is not officially compatible with WPML. We recommend the following steps:
1. Report the compatibility issue to the plugin author and invite them to join our Go Global program to help make the plugin officially compatible. You can find more information here: Go Global program.
2. As a workaround, you can:
- Navigate to WPML > Settings > Custom fields.
- Show system fields and set the following fields to copy:
_-_ywpo_preorder
_-_all fields starting with _wpro
_-_wpro_variable_is_preorder
- Manually edit the product in the second language, enable the pre-order checkbox, and add the correct data.
Please note that this solution might be outdated or not applicable to your case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If you still need assistance, please open a new support ticket: WPML support forum.
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.
Tagged: Go Global Application
This topic contains 25 replies, has 2 voices.
Last updated by alexanderv-25 11 months, 1 week ago.
Assisted by: Dražen.
Author | Posts |
---|---|
February 7, 2024 at 1:43 pm #15276844 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, I checked and could see the issue. Please note plugin Product Pre-Orders for Woocommerce is not officially compatible with WPML so some issues can happen (https://wpml.org/plugin/). The problem is same settings are not copied to the translated product. I have tried to set related custom fields to copy but this is not working since each variable has a specifically created custom field in DB, so would require to set copy each time. I suggest reporting this to the author and inviting them to our GoGLobal and we will be glad to help in making this plugin officially compatible and working: In the meantime you can use next workaround: - Go to WPML > Settings > Custom fields > Shows system fields> Set next to copy: -_ywpo_preorder - Since I see you are either way using a manual translation method via WP editor, you can simply edit 2nd language product enable the preorder checkbox, and add the correct data and it works just fine. Regards, |
February 7, 2024 at 2:16 pm #15277052 | |
alexanderv-25 |
I did use the workaround. But when I check the normal website afterwards, some products are doing it correct and some not.... altough they all have the same kind of settings. For example in dutch: hidden link is working correct in dutch. There is a pre order button (if you choose product color anthracite grey + natual legs). If you change the language, there is no pre order button for the same product. Altough in the backend all is set like you showed. When we take this product: hidden link and also go for Anthracite grey + natural legs, all is correct in Dutch, and English, etc... I keep seeing that if the colors in the backend are "iedere kleur" in English instead of the correct color, there is a problem. The examples above prove so. The first product had in English in the backend "iedere kleur" as variable colors and the second product (where everyting is correct) shows the right color in English in the backend... Maybe you can check yourself on the live website. You will see I did use your workaround there also and did make correct settings at each product. I think you can log in with the same username and password on the live site. Just remove the word "stage" out of the given login url. |
February 8, 2024 at 9:02 am #15280194 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks, I checked also on your live website and it works just fine. Video: hidden link I know what you are mentioning about colors, but that has no effect, it happens also sometimes in the default language, just reload the page or variation and it will show. Then make sure you have set the correct settings, update the product and it works just fine as shown in the video. Regards, |
February 8, 2024 at 9:32 am #15280261 | |
alexanderv-25 |
Drazen, Thanks for the reply. I do understand what you say. I did change all the pre orders like you said in Dutch and did check in English in the backend. It copies the pre order date, so far so good. I also cleared all cache. But my feeling (and the problem) stays the same, when the product in English does not show the colors correct, then at the front end no changes are visible. Let me explain with examples of the live site: When we take this product: hidden link the following colors should be on pre order in all the languages: Altough in the backend all was set correctly in dutch and english to make the pre order visible. When I keep refreshing the back end in English, I found out that only when the colors are correct, the changes I make in the pre order work correct. When I make changes when the colors are not visible, the changes are not going trough. So I keep refreshing but after +10x of trying with this product, the colors still don't show up... Also when we take this product: -> hidden link The same issue appears, all languages are set to pre order and most languages do it correctly, only the english language not... |
February 8, 2024 at 12:47 pm #15281310 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, I checked again, and for me, it works just fine from the first load, maybe you are doing something different or something is blocking a load of correct scripts in the background. I just edited the product, waited for it to load, clicked variation, checked preorder and saved variations, and save product. Video: hidden link I am not sure if that is causing the issue as from what I experienced and checked it works just fine. But I think it would be a lot easier if you could set a related custom field to copy so it copies automatically from the default language, without the need to add these settings manually in 2nd language. For this, as mentioned we would need plugin author collaboration or maybe they have a solution on how namings are added and can set it to COPY following our documents: Regards, |
February 8, 2024 at 2:15 pm #15281703 | |
alexanderv-25 |
Drazen, I understand your video, somehow, I can make the pre order changes in all languages (dutch, french, italian and german) but not in english. The colors are correct visible in all languages but not in english. So as long as in the english backend the words " iedere kleur" are visble instead of the correct colors I am not able to change the english pre order settings. It is very weird that all other languages work correctly. The settings I use are the same as you use in the same dashboard I guess. See the result (frontend) in my video... : hidden link In all languages the variation of this product has the pre order setting, except in English. Altough in the backend I did activate the pre order also (but the colors are not given correctly in the backend -> see the backend in this video: hidden link |
February 8, 2024 at 3:37 pm #15282046 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, thanks for getting back. If you can share again product URL that you are checking in the video I can try to check again, but as you have seen it loads just fine for me. The only difference, that I see from the video, is I have clicked to edit the English language from the front end, also I see you are using a different user and user language than me, maybe that affects you somehow. Please try same as I did and same user, since there is a similar known issue with loading wrong related terms in the backend depending on the user language/ editing language /cookie. Regards, |
February 9, 2024 at 2:46 pm #15286579 | |
alexanderv-25 |
Hello, The link is: hidden link you can check with the color option snow white - white legs |
February 12, 2024 at 7:26 am #15291114 | |
Dražen Supporter
Languages: English (English ) Timezone: Europe/Zagreb (GMT+01:00) |
Hello, I tried, and it works just fine as before for me, maybe you are doing something different as I explained in my steps before. Anyway, I suggest following my steps and setting the correct settings or using another plugin that works fine and automatically syncs with WPML so you do not need to set it manually. Video: hidden link Regards, |
February 13, 2024 at 10:20 am #15296667 | |
alexanderv-25 |
Thanks Drazen, I did it like you said, via edit product instead of via the backend. This workaround works. One last question, is it possible to delete the screenshots/video's from the public forum? |
February 13, 2024 at 10:23 am #15296675 | |
alexanderv-25 |
. |