Skip to content Skip to sidebar

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

Problem:
The client is experiencing issues with WooCommerce functionalities on their Greek version of the site. Specifically, the minimum product quantity that can be added exceeds the actual stock, and the Availability Section is not displayed after selecting a product variation.

Solution:
We discovered that disabling the WPML String Translation plugin resolved the issue. The problem was likely due to incorrect translation of strings that are not meant to be translated because they are related to settings, not text. For example, strings like

woocommerce_allowed_countries

and

woocommerce_notify_no_stock_amount

should not be translated. We recommend the client to delete all such strings from the String Translation table. If the issue persists after cleaning up the table, we suggest setting up a test site with WPML to further investigate the problem. It may also be helpful to contact the plugin provider, such as Chrocoblock, for assistance with testing their plugin on the test site.

Please note that this solution might be outdated or not applicable to your case. If the issue persists, we highly recommend checking the related known issues, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If necessary, do not hesitate to open a new support ticket 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 40 replies, has 2 voices.

Last updated by Andreas W. 1 year, 5 months ago.

Assisted by: Andreas W..

Author Posts
February 1, 2024 at 4:19 pm #15255894

gkionousG

I need a little help. I use wpml, my original version is .com (english) and the secondary is .com/el/ (greek), some woocommerce functionalities do not work as expected.

1. The minimum products that can be added normally in the original version, in the greek version although our stock is defined we can add more than the actual stock.

2. The Availability Section (for example after choosing a size: 2 in stock) is not displayed in the greek version

English version:
hidden link

Greek version:
hidden link

**the greek actually can redirect you, so re-enter to verify it for yourself that you are using greek version too.

1. try to select one variation in each version:

greek version does not show availability (a2)

english version shows availability (a3)

2. also try to add more than the actual stock that we set for a variation, you will see it keeps adding although we dont have that amount of stock, (check english version there it works normally)

(a2 and a3 are the screenshots provided)

a3.png
a2.png
February 1, 2024 at 5:37 pm #15256259

Andreas W.
WPML Supporter since 12/2018

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

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

Hello,

With out addon "WCML" the stock should be in sync and always remain equal between original products and translations.

Do you see any notifications about config issues at WooCommerce > WooCommerce Multilingual & Multy-Currency?

Do you see any new custom fields that relate to WooCommerce addons at WPML > Settings > Custom Field Translation?

If so, make sure that those fields are set to "copy" so that WPML will copy their values when translating your products.

Let me know if further assistance is required.

Best regards
Andreas

February 2, 2024 at 9:02 am #15258196

gkionousG

Hi!

I dont see any notifications about config issues at WooCommerce > WooCommerce Multilingual & Multy-Currency!

For the custom fields that relate to WooCommerce addons at WPML > Settings > Custom Field Translation , please check the below screenshot and advise me for which field what to choose

SCREEN.png
February 2, 2024 at 2:48 pm #15259767

Andreas W.
WPML Supporter since 12/2018

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

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

Set the following fields to "copy":

- individual_use
- usage_count
- usage_limit
- usage_limit_per_user

Then apply the translation for one of the affected products again.

If this still does not solve all the issues I can offer to have a closer look at the site or even better a staging site.

February 2, 2024 at 3:06 pm #15259882

gkionousG

the problem still didnt fix...

February 2, 2024 at 3:26 pm #15260008

Andreas W.
WPML Supporter since 12/2018

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

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

Hello,

I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.

You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.

IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.

The private response form looks like this:
hidden link

Next time you reply, click "I still need assistance."

Video:
hidden link

Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.

Best regards
Andreas

February 2, 2024 at 5:57 pm #15260654

Andreas W.
WPML Supporter since 12/2018

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

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

Regarding stock:

Take note that we have currently the following known issue:
https://wpml.org/errata/woocommerce-multilingual-variable-product-stock-status-is-not-updated-when-it-gets-out-of-stock-in-the-second-language/

For example, on product "91" I can not confirm an issue regarding stock.

For example, the product has in size L two available products in each language on the backend and I have not any issue with adding those products in Greek to the cart.

It is not possible in any language to add more than 2 products to the cart, as this is the declared stock for this variation and it is synced between languages, as expected.

The only issue seems to be a display issue, that is related to your product template from JetWoo Builder or even another plugin.

I am referring with this to the text:

"Availability: Only 2 left in stock"

This text does not show up in Greek, even though it is translated on WPML String Translation.

In order to investigate this issue I will try to create a copy of your websiote for testing it on a virtual server and then get back to you.

February 2, 2024 at 6:18 pm #15260753

gkionousG

Thank you for your prompt response and for the information regarding the known issue with WooCommerce Multilingual variable product stock status. I appreciate your efforts in diagnosing the issue with product "91" and your insight regarding the potential display issue related to JetWoo Builder or another plugin.

However, I must report that the stock issue seems to persist under certain conditions. Specifically, for product size "S," it appears that in the Greek version of the site, it's possible to add more than the declared stock of 2 items to the cart, which contradicts the functionality observed in the English version, where the limit is enforced as expected. This discrepancy suggests that the problem extends beyond a simple display issue.

Given the complexity of this matter and its impact on our e-commerce operations, I kindly ask if you could investigate this particular aspect further. Your initial assessment has been invaluable, and I believe we might be overlooking a scenario where the stock synchronization fails under specific configurations or interactions with other plugins.

Moreover, I welcome your initiative to create a copy of the website for testing on a virtual server. I am hopeful that this approach will yield insights into both the display issue related to the availability text not showing up in Greek and the underlying stock management discrepancies.

Please let me know if there's any information or assistance I can provide to facilitate this process. Your support is crucial to us in ensuring a seamless shopping experience for our customers across all languages supported by our site.

Looking forward to your findings and recommendations.

AA.png
February 2, 2024 at 6:38 pm #15260832

Andreas W.
WPML Supporter since 12/2018

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

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

Yes, both issues seem connected, as the availability feature is not working on the translated product.

I am about to test the site on localhost and will get back to you later about it.

February 2, 2024 at 7:30 pm #15261014

gkionousG

okay, thanks for the verification and the clarificaiton with the ongoing issue, waiting for your response asap!

February 2, 2024 at 11:15 pm #15261459

Andreas W.
WPML Supporter since 12/2018

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

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

On a copy of your site, the issue remains when testing only with the Twenty Twenty-Four Theme, WooCommerce, Elementor, JetWooBuilder For Elementor, and WPML plus our addons.

This seems to be an issue between JetWooBuilder For Elementor and WPML.

Would you be able to install the latest version of JetWooBuilder For Elementor on a test site which I will provide, to try to recreate the issue and then escalate it internally?

February 5, 2024 at 8:49 am #15264604

gkionousG

Yes, please! I see that the Jetwoo builder is in its latest version on my live site.
But of course, let's try on the test site you will provide

as.png
February 6, 2024 at 1:20 pm #15271961

Andreas W.
WPML Supporter since 12/2018

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

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

Thank you!

I need this test site to confirm a general issue and escalate it together with a copy of this test site to our compatibility team.

One-Click-Login:
hidden link

Please do not migrate your whole website to this test site. I only need you to install "JetWooBuilder For Elementor" in its latest available version and you recreate the issue with a simple example.

In case Elementor PRO is required, I would appreciate it if you could install and activate Elementor PRO by using your Elementor account for this testing purpose.

The test site will be deleted automatically after not having been accessed for more than 7 days.

Please leave me a short message on this ticket, once you have set up the site.

Best regards
Andreas

February 6, 2024 at 2:53 pm #15272460

gkionousG

HI! i just installed the plugin and activated the licence for "JetWooBuilder For Elementor"

February 6, 2024 at 2:54 pm #15272463

gkionousG

i have this message now here. should i create the greek version of the product? or will you do it?\

b1.png