[Resolved] Shipping cost for specific countries cannot be calculated
This thread is resolved. Here is a description of the problem and solution.
Problem: If you're experiencing issues with shipping cost calculations in the translated version of your WooCommerce store, specifically for the EU zone, where the shipping cost cannot be calculated while other zones work fine, follow the steps below for a potential fix. Solution: 1. Go to your shipping settings. 2. Change the shipping calculation from "per order" to "per class". 3. Save the changes. 4. Then, switch it back from "per class" to "per order" and save again. 5. Test to confirm if the issue is resolved.
Please note that this solution might be irrelevant if it's outdated or not applicable to your case. 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 the problem persists, please open a new support ticket.
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 trying to set up shipping zones in WooCommerce with different shipping costs for Germany, EU, outside EU, and Rest of World. In the checkout of the translated version of our store (English), the shipping cost for the EU zone cannot be calculated. This issue does not occur in the original version of our store (German), where it works for all zones, including the EU zone. Link to a page where the issue can be seen: hidden link
Symptoms:
On the translated site, the shipping cost for the EU zone cannot be calculated, while it works for all other zones and in the original German version.
Questions:
Why is the shipping cost for the EU zone not being calculated on the translated site?
How can I fix the shipping cost calculation for the EU zone in the translated version?
While one of my teammates handles your ticket, I will provide you with initial debugging steps.
Please update your WPML plugin and add-ons to the latest version, 4.7.2, to benefit from the latest bug fixes and improvements. This may not necessarily resolve your problem; however, we need to work on the newest code available to troubleshoot the issue best.
You can check the latest released versions under "My Account -> Downloads" on this site. Instructions to update can be found here: http://wpml.org/faq/install-wpml/
If you do not see the updates, you might need to click the Check for updates button in the Plugins → Add New Plugin → Commercial tab.
Please remember to backup your database before you proceed.
Let us know if the issue persists after an update has been done.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
Did you only set shipping zones like this, so within WooCommerce -> Settings -> Shipping zones? I tried this on my localhost and it works properly without any additional setup needed.
Can you please check if this issue appears when:
- only WPML plugins and WooCommerce (disable all the other WooCommerce addons) are activated, as it will tell us if there is an interaction issue with other plugin
- theme is set to a WordPress default like Twenty Twenty as it will tell us if there is an interaction issue with your theme
Maybe Germanized or some other WooCommerce plugin on your site affects this somehow.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
To troubleshoot this problem, I'll install the Duplicator plugin and generate packages for further debugging purposes. I'll ensure to exclude all media files to maintain a minimal package size.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
This has been escalated to our 2nd tier team team and may take some debugging time, I'll get back to you as soon as I have any news or questions for you.
Languages: English (English )German (Deutsch )French (Français )
Timezone: Europe/Zagreb (GMT+02:00)
The issue seems to resolve itself after editing the shipping property—specifically by changing the setting from "per order" to "per class", and then switching it back to "per order". This effectively resets the configuration. We already applied this fix on your staging site, so you can test it there.
1. Go to your shipping settings.
2. Change the shipping calculation from "per order" to "per class".
3. Save the changes.
4. Then, switch it back from "per class" to "per order" and save again.
5. Test to confirm if the issue is resolved.