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
- 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 37 replies, has 2 voices.

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

Assisted by: Long Nguyen.

Author Posts
May 13, 2024 at 11:55 am #15620708

stefanv-37

We have an API that bridges products from wooc to accountent. This product title including variations and put them in the accountant software like this "title product - variation add on"

The installation of wpml cause a problem here, when wpml is activated only "titel product" is put trough. clearly wpml is causing this change in the endpoint of the API

May 15, 2024 at 10:23 am #15629362

stefanv-37

A video is not possible really, but i made screenshot and a document for explanation, hope it is enough and that you can fix it.

May 15, 2024 at 10:24 am #15629379

stefanv-37

Can i upload a PDF somehwere?

May 16, 2024 at 2:26 am #15632583

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

Hi Stefan,

Thank you for contacting WPML support, I’m happy to help you with this issue.

This product title including variations and put them in the accountant software like this "title product - variation add on"

Please let me know if the "title product" here is the variation title or the parent product title.

I recheck this issue on my demo site and see the variation title includes the product title and attributes in the Rest API response. Please see the attached screenshot.

If it is the parent product title, by default, WooCommerce doesn't support adding the attribute (variation addon) to the parent product title. Do you use a custom code to add the attribute to the product title in the Rest API response?

Can I upload a PDF somewhere?

You can upload it to Google Drive or Dropbox and share the URL here.

Looking forward to your reply.
Thanks

http:::localhost:8888:wpml:wp-json:wc:v3:products:.png
May 16, 2024 at 7:08 am #15633134

stefanv-37

Long Nguyen,
Thanks for the reply,

1)"title product" is the parent product title
2) no custom code is used, it normally (for years already) grabs the parent title + variation add on and puts it trough. Only when WPML is activated, it suddenly stops adding the variation add on. We A/B tested it and toggled WPML, i am 99.99% sure this causes the change.

hidden link

May 16, 2024 at 8:15 am #15633497

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

So it's a variation - downloadable product. I still don't see that issue on my local site, in the original and second language. Please check two attached screenshots.

I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.
And please share the consumer/secret key so I can check the issue with the Postman app.

❌ IMPORTANT: Please backup your database and website before proceeding ❌
You can use this plugin to create the backup: https://wordpress.org/plugins/duplicator/
✙ I would need your permission to de-activate and re-activate Plugins and the Theme to change configurations on the site if needed. This is also a reason the backup is critical.

Looking forward to your reply.
Thanks

FR - http:localhost:8888:wpml:wp-json:wc:v3:customers.png
http:localhost:8888:wpml:wp-json:wc:v3:customers.png
May 16, 2024 at 3:01 pm #15635933

stefanv-37

thanks for the reply
Two mistakes in my opinion in understanding the issue, lets tackle that first.
1) it is not a downloadable product (in the image it is clearly a can of spray paint), neither was it mentioned anywhere.
2) the issue does not occure in change on language/second language, it occurs when the plugin is activated or deactivated.

May 17, 2024 at 1:43 am #15637323

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

Hi,

You mentioned this WooCommerce API in the doc file hidden link

that means it is a downloadable product. Even if it is not a downloadable product, it's only a variation product, you can see in two attached screenshots that I shared above, the product title and attribute addon are displayed in the Rest API response, both original and second languages.

To investigate the issue on your site, I would like to request temporary access (wp-admin and FTP) to take a better look at the issue (including the consumer/secret key). It would be better to have a testing site where the issue is replicated. Your next reply is set to private to share the info.

Looking forward to your reply.
Thanks

May 17, 2024 at 8:25 am #15638053

stefanv-37

Whats with the duplicator URl?
What does it mean, and what do i have t do?

May 17, 2024 at 8:40 am #15638127

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

It is the Duplicator (https://wordpress.org/plugins/duplicator/) backup file URL that you upload to a storage like Google Drive, Dropbox. You can use any backup plugin and share the file.
If you take the backup from the hosting service, please ignore that option.

Thanks.

May 17, 2024 at 8:56 am #15638293

stefanv-37

The option is required an cannot be ignored.

May 17, 2024 at 9:03 am #15638357

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

I remove it from your private reply.

May 17, 2024 at 9:52 am #15638663

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

I'm checking the variable product "DK Therm Hittebestendige verf in spuitbus" and its variation "Glans zwart 0900-0916", ID 6972.
I use the WooCommerce Rest API "products" to get the product information "GET /wp-json/wc/v3/products"
hidden link

the product title and variation are displayed in the response as well. Please check the attached screenshot. Let me know what the Rest API that you are using to get the information.

Thanks.

http:localhost:8888:wpml:wp-json:wc:v3:customers.png
May 17, 2024 at 10:01 am #15638732

stefanv-37

That looks about right. Is that with or without WPML activated?

The REST API we are using is not connected with staging i guess. If thats what you mean.

May 17, 2024 at 10:04 am #15638766

Long Nguyen
WPML Supporter since 02/2022

Languages: English (English ) Vietnamese (Vietnamese )

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

Yes, WPML is activated, nothing changed.

The REST API we are using is not connected with staging I guess

Let me know what is the Rest API URL that you use on your live site. Here is an example on the staging site:
hidden link

The topic ‘[Closed] only the product title is transferred through API when wpml is active’ is closed to new replies.