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

Supporter timezone: Asia/Jerusalem (GMT+02:00)

This topic contains 5 replies, has 3 voices.

Last updated by Itamar 1 year, 2 months ago.

Assisted by: Itamar.

Author Posts
September 13, 2023 at 9:44 am #14388757

jakubZ-14

Good morning,
on the website hidden link there is a problem with your WPML String Translation plug-in. The situation occurs, for example, when trying to purchase the product Green Wallbox 2 Pro Slim 22kW (hidden link). When the "Extended warranty up to 5 years (+PLN 699.00)" option is selected in the PL language version, only the product itself is added to the cart - without the previously selected warranty. This problem does not occur on the EN version of the website - hidden link

We are also sending you a screenshot of the WooCommerce Product Add-ons plug-in settings.

screencapture-greenwallbox-pl-wp-admin-edit-php-2023-09-13-10_52_54.png
September 14, 2023 at 12:24 pm #14396975

Christopher Amirian
Supporter

Languages: English (English )

Timezone: Asia/Yerevan (GMT+04:00)

Hi there,

Before this ticket is assigned to a support I'd be happy to answer initially.

We have a report regarding the Product Add-on plugin, but I am not sure it is 100% like your case or not.

I suggest that you check this temporary solution to see it works for you:

- IMPORTANT STEP! Create a backup of your website. Or better approach will be to test this on a copy/staging version of the website to avoid any disruption of a live website.
- in the file: wp-content\plugins\woocommerce-multilingual\compatibility\WcProductAddons\MulticurrencyHooks.php
- Replace:

add_filter( 'wcml_cart_contents_not_changed', [ $this, 'filter_booking_addon_product_in_cart_contents' ], 20 );

- With:

//add_filter( 'wcml_cart_contents_not_changed', [ $this, 'filter_booking_addon_product_in_cart_contents' ], 20 );

See if it helps A robust solution will be available on the upcoming versions of the plugin.

September 20, 2023 at 5:27 am #14426133

jakubZ-14

Hi,
I used your solutions. But before applyeing i updated whole woordpress/plugins/themes. It does not work. When I add my product in the Polish version, the addition is not added to the cart.
hidden link
vs
hidden link

September 20, 2023 at 10:54 am #14429507

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

I'll continue to help you with this issue. I can see the problem you are describing on your site. Indeed, it happens in the Polish language of the site and does not occur in English. But Polish is your site's default language; therefore, I'm uncertain whether WPML and WooCommerce Multilingual & Multicurrency cause the issue.

Did you originally create this product in Polish or in English?
I'm trying to understand if it was originally created in English and translated into Polish.

Also, please tell me which plugin enables you to add this warranty to the product.

In the title and first post, you mentioned that the problem is because of Strings Translation.
Can you please explain why you think this is a Strings Translation problem?

Regards,
Itamar.

September 20, 2023 at 11:46 am #14429795

jakubZ-14

Hi,
we tried to debug (changing theme - same efect) and that we tried by disabling addons (one by one).
Disabling Strings Translation fixed the issue (but there was no translation of addon).

Post id for polish version 6093, for english 7217. So i thing that polish version was base for translation.

Can i give you an access to admin dashboard?

September 21, 2023 at 2:26 pm #14440421

Itamar
Supporter

Languages: English (English ) Hebrew (עברית )

Timezone: Asia/Jerusalem (GMT+02:00)

Hi,

You tested it in the wrong way. Strings Translation should stay active. Please test it in the following way.

I suspect that there is a collision with the theme or another plugin that might cause this problem. If possible, get your site into a minimum environment. Minimum environment means switching to a default WordPress theme like TwentyTwenty-One and no plugins activated except WPML.

First, you will need to check if the problem persists when the theme is switched to TwentyTwenty-One. If it persists, then deactivate all plugins except the WPML, its add-ons, and WooCommerce itself (without its extensions), only leaving the WooCommerce Product Add-ons plugin active. Then please check if the problem persists. If it does not persist, start by activating the plugins one by one and check when the problem comes back, then report to me which was the culprit plugin.

**** Important! Please make a full site backup (files and DB) before you proceed with those steps****


*** If your site is live, you might want to try those procedures in a staging environment or a snapshot of your site on your local server or another server. ***

The topic ‘[Closed] Problems with plugin WPML String Translation’ is closed to new replies.