Skip Navigation

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: 

This topic contains 3 replies, has 2 voices.

Last updated by Dražen 1 year, 9 months ago.

Assisted by: Dražen.

Author Posts
August 22, 2023 at 7:53 am

pranavT

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.

August 22, 2023 at 8:38 am
August 23, 2023 at 6:46 am #14274873

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for your patience.

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

Thanks,
Drazen

August 23, 2023 at 10:48 am #14277651

pranavT

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.

Screenshot from 2023-08-23 16-13-57.png
August 23, 2023 at 11:23 am #14277971

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for getting back.

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/

Hope this helps.

Regards,
Drazen