Skip Navigation

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

Problem:
The client is experiencing incorrect product quantities displayed next to the WooCommerce product filter in languages other than the default language on their website.
Solution:
To address this issue, follow these steps:
- Navigate to Products -> Attributes.
- Click "Configure terms" to access the "Kompatybilność" attribute terms.
- Click on the number of products next to the problematic term to view all products in this term.
- Select all products.
- From the "Bulk Actions" dropdown menu, choose edit.
- Change the status to "Publish" and update them.

If these steps do not resolve the issue or if the solution seems outdated or irrelevant to your specific case, we recommend opening a new support ticket. We also highly recommend checking related known issues at WPML Known Issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. For further assistance, please visit our support forum at WPML Support Forum.

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

Last updated by przemyslawD-3 5 months, 4 weeks ago.

Assisted by: Osama Mersal.

Author Posts
August 29, 2024 at 11:50 am #16119743

przemyslawD-3

Background of the issue:
I have a problem with the WooCommerce product filter in each language (apart from the basic language) on my site hidden link. The product quantities next to the filter are incorrect. For example, it shows two products when the correct value is four. An example can be seen here: hidden link. I am following the documentation at https://wpml.org/forums/topic/woocommerce-color-filter-not-working-correctly-2/.

Symptoms:
The product quantities next to the WooCommerce product filter are incorrect in each language except the basic language.

Questions:
Why are the product quantities next to the WooCommerce product filter incorrect in each language except the basic language?
How can I fix the incorrect product quantities displayed by the WooCommerce product filter?

August 29, 2024 at 2:40 pm #16120662

przemyslawD-3

I did all the steps step by step, unfortunately it did not solve the problem 🙁

September 1, 2024 at 9:25 am #16128611

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for contacting WPML forums support. I'll be glad to help you today.

First of all, sorry for the late reply; it was due to a higher workload.

I would need to look closely at your site, so I would need to request temporary access (WP-Admin and FTP)
Preferably to a test site where the problem has been replicated.

Your answer will be private, meaning only you and I can access it.

❌ Please backup your database and website ❌

✙ I need your permission to deactivate and reactivate the plugins and themes and change site configurations. This is also why the backup is critical.

✙ I also need your permission to take a local copy of your site to debug the issue without affecting your live site.

Best regards,
Osama

September 2, 2024 at 11:20 am #16131196

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Thanks for the access details. I Synchronized the attribute from the WooCommerce Multilingual-> Attributes tab.

This fixed the issue for the English language. Kindly check this hidden link">page.

Best regards,
Osama

September 2, 2024 at 12:19 pm #16131541

przemyslawD-3

Ok, I don't know why, but I tried this before and it didn't work. I don't know what exactly you did, but etraz one of the translations is missing (Switzerland) and I see a critical error when editing the translation 🙁

Zrzut ekranu 2024-09-02 141621.png
Zrzut ekranu 2024-09-02 141633.png
September 2, 2024 at 12:29 pm #16131584

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I checked the site and re-added the Switzerland language. Please check if it works correctly.

Best regards,
Osama

September 2, 2024 at 12:34 pm #16131600

przemyslawD-3

Not really. I see the language, but the translation on the page is wrong (part is Polish, part is English). Everything should be in German (except the currency).

Zrzut ekranu 2024-09-02 143144.png
September 2, 2024 at 12:43 pm #16131665

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

Please check this hidden link">product and let me know which strings have not been translated.

Best regards,
Osama

September 2, 2024 at 12:51 pm #16131691

przemyslawD-3

On the yellow on screen & cookie banner.

Zrzut ekranu 2024-09-02 144844.png
Zrzut ekranu 2024-09-02 144944.png
Zrzut ekranu 2024-09-02 145005.png
Zrzut ekranu 2024-09-02 145018.png
September 2, 2024 at 1:04 pm #16131804

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I translated some of these strings via WPML-> String Translation. Please let me know how the "The product has no reviews" string and the cookie banner are added to the default language to check how they can translated.

Best regards,
Osama

September 2, 2024 at 1:17 pm #16131851

przemyslawD-3

Cookie banner: CookieYes | GDPR Cookie Consent plugin
Trust mate: TrustMate.io integration for WooCommerce

But there is more thing withaut translation (checkout form, etc.). Maybe it will be easier to restore database and start once again?

Zrzut ekranu 2024-09-02 150933.png
Zrzut ekranu 2024-09-02 151016.png
September 2, 2024 at 1:22 pm #16131884

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

If you have a recent backup, you can do so.

Please take a backup of the current database first.

Best regards,
Osama

September 2, 2024 at 1:31 pm #16131971

przemyslawD-3

Ok, I suggested restoring the database too soon. In the meantime, orders came to the store, and a colleague changed some things, and restoring the database from 6 a.m. is not the best idea if it is not necessary.

It will be easier to translate the forms. I will take care of it myself. However, the original problem is still not solved - on versions other than Polish and English it still shows incorrect quantities of products.

September 2, 2024 at 1:54 pm #16132122

Osama Mersal
Supporter

Languages: English (English ) Arabic (العربية )

Timezone: Africa/Cairo (GMT+02:00)

Hi,

I updated the translations, and the filter appeared to be correct. Please check the hidden link">German page.

Best regards,
Osama

September 3, 2024 at 10:46 am #16135040

przemyslawD-3

Two things:

1) Can you write exactly what (or how) you refreshed the attributes? It's strange that I've done this many times and it doesn't work.

2) I still have a problem with the translation to Switzerland. And even with another translation - I just can't find the basic strings. For example this one below - it's translated to every language (except Swiss version), but I can't find it in the string translation. I tried to scan plugins, theme, find it in the admin translation panel and there's nothing.

This string shows up after adding a product to the cart.

Edit: if I tried to scan woocommerce .mo it's stopoing at keep bufforing at -134.

Zrzut ekranu 2024-09-03 125236.png
Zrzut ekranu 2024-09-03 124327.png