We have few custom field for variation product such as currently we have barcode as custom, we had set the wpml translation on to automatic mode now what we does is he is copying all product data from Arabic(this is our default language) to English.yes it is copied everything except our custom field data (barcode in our case).will you tell us the reason of having this.and how i can resolve it.
In order to check this further and if needed escalate to our 2nd tier, and exclude any other conflicts, please follow the next steps:
I created a minimal installation of WordPress, WPML, and all necessary WPML add-ons.
You can access the WordPress dashboard using the link below:
- hidden link
Kindly follow the steps below:
- - Try to replicate the issue with a simple dummy example
- If not needed do not install any other theme or plugins
- Share with me step by step guide on steps you did
i have created the product in English and added that custom field name as barcode which you code you will get in function.PHP file. however we have tried to translate this product into Spanish in your provided link( hidden link) and there also have the same issue that product other data has been copied but our custom field data is not being copied.for the reference i am attaching the screen shot also of Spanish product where barcode is not present.
I have checked and could see the "issue", you are saving a custom field as
barcode_*
. So you need to target that custom field which in your example case is barcode_0, you can do that via custom XML configuration. If you set it to copy there, then it copies just fine on the translated page also.
Video: hidden link
I am not a developer so not sure if you can adjust further this code, but if you need help with custom coding and adjusting your code we advise hiring WPML contractors: https://wpml.org/contractors/