Skip Navigation

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

Problem:
You are developing a site using WooCommerce and WPML and are trying to set shipping rates by currency. You need to know how to access specific fields in your shipment and whether you can disable automatic price calculation to set separate prices for EUR and CZK.
Solution:
It is not possible to disable automatic conversion rates per currency. However, you can set different shipping costs per currency by navigating to WooCommerce → Settings → Shipping → Shipping Zones → Edit Shipping Methods. For more details, visit Multi-Currency Support in WooCommerce.

If you are using a custom shipping method, a custom integration is necessary as WPML does not provide a public API for this. Currently, manual secondary currency shipping prices are only supported for 'Flat Rate', 'Free Shipping', and 'Local Pickup'. You might consider a custom solution with one of our recommended contractors, which you can find here: WPML Contractors.

For official documentation on WCML, please refer to WCML Hooks Reference.

If this solution does not apply to your case, or if it seems outdated, we highly recommend checking related known issues at https://wpml.org/known-issues/, verifying the version of the permanent fix, and confirming that you have installed the latest versions of themes and plugins. If further assistance is needed, please open a new support ticket 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.

This topic contains 4 replies, has 0 voices.

Last updated by Bruno Kos 4 months, 1 week ago.

Assisted by: Bruno Kos.

Author Posts
February 19, 2025 at 8:33 pm #16726716

ivoM-5

Background of the issue:
I am developing a site using WooCommerce and WPML. I have my own shipping method and I am trying to set shipping rates by currency.

Symptoms:
I don't know how to get specific fields in my shipment, and I am unsure if it's possible to disable automatic price calculation to create separate EUR and CZK prices.

Questions:
Is it possible to get specific fields in my shipment?
Is there an option to disable automatic price calculation for my shipping method to create separate EUR and CZK prices?

February 20, 2025 at 1:42 pm #16729889

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Hi,

It is not possible to disable automatic conversion rate per currency - it goes like this:
https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#configuring-custom-prices-for-different-currencies

However, if you set WPML’s WooCommerce Multi Currency, you can define different shipping costs per currency under: WooCommerce → Settings → Shipping → Shipping Zones → Edit Shipping Methods.

WooCommerce Multilingual & Multicurrency by default will multiply all your costs and values defined above by currency exchange rates. If you don't want this and you prefer static values instead, you can define them here - see my image.

Can you tell me if this helps?

shipping.png
February 24, 2025 at 2:26 pm #16741552

ivoM-5

Yes, I would like it as you sent in the picture, but I don't have that option. I assume that I have to add something "action" to my custom module to load these fields.

February 24, 2025 at 3:10 pm #16741840

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

You need WooCommerce Multilingual & Multicurrency for it.

https://wpml.org/download/woocommerce-multilingual-multicurrency/?section=changelog

But you can install it from WordPress directly as well - see my screenshot.

update.png
February 27, 2025 at 10:35 am #16755192

ivoM-5

I have the latest versions, I'll try to explain it again, I don't know if we understand each other.

This is the default SHIPPING from woocommerce, here I see these fields
hidden link

And this is my shipping plugin, and I don't have these fields here. I need to know if it's possible to get your fields there, if not, I'll create Fields price EUR price CZK and set these prices in the checkout (I tried that too, but then it recalculates the price for me. For example, 200 CZK is 5 EUR and in the checkout it gives me 5/ exchange rate and it costs me 0.19 €)

hidden link

February 27, 2025 at 12:54 pm #16756107

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Would you be willing to provide me with WordPress credentials so I could investigate the issue directly?

I can check with our 2nd tier on what is needed to make a custom plugin compatible there, but it may be no trivial fix and not within the scope of our support.

Also tell me what is the name of your shipping plugin that should manage this.

https://wpml.org/purchase/support-policy/privacy-and-security-when-providing-debug-information-for-support/

I marked your next reply as private so that you can safely add credentials.

March 4, 2025 at 8:37 am #16771891

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

Ok, so you want to have the same options for Doručení přes kurýra GLS (Yes
Lets you charge a fixed rate for shipping.) and Doručení přes kurýra GLS (Zásielka na adresu kuriérom GLS)?

flatrate1.png
nooptions.png
March 4, 2025 at 8:49 am #16772012

ivoM-5

yes, I want to have the option like in " Doručení přes kurýra GLS zdarma " (it is created via flat rate) and my own shipping is called Doručení přes kurýra GLS (New) (I renamed it to be clearer and here I need the same fields for shipping

we need these fields as shown in the image "Doručení přes kurýra GLS (New)"

SCR-20250304-jbfc.png
March 4, 2025 at 2:10 pm #16774566

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

I am checking this with our 2nd tier and will keep you posted.

March 6, 2025 at 5:59 am #16781071

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

I checked with our developers, and for a custom shipping method, a custom integration would be required. However, we do not have a public API available for this.

Currently, we only support manual secondary currency shipping prices for 'Flat Rate,' 'Free Shipping,' and 'Local Pickup.'

That being said, the only alternative would be to explore a custom solution with one of our recommended contractors: https://wpml.org/contractors/.

Please let us know if you have any other questions!

March 6, 2025 at 7:49 am #16781518

ivoM-5

Hi, thank you, can you provide me with the API documentation? I'll figure it out.

March 6, 2025 at 12:51 pm #16783328

Bruno Kos
WPML Supporter since 12/2018

Languages: English (English ) German (Deutsch ) French (Français )

Timezone: Europe/Zagreb (GMT+02:00)

The only official documentation available for WCML can be found here: https://wpml.org/documentation/related-projects/woocommerce-multilingual/wcml-hooks-reference/.

Beyond this, any internal documentation is likely dispersed throughout the codebase and used as needed. Because of this, consolidating it into a comprehensive public resource may not be feasible.