Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client is unable to translate the Cross-sell title on the cart page of their website, which is a product widget from Elementor. Although the string translation indicates that it is translated, the title still appears in Dutch instead of English.
Solution:
We recommended that the client should not use String Translation for this Elementor widget but instead translate the Elementor template via WPML > Translation Management. Additionally, we provided a custom XML configuration to be added in WPML > Settings > Custom XML configuration:

<wpml-config>
<elementor-widgets>
<widget name="woocommerce-products">
<fields>
<field>products_related_products_title_text</field>
<field>products_upsells_title_text</field>
<field>products_cross_sells_title_text</field>
</fields>
</widget>
</elementor-widgets>
</wpml-config>

After adding this code, the client should make a small change to the cart page, save it, and then re-translate using the Advanced Translation Editor (ATE). This should allow the title to be visible and translatable in the ATE editor.

Please note that this solution might be outdated or not applicable to your specific case. If the issue persists, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If needed, do not hesitate to open a new support ticket at WPML support forum for further assistance.

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.

Tagged: 

This topic contains 4 replies, has 0 voices.

Last updated by timT-2 4 days, 12 hours ago.

Assisted by: Dražen.

Author Posts
June 26, 2025 at 7:43 am #17171638

timT-2

Background of the issue:
I am trying to translate a title on the cart page. It is a Cross-sell title we are unable to translate. I want to add that this is a product widget from Elementor. When we check the string translation it says it's translated. The issue can be seen on this page: hidden link

Symptoms:
I expect to see the title 'Je bent misschien geïnteresseerd in…' translated in English to 'You may be interested in…'. But we still got the Title in Dutch.

Questions:
Why is the Cross-sell title not translating on the cart page?
Is there an issue with the Elementor widget affecting the translation?

June 26, 2025 at 10:54 am #17172923

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

thanks for contacting us.

Can you explain how did you add this in default language, is it via Elementor templates?

If yes, then you need to translate that Elementor template via WPML > Translation Management, not using String translation.

Please try and let me know how it goes.

Regards,
Drazen

June 26, 2025 at 11:33 am #17173176

timT-2

Hello Drazen,

It is not an Elementor template it's only a products widget from Elementor on the cart page itself. Here you can choose what query you want to show and I had chosen the Cross-sell. You can see attached screenshot.

The weird thing is when I search for "geïnteresseerd" in the string translations nothing shows. but when you search in English "Interested" it shows the translation. I find this already weird because the default language of the website is Dutch. Why does "geïnteresseerd" not popup?

I hope this clarifies a bit.

Thank you!

Screenshot 2025-06-26 at 13.29.37.png
June 26, 2025 at 12:11 pm #17173390

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

thanks for getting back.

Please share the access details of your website, so I can log in and take a look.

I’m enabling a private message for the following reply.

We have strict policies regarding privacy and access to your information.

Please see:
https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/


- Please backup the site files and database before providing us access. 

- If you have a staging site where the problem can be reproduced, it is better to share access to the staging site.



Thanks,
Drazen

June 26, 2025 at 2:52 pm #17174338

Dražen
Supporter

Languages: English (English )

Timezone: Europe/Zagreb (GMT+02:00)

Hello,

please add next code to WPML > Settings > Custom XML configuration

<wpml-config>
  <elementor-widgets>
    <widget name="woocommerce-products">
      <fields>
        <field>products_related_products_title_text</field>
        <field>products_upsells_title_text</field>
        <field>products_cross_sells_title_text</field>
      </fields>
    </widget>
  </elementor-widgets>
</wpml-config>

Make a small change to cart page, save and re-translate.

You should see and be able to translate that title in ATE editor.

We will also include this soon from our side, so this issue does not repeat.

Regards,
Drazen

June 27, 2025 at 6:57 am #17175932

timT-2

Hello Drazen,

Thank you for your help!
This works perfect.