[Resolved] Shipping classis not working as expected in translated domains
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with shipping costs not being calculated correctly on the .de and .com domains of their WooCommerce site. While the shipping costs are displayed correctly on the main .nl domain, switching to German or English translations results in incorrect or missing shipping costs. Solution: 1. We recommend putting the site into maintenance mode and disabling all plugins. 2. Reactivate the plugins one by one to identify if any specific plugin is causing the conflict. 3. If the issue persists, clear the Object Cache. 4. If the problem still occurs, it might not be related to WPML. We suggest consulting with WooCommerce Support for further assistance.
Please note that this solution might be outdated or not applicable to your specific 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 issue persists, please open a new support ticket at WPML support forum.
0% of people find this useful.
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.
<b>Background of the issue: </b>
I have set up shipping classes for different products and assigned these to these products. My shipping method has a different price for each shipping class and it will take the most expensive one. This works fine for the main domain, the .nl one. However, when I switch to .de or .com, the shipping class cost is no longer properly calculated. This used to work fine and now for my new shipping class it seems to be broken. Link to a page where the issue can be seen:
Steps to reproduce:
1. Add 5L variant of IJzerchloride to cart: hidden link
2. Go to cart.
3. Confirm that shipping cost to Netherlands is 9,95
4. Switch to german translation using button on top of page
5. See that shipping cost is empty
6 Switch to english translation using button on top of page
7. See that shipping cost is wrong
<b>Symptoms: </b>
When I switch to the German or English translation, the shipping cost is either empty or wrong.
<b>Questions: </b>
Why is the shipping class cost not calculated correctly on translated domains?
How can I fix the shipping cost issue on the .de and .com domains?
While one of my teammates addresses your ticket, I will provide you with the initial debugging steps.
Please update your WPML plugin and any associated add-ons to the latest version, 4.7.0. This will allow you to benefit from the most recent bug fixes and improvements. While this update may not necessarily resolve your issue, working with the latest code will help us troubleshoot more effectively.
The latest released versions are under "My Account -> Downloads" on our website. Instructions for updating can be found here: http://wpml.org/faq/install-wpml/.
If you do not see the updates, please click the "Check for updates" button in the Plugins → Add New Plugin → Commercial tab.
Remember to back up your database before proceeding.
If the issue continues after the update, please share screenshots showing the problem. How have you set up the shipping classes? Are you using any extra plugins or custom code to set this up?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
This seems to be an issue between "WooCommerce Conditional Shipping Pro" and WPML.
Have you already checked WPML > Settings > Custom Field Translation for any fields that might be related to this plugin? If you find such setting-related fields, please set them to "Copy". Then translate the product again and run another test.
Guide:
If this will not solve the issue:
We had only one issue reported for this plugins so far.
The workaround we used to apply in the past was:
Open the file:
wp-content/plugins/woocommerce-conditional-shipping-and-payments/includes/conditions/class-wc-csp-condition-cart-shipping-class.php
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hi,
I would like to offer to take a closer look and request temporary access (wp-admin and FTP) to the site to investigate the issue further.
The required fields are below the comment section when you log in to leave the next reply. The information you provide is private, meaning only you and I can see and access it.
IMPORTANT
Please be sure to back up the site and database before granting us access.
If you can't see the "wp-admin / FTP" fields, your post and site login details will be set to "PUBLIC". DO NOT publish the data unless you see the required wp-admin / FTP fields.
I may need to install a plugin called "All In One WP Migration" here to create a copy of the site that I can use to investigate the issue further.
However, I would also be very grateful if you could provide a staging site or copy of the website from your server for this purpose.
If you have any questions about creating such a staging site, you can consult your hosting provider. Please note that WPML must also be registered on this staging site at https://wpml.org/de/account/websites/.
If you are not able to provide such a copy of the website for testing, please let me know on this ticket.
The private reply form looks like this: hidden link
The next time you reply, click on "I still need assistance".
Video: hidden link
Please note that we are obliged to request this information individually on each ticket. We are not allowed to access any credentials that were not specifically submitted on this ticket in the private response form.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
My apologies for the delay in answering!
Take kindly note that I do not work on Sundays and Mondays and my location is Lima, Peru.
I am looking into this issue but do not have a cause or solution ready.
Take note that such issues can not be analyzed on a live site. I will need first to take a copy of your site and install it on a virtual server to run tests and to debug the issue.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
I created a package with "All In One WP Migration". When trying to download a package of your site the download is getting canceled every two seconds (each 10MB).
Could you please have a look into this issue and consult your hosting support team in case have any doubts about how to solve this issue?
Remove the kaliumnitrat from your cart. This is a different shipping class than the ADR one. When you just have the Isopropanol 5L, which is a ADR shipping class. The shipping cost are not shown. See attached video:
This issue remains unresolved despite previous troubleshooting steps. I would appreciate it if you could escalate this to a senior supporter or someone who can dedicate more time to resolving it.
Please provide an update on the next steps as soon as possible.
Manage Cookie Consent
We use cookies to optimize our website and services. Your consent allows us to process data such as browsing behavior. Not consenting may affect some features.
Functional
Always active
Required for our website to operate and communicate correctly.
Preferences
The technical storage or access is necessary for the legitimate purpose of storing preferences that are not requested by the subscriber or user.
Statistics
We use these to analyze the statistics of our site. Collected information is completely anonymous.The technical storage or access that is used exclusively for anonymous statistical purposes. Without a subpoena, voluntary compliance on the part of your Internet Service Provider, or additional records from a third party, information stored or retrieved for this purpose alone cannot usually be used to identify you.
Marketing
These cookies track your browsing to provide ads relevant to you.