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?
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.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.