<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.