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
10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 10:00 – 14:00 - -
16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 16:00 – 20:00 - -

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

This topic contains 0 reply, has 0 voices.

Last updated by Itamar 1 month, 1 week ago.

Assisted by: Itamar.

Author Posts
April 30, 2025 at 4:19 pm

turismeR

Background of the issue:
I am trying to set up a WooCommerce flat-rate shipping method with a base cost of 0 € and a shipping class 'guia' that costs 5.70 €. The prices are entered without tax, and with VAT at 21%, the total should be 6.90 € in every language. However, when I open the method with the admin language set to Catalan and click Save, WPML rewrites class_cost_463 to 6.9 in wp_options, causing issues. Direct database edits only work until WPML saves again. I found similar issues in WPML tickets #65774 and #70528 but no public fix.

Symptoms:
Each time I open the method with the admin language set to Catalan and click Save, WCML rewrites class_cost_463 to 6.9 in wp_options, causing the Catalan subtotal to become 8.10 € instead of 6.90 €.

Questions:
How can I prevent WCML from overwriting the class cost in the secondary language?
Is there a workaround to maintain the correct shipping cost in Catalan?
Are there any updates or fixes available for the issue reported in WPML tickets #65774 and #70528?

April 30, 2025 at 5:19 pm
April 30, 2025 at 5:35 pm #16985059

Itamar
WPML Supporter since 02/2016

Languages: English (English )

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

Hi,

I am providing two options for further investigation of this issue. The first step is to debug this issue on the staging site once it is ready. And it is to determine whether there is a unique problem on your site. The second option is to replicate this problem from scratch on a fresh WordPress installation with WooCommerce and WPML. This option is to determine whether we have a problem that we have not yet spotted.

A. We suspect a collision with the theme or another plugin might cause this problem. If possible, get your site into a minimum environment, switching to a default WordPress theme like TwentyTwenty-Four and having no plugins activated except WPML.

First, you must check if the problem persists when just the theme is switched to TwentyTwenty-Four (for example). If it persists, deactivate all plugins except WPML and its add-ons and WooCommerce without any extensions. Then, please check if the problem persists. If it does not persist, start by activating the plugins individually and checking when the issue comes back, then report to me which plugin was the culprit.

**** 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. ***

B. We need to replicate this issue on a fresh WordPress installation. Then I'll be able to escalate it to our compatibility team. To achieve this, I created a test website with a clean WordPress installation. You can access it through this link:

hidden link

With this link, you'll be directly logged in.

I already configured WPML to have Catalan as the default language and Spanish as the second language, the same as on your site. Please configure WooCommerce as it is set on your site (just the basic configurations needed to replicate the issue are sufficient).

When everything is finished and you can replicate the problem, please let us know.

Important! Do not import your site to the test site. We must replicate the problem on a fresh, clean WordPress installation.

Regards,
Itamar.

The topic ‘[Closed] Flat-rate “class cost” is overwritten in the secondary language (Catalan) when WCML saves the me…’ is closed to new replies.