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.

Our next available supporter will start replying to tickets in about 4.79 hours from now. Thank you for your understanding.

Sun Mon Tue Wed Thu Fri Sat
- 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 8:00 – 12:00 -
- 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 13:00 – 17:00 -

Supporter timezone: Asia/Ho_Chi_Minh (GMT+07:00)

This topic contains 3 replies, has 2 voices.

Last updated by Long Nguyen 1 year, 5 months ago.

Assisted by: Long Nguyen.

Author Posts
November 24, 2022 at 11:15 am #12526279

Anze

!!!Created

"id": 727,

"name": "Jabol\u010dni kis Kompleks",

"product_id": 853,

"variation_id": 0,

"quantity": 1,

"tax_class": "nizja-stopnja-ddv",

"subtotal": "18.26",

"subtotal_tax": "1.73",

"total": "18.26",

"total_tax": "1.73",

"taxes": {

"id": 6,

"total": "1.734292",

"subtotal": "1.734292"

},

"sku": "CC-APPLECIDER-COMPLEX-180",

!!!!On hold

"id": 727,

"name": "Jabol\u010dni kis Kompleks",

"product_id": 853,

"variation_id": 0,

"quantity": 1,

"tax_class": "nizja-stopnja-ddv",

"subtotal": "18.26",

"subtotal_tax": "1.73",

"total": "18.26",

"total_tax": "1.73",

"taxes": {

"id": 6,

"total": "1.734292",

"subtotal": "1.734292"

},

"sku": "CC-APPLECIDER-COMPLEX-180",

!!! PROCESSED - ids get changed
"id": 727,

"name": "Apple Cider Vinegar",

"product_id": 667, ---------!!!!!!!!!!

"variation_id": 0,

"quantity": 1,

"tax_class": "nizja-stopnja-ddv",

"subtotal": "18.26",

"subtotal_tax": "1.73",

"total": "18.26",

"total_tax": "1.73",

"taxes": [{

"id": 6,

"total": "1.734292",

"subtotal": "1.734292"

}, {

"id": 10, - additional tax class in json

"total": "",

"subtotal": ""

}

],

"meta_data": [],

November 25, 2022 at 11:16 am #12533623

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi there,

Thank you for contacting WPML support, I’d be happy to help you on this issue.

The product ID and other data like title, image … in the order will display as the translation or default language based on the language in the user profile. Let me know if it is your case.

If not, please test this issue again with a minimal environment and see if it helps:

- Deactivate all plugins except WPML plugins and WooCommerce
- Switch to a standard theme of WordPress (2022)

❌ IMPORTANT: Please backup your database and website before doing above steps ❌
You can use this plugin to do this: 
https://wordpress.org/plugins/duplicator/
It’s done in just a few minutes.

I also need more information on your site by sharing the debug info. If you don’t know how to share the debug info, please follow this article https://wpml.org/faq/provide-debug-information-faster-support/
Your next reply is enabled to share the debug info.

Look forward to your reply.

Thanks

November 25, 2022 at 12:31 pm #12534213

Anze

Hello,

"The product ID and other data like title, image … in the order will display as the translation or default language based on the language in the user profile. Let me know if it is your case."

Currently, the order is created in language "2" and default language is "1". But when i put order to processing, it changes the products in order "2" to "1" in json. I think this is a bug.

November 28, 2022 at 6:55 am #12543739

Long Nguyen
Supporter

Languages: English (English )

Timezone: Asia/Ho_Chi_Minh (GMT+07:00)

Hi,

Thank you for the feedback.

Can you please share your site debug info? I need more information on your site by sharing the debug info. If you don’t know how to share the debug info, please follow this article https://wpml.org/faq/provide-debug-information-faster-support/
Your next reply is enabled to share the debug info.

I’ve tried to check the WooCommerce Rest API on my demo site but do not see that issue. For example:
hidden link
will display only the product ID in the default language. Please see these screenshots
hidden link
hidden link

And please let me know how you use the Rest API and get the return value. Did you follow the minimum environment above?

You can also follow the documentation https://wpml.org/documentation/related-projects/woocommerce-multilingual/using-wordpress-rest-api-woocommerce-multilingual/
to use the WooCommerce REST PHP client library.

Look forward to your reply.

Thanks

The topic ‘[Closed] when order is manually proccessed, id of product is changed to original id’ is closed to new replies.