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.
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.
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?
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.
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.
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 €)
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.
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)?
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)"
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!
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.