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.

This topic contains 3 replies, has 2 voices.

Last updated by man-chakC 1 month, 3 weeks ago.

Assigned support staff: Rohan Sadanandan.

Author Posts
August 21, 2019 at 5:16 pm #4434183

man-chakC

I am trying to use wpml with wooCommernce serial number together,
but i found the the serial number can only apply to one product and
after i translated the product to 3 languages, it shows up 3 product,
is it possible to make the translated product into the same product id so that make
the plugin work?

thanks

August 22, 2019 at 8:01 am #4437405

Rohan Sadanandan
Supporter

Languages: English (English )

Timezone: Asia/Kolkata (GMT+05:30)

Hello,

Thank you for contacting WPML Support.

The way WooCommerce Multilingual and WPML work is that every translation of a product or post is stored like an independent product/post connected to each other by a specific value in the database.

Therefore, products always have a different ID for each translation, and despite being the same product, in the database, these are different records with their own IDs.

To change this you need custom coding to have the value of both languages and sum them up before displaying on the desired page.

You can also see a list of available hooks, which may help in the development of the requested feature:

WPML: https://wpml.org/documentation/support/wpml-coding-api/wpml-hooks-reference/

WooCommerce Multilingual: https://wpml.org/documentation/related-projects/woocommerce-multilingual/wcml-hooks-reference/

If you need custom programming work for your site, we recommend contacting one of our certified partners: http://wpml.org/documentation/support/wpml-contractors/

Thanks,
Rohan

August 22, 2019 at 5:03 pm #4441697

man-chakC

Can i know what function can be used for selecting the translated product id?

August 22, 2019 at 5:37 pm #4441891

man-chakC

My issue is resolved now. Thank you!