[Resolved] Prices in other currency are not rounded
This thread is resolved. Here is a description of the problem and solution.
Problem: The client is experiencing issues with price rounding in different countries/currencies on their WooCommerce site. Prices are rounded correctly when viewed from the Netherlands, but not when viewed from countries like the UK, where different tax rates apply. Solution: We recommend configuring the WooCommerce Tax Settings to display prices excluding tax. This approach helps in managing the display of prices consistently across different countries, despite the variations in tax rates. For detailed guidance on adjusting these settings, please refer to the WooCommerce documentation on tax settings: Setting up taxes in WooCommerce.
If this solution does not resolve your issue or 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. Should you need further assistance, please do not hesitate to 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 want product prices to be rounded in each country/currency to .95 decimal. I have adjusted the settings for this. The issue can be seen when the site is visited (with the use of a VPN) from another country like the UK. I think it has to do with the way the taxes are calculated. When I visit the English site from a Dutch location the prices are rounded correctly, but when switching to a UK location, the tax rate change and the price isn't rounded anymore.
Symptoms:
When the site is visited from another country like the UK, prices are not rounded correctly. Only when the site is visited from the default country (Netherlands), the prices are displayed as rounded.
Questions:
Why are prices not rounded correctly when the site is visited from countries other than the Netherlands?
Is there a specific setting in WPML that needs to be adjusted to ensure prices are rounded in all currencies?
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
Tax fees are usually calcualated by shipping address and this coming direclty from WooCommerce.
The WCML option on your screenshot should round the currency by site language, which means that not any Geolocation Feature is involved in your current WCML settings.
This settings should appply to any site language, as long GPB is set as currency.
Does this not work as expected?
If so, do you maybe have another Geolocation Feature enabled, that manipulates the currency amounts by location, like for example the geolocation feature from WooPayments?
I don't have any geolocation functions on other than WCML.
The problem only arises when the site is visited from a country other than the Netherlands. The problem can also be replicated by selecting a different country as the shipping address on the checkout page. After this, the VAT amount will change, so the amount will no longer be rounded correctly.
I want that regardless of which country the shop is delivered from, the prices are always rounded to .95 decimal.
Languages: English (English )Spanish (Español )German (Deutsch )
Timezone: America/Lima (GMT-05:00)
Hello,
I would like to offer to have a closer look at the problem and request temporary access (wp-admin and FTP) to the website to investigate this issue further.
You can find the required fields below the comment section when you log in to leave the next reply. The information you provide is private, which means only you and I can see and access it.
IMPORTANT
Please be sure to make a backup copy of the website and database before allowing us access.
If you can't see the wp-admin / FTP fields, your post and website credentials are set as PUBLIC. DO NOT publish the data unless you see the required wp-admin / FTP fields.
I may have to install a plugin called "All In One WP Migration" to make a copy of the website where I can 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 yourself for this purpose. This step would only be required if the issue is replicable on such a staging site.
If you have any questions about creating such a staging site, you can consult your hosting provider. Just take note that WPML should be registered on this site again.
If you are unable to provide such a copy of the site for testing, please let me know on this ticket.
The private response form looks like this: hidden link
Next time you reply, click "I still need assistance."
Video: hidden link
Please note that we are obliged to request this information individually on each ticket. We may not access any access information not specifically submitted on this ticket in the private response form.