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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 9:00 – 13:00 -
- 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 14:00 – 18:00 -

Supporter timezone: America/Los_Angeles (GMT-08:00)

Tagged: 

This topic contains 7 replies, has 2 voices.

Last updated by Bobby 1 month, 3 weeks ago.

Assisted by: Bobby.

Author Posts
October 15, 2024 at 12:20 am #16288104

Kresimir

Background of the issue:
We have two custom taxonomies for WooCommerce products, created using Extended CPTs (hidden link), to have a single-select dropdown for choosing the taxonomy. We have over 1000 products and 6 languages on the site. Custom fields are registered using ACF and are set to 'copy' or 'copy once'.

Symptoms:
When I duplicate products to other languages, those taxonomies do not get copied to the product. Custom fields do not get copied to the duplicated products until I edit the duplicated product and save/update it.

Questions:
Why are custom taxonomies not copied when duplicating products to other languages?
Why do custom fields registered using ACF not get copied until I edit and save the duplicated product?

October 15, 2024 at 8:23 pm #16292588

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

Please review this errata documentation and try the workaround:

https://wpml.org/errata/acf-duplication-issue-field-types/

Let me know your results.

October 17, 2024 at 2:44 pm #16301074

Kresimir

Hey,

I don't know how to implement it for my case. I have two issues:

1. Custom taxonomies are not copied. They are assigned to a product just like WooCommerce product categories are, they do not depend on ACF.
2. The problem with ACF is that repeater field doesn't get copied until I enter and update the product.

October 18, 2024 at 9:03 pm #16306534

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

I would like to request temporary access (wp-admin and FTP) to your site to test the issue.
(preferably to a test site where the problem has been replicated if possible)

**Before we proceed It is necessary to take FULL BACKUP of your database and your website. Providing us with access, you agree that a backup has been taken **

I often use the Duplicator plugin for this purpose: http://wordpress.org/plugins/duplicator/
You will find the needed fields for this below the comment area when you log in to leave your next reply.
The information you enter is private which means only you and I have access to it.

NOTE: If access to the live site is not possible and the staging site does not exist please provide me with a duplicator package created with the duplicator plugin.

Thank you,
Bobby

October 25, 2024 at 7:04 pm #16332034

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Using this product: hidden link

and reviewing its translation hidden link

Everything looks OK, I assume because you did the following "edit and update translated product", correct?

On the same product, I duplicated it to Hungarian and it seems to be working OK without me having to update it again. Am I missing something to reproduce the issue?

You can see my steps here:
hidden link

October 28, 2024 at 8:34 am #16336318

Kresimir

Hey Bobby,

Like I mentioned, the only thing I still have an issue with is "energy_certificates" repeater field.

For example if you look at this product in original language you'll see those energy certificates - hidden link
But they do not get copied to translated language - hidden link

October 28, 2024 at 5:46 pm #16339315

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Thank you for the clarification.

I am testing this using the product shared and will update you!

October 29, 2024 at 10:28 pm #16344361

Bobby
Supporter

Languages: English (English )

Timezone: America/Los_Angeles (GMT-08:00)

Hi there,

I believe implementing the fix shared earlier with you in the functions.php should resolve this issue.

At the moment I am not able to locate the Field Groups area to edit the ACF Field Groups on the site, is it missing or hidden? I can see that ACF Pro is activated.

The topic ‘[Closed] Custom taxonomies not copied when duplicating products to other languages’ is closed to new replies.