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 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 1 reply, has 2 voices.

Last updated by Prosenjit Barman 6 months, 2 weeks ago.

Assisted by: Prosenjit Barman.

Author Posts
October 23, 2024 at 9:34 am #16320989

tomV-50

Background of the issue:
I am trying to get products in the correct language using the function wc_get_product_id_by_sku. The issue can be seen on this page: hidden link

Symptoms:
At the bottom of the page under the title 'Gerelateerde producten', the products always show in the original language, which is English, instead of the current language.

Questions:
How can I ensure that related products are displayed in the current language?
Is there a specific setting in WPML that needs to be adjusted for product language display?

October 24, 2024 at 8:49 am #16325024

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There!
Thanks for contacting WPML Support.

I understand the issue you're experiencing. After reviewing the Related Products section of the product you shared, I found that the related products are displaying correctly. I didn’t notice any English products appearing in the Dutch language. Please check this hidden link">screenshot for better clarity.

The related products are displaying correctly for the specific product you shared. Has the issue been resolved? If you're still experiencing the issue with any other products or there are specific steps to replicate the issue, please let me know in your next response. I’ll be happy to check and assist you further.

Best regards,
Prosenjit

The topic ‘[Closed] wc_get_product_id_by_sku’ is closed to new replies.