Skip to content Skip to sidebar

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
- 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 10:00 – 17:00 -
- 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 18:00 – 19:00 -

Supporter timezone: Asia/Kathmandu (GMT+05:45)

This topic contains 1 reply, has 2 voices.

Last updated by Shekhar Bhandari 1 year, 3 months ago.

Assisted by: Shekhar Bhandari.

Author Posts
April 24, 2024 at 8:31 pm #15562668

jonathanH-37

Tell us what you are trying to do?
I have some product meta fields synced with Netsuite (stock, stock_status, channel_type, product_status,...) and I want these value to be duplicated (and synced as well) for my other languages (FR for now). This is not a one time sync (I would do it with a export/import if it was the case), this is a daily sync.

I have filters to display only some product for some customers. Since these meta data aren't available for FR products, there is no products visible in FR.

Is there any documentation that you are following?
No

Is there a similar example that we can see?
No

What is the link to your site?
hidden link

April 26, 2024 at 5:46 am #15567777

Shekhar Bhandari
WPML Supporter since 03/2015

Languages: English (English )

Timezone: Asia/Kathmandu (GMT+05:45)

Hi Jonathan,

Welcome to WPML support. I'm here to assist you.

Firstly, you need to make sure that the fields are set to copy. This means that when you change the content in the default language, it will also change in the translations. You can find more information on how to set this up and other options here:
+ https://wpml.org/documentation/getting-started-guide/translating-custom-fields/

Once this is set up correctly, updating the product should make the field available in other languages. However, this might not work when you import data. In that case, you'll need to update the post using WordPress. You may need to write some code to do this, ensuring that both the post and its translations are updated after an import.

You can also use the following two hooks to help with this:
+ https://wpml.org/wpml-hook/wpml_sync_custom_field/
+ https://wpml.org/wpml-hook/wpml_sync_all_custom_fields/

Let me know if this explanation helps.

Thanks

The topic ‘[Closed] Meta product fields populated by Netsuite’ is closed to new replies.