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

Supporter timezone: America/Lima (GMT-05:00)

This topic contains 9 replies, has 1 voice.

Last updated by Andreas W. 1 month ago.

Assisted by: Andreas W..

Author Posts
May 12, 2025 at 9:12 am #17021693

eventL

Background of the issue:
I am trying to translate product options using the YITH WooCommerce Product Add-ons & Extra Options Premium plugin. The options are translated, but the selected number is not working in languages other than the default. You can see the issue on this page: hidden link.

Symptoms:
The number of added stickers is only visible in the cart, checkout, and WooCommerce order details in the default language (co.uk), but not in other languages.

Questions:
Why are the translated product options not working in languages other than the default?
How can I make the number of added stickers visible in all languages?

May 14, 2025 at 1:02 pm #17032390

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

I apologize for the delay in responding. I will take care of this ticket; the reply time will be shorter now.

Did you manage to fix it? I see the number of added stickers in the English checkout (see the screenshot attached)

If I didn't understand the issue properly, please elaborate on the steps I need to follow to see it.

Best Regards,
Otto

CleanShot 2025-05-14 at 10.00.21.png
May 15, 2025 at 7:56 am #17035418

eventL

Hi Otto,

Very annoying that we have to wait so long and then get an answer, where the question is not read properly.

The problem is that it works on the English site, but not on the other languages. So it only works on the default site, not on the others.

May 15, 2025 at 2:17 pm #17037362

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

I am truly sorry for the mistake. I didn't realize that your site was using domains per language and thought that NL was the default. Please apologize.

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 a testing site where the issue is replicated.

The information you will enter is private which means only you and I can see and have access to it.
Maybe I'll need to replicate your site locally. For this, I'll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site.
This will allow me to create a copy of your site and your content.
Once the problem is resolved I will delete the local site.

**IMPORTANT**
- Please make a backup of site files and database before providing us access.
- If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields.

Best Regards,
Otto

May 15, 2025 at 2:32 pm #17037458

eventL

Looks like in above message the PATH is added to the Server IP. This should be seperated. So only the IP to login not the path after and with //

May 15, 2025 at 6:50 pm #17038481

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

I took a new copy of your site (I finally used Updraft Plus, the other plugins failed). And deployed it locally. And it just worked. Take a look at the screenshot attached.

So, I suspect a caching issue, some server optimizations that may be manipulating JS code, or, as I needed to disable domains per language, the URL format.

Can you please check that? Switch for a moment to languages in directories in WPML > Languages > Language URL format and check if the fields appear in the checkout.

If not, can you please confirm if there is any server caching or optimization in place?

Best Regards,
Otto

CleanShot 2025-05-15 at 15.44.23.png
May 16, 2025 at 9:14 am #17040474

eventL

Thanks for the response!

Its not an option to not use language per domain as we have like 6 domains that just need a different language, all works fine to only that little stupid attribute of the product add-on does not work besides the main site eancodeshop.co.uk.

We have a litespeed server but don't use any caching so caching is ruled out.
It does have many JS code located at the snippets but it does not seem to handle the attributes/product add-on texts. Its most likely a WPML issue.

Also for eancode on stickers it does work.
Only on buy eancodes products its doing something why it dont work in cart and checkout.

I just debugged something and it might be the reason.

For stickers the variation class in the cart (which works) is the same:

<dl class="variation">
<dt class="variation-EANCODES">EAN CODES:</dt>
<dd class="variation-EANCODES"><p>5 EAN CODES</p>
</dd>
<dt class="variation-STICKERS">STICKERS:</dt>
<dd class="variation-STICKERS"><p>250 Aufkleber</p>
</dd>
</dl>

BUT for buy eancodes products it seems to be translated as well.

<dl class="variation">
<dt class="variation-WievieleAufkleberproEAN-Code">Wie viele Aufkleber pro EAN-Code?:</dt>
<dd class="variation-WievieleAufkleberproEAN-Code"><div><span></span> (+€69,21)</div>
</dd>
<dt class="variation-BrauchenSieAufkleber">Brauchen Sie Aufkleber?:</dt>
<dd class="variation-BrauchenSieAufkleber"><div><span></span></div>
</dd>
</dl>

You see how the varation class is tanslated, maybe if its just same as english version it works 🙂

so this is english working version varation:

<dl class="variation">
<dt class="variation-HowmanystickersperEANcode">How many stickers per EAN code?:</dt>
<dd class="variation-HowmanystickersperEANcode"><div>50 stickers (+£42.83)</div>
</dd>
<dt class="variation-Doyouneedstickers">Do you need stickers?:</dt>
<dd class="variation-Doyouneedstickers"><div>Yes</div>
</dd>
</dl>

I dont think WPML has to translate those classes, that might break it 🙂

Hope i helped but still cant fix it myself as my knowledge of WPML is very limited.

Kind regards,
Timo

May 16, 2025 at 3:07 pm #17042613

Otto
WPML Supporter since 09/2015

Languages: English (English ) Spanish (Español )

Timezone: America/Argentina/Buenos_Aires (GMT-03:00)

Hello,

Thanks.

It does not look related to the class either. Locally, I have the same, and it's working 🤔. Check the screenshot attached.

I also tried locally setting a domain per language, and it still works. Check the other screenshot.

The local clone works flawlessly, so the problem seems linked to something that exists only on the live LiteSpeed server (caching/optimisation, object-cache, HTTP headers, or domain rules) rather than to WPML + YITH themselves.

In the production site, I don't see any errors on the console. Can you please check if there is any PHP error:
Please follow the instructions mentioned on this page: https://wpml.org/documentation/support/debugging-wpml/
Then, go to the checkout and check your installation's **wp-content** folder to see if a file named **"debug.log"** was created (it will only be generated if a server error occurs).
If the file was created, please upload it to a platform like **Google Drive** or **Dropbox** (whichever you usually use) and share the link with me (make sure it is publicly accessible) so I can analyze it.

It's hard for me to test and debug things as the problem is not happening in my local environment. Is it possible for you to provide us with a staging site where the issue is reproduced?

Best Regards,
Otto

CleanShot 2025-05-16 at 11.24.44.png
CleanShot 2025-05-16 at 11.14.28.png
May 17, 2025 at 9:49 am #17044105

eventL

Thank you so much for the help so far!

Done everything you asked but there are no errors in debug.log.

Checked litespeed config, htacces etc, even disabled it but still same issue.

Maybe this is a clue:

Addon ID 3, option ID 0 = "250 stickers"

That option exists and is saved in the DB

But in translated products, even though the product translation exists, the addon option ID may not resolve, especially if:

1. WPML didn't duplicate WAPO data

2. Translations are not linked

3. The value doesn't exist in the localized context

May 20, 2025 at 9:32 am #17051710

Andreas W.
WPML Supporter since 12/2018

Languages: English (English ) Spanish (Español ) German (Deutsch )

Timezone: America/Lima (GMT-05:00)

Hello,

My colleague Otto is currently on vacation which is why I am assisting you today.

I tried to connect to the site, to take a closer look at the settings and possibly take a local copy, but it says that the user no longer exists.

Could you please provide me access again, so that I can investigate further?

The private reply form is enabled again.

In case you need an email to create a new admin account, please feel free to use:

andreas.w@onthegosystems.com

Best regards
Andreas

The topic ‘[Closed] YITH WooCommerce Product Add-ons & Extra Options Premium’ is closed to new replies.