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.

This topic contains 3 replies, has 2 voices.

Last updated by Ahmed Mohammed 1 year, 7 months ago.

Assisted by: Ahmed Mohammed.

Author Posts
April 25, 2023 at 8:02 am #13531279

henryC-13

Hello,

I have a multilanguage (EN, DE, IT, SV) and multicurrency (EUR, SEK) site.

I set up 2 shipping zones through Flexible Shipping plugin.

These are:
Sweden: shipping fee 120 SEK, free over 600 SEK
Rest of the world: shipping fee 15 €, free over 60 €

All the settings are based on the main currency (EUR), but swedish customers are served with prices in their currency (SEK) that are calculated converting from Euro at the conversion rate set up in WooCommerce Multilingual & Multicurrency (1 EUR = 11 SEK). So in the Flexible Shipping setup for Sweden I put the values in Euro that determine the correct value in SEK after the conversion.

Everything works fine when:
– the cart total is immediately lower than 600 SEK, the 150 SEK fee is applied.
– the cart total is immediately greater than 600 SEK, free shipping is applied.

The problem arises when the cart total is less than 600 SEK and I update the cart by adding more units of the same product in order to exceed the 600 SEK limit.

In this case the free shipping is correctly applied but also a 120 SEK fee is added.

If I refresh the page using the browser refresh button or proceed to checkout page the wrong fee disappears and real free shipping is correctly applied.

I already checked with the guys from Flexible Shipping that everything works fine from their plugin's side.

I also figured out how those 120 Kr are being calculated:

- shipping methods are set to “taxable”
- prices are entered including VAT
- VAT for Sweden is 25%

=>25% of 150 Kr is 30 Kr => 150 - 30 = 120!!!

So it looks like a reverse calculation that excludes the tax amount is made on cart update.

For your information, this happens:
- both with my child theme, parent theme and Storefront theme, but not with Twenty Twenty-Three theme
- only with the shipping method for Sweden, which is calculated in the secondary currency (SEK). The shipping method for the rest of the world (in EUR) works fine, also on cart update.

Can you please help with this?

Thank you

quantity-morethan600kr.png
quantity-lessthan600kr.png
April 26, 2023 at 11:37 am #13540777

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi there,

Thank you for contacting WPML support!

Before assigning your ticket to one of my colleagues, I have created the following sandbox website hidden link - please use that quick login URL to reproduce the issue with the Flexible Shipping plugin.

I have checked our records, and I could not find any similar reported issue with the compatible plugin Flexible Shipping, so that it could be a new issue introduced by a new release of one of the involved plugins here.

I have also activated the Storefront theme on the sandbox website, so please install the Flexible Shipping plugin and configure the shipping options where the issue can be seen.

Looking forward to hearing back from you.

April 26, 2023 at 1:53 pm #13541747

henryC-13

Hi Ahmed,

thank you for your answer.

I used the sandbox you provided to do some more testing and the results confirm what I discovered through further testing I made on my staging site while waiting for your response.

That is: i think the culprit is Elementor PRO.

On the sandbox site I activated WPML + WooCommerce + Flexible Shipping, and everything works fine.
Then I tried activating Elementor (free), and everything still work fine.

I can't upgrade to Elementor PRO on the staging site so I can't prove this here. But if I follow the same steps on my staging site and at this point activate Elementor PRO, then the wrong shipping fee appears.

So this makes me think that the issue is related to Elementor Pro.

What do you think?

April 28, 2023 at 2:15 pm #13558041

Ahmed Mohammed
Supporter

Timezone: Africa/Cairo (GMT+02:00)

Hi Henry,

So this makes me think that the issue is related to Elementor Pro.

Thank you for running those tests and verifying that the problem lies with Elementor Pro.

My recommendation would be to contact their support team (hidden link) and have them investigate the issue.

If they indicate that the issue is with WPML plugins, please ask them to provide as much information as possible and we'll be happy to investigate.

Hope that helps 🙂