Skip Navigation

This thread is resolved. Here is a description of the problem and solution.

Problem:
The client was experiencing an issue where the product prices in EUR were not consistent across the site. Specifically, the prices would change incorrectly when a product was added to the cart by a non-logged-in user and the country was changed at checkout. Additionally, the prices displayed incorrectly for logged-in users.

Solution:
We identified that the issue was related to the tax configuration in WooCommerce. The 'Display tax totals' setting was set to 'As a single Total', which caused the total price, inclusive of tax, to only be visible on the checkout page after the address details were added. To resolve this and ensure consistent price display for both logged-in and non-logged-in users, we recommended the following steps:

1. Go to 'WooCommerce > Settings > Tax'.
2. Scroll down to 'Display tax totals' and change the setting to 'Itemized'.
3. Clear the caches from both the site and browser.

We advised the client to review the settings for Taxes and Shipping to ensure the price is displayed correctly for all users.

If this solution does not apply to your situation, or if it seems outdated, we highly recommend checking related 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 with us.

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 9 replies, has 2 voices.

Last updated by johnD-63 1 year, 3 months ago.

Assisted by: Prosenjit Barman.

Author Posts
February 2, 2024 at 11:33 am #15258811

johnD-63

I have set prices for products originally in Danish kr. and added secondary currency to EUR.

Link to a page where the issue can be seen: hidden link

I expected to see: that the price I had set should show the same price everywhere. I mean in checkout and every page where that product shows. it should not show different prices if I change the county.

Instead, I got: when I have added a product to the cart when I am not logged in and in checkout if I change country, the prices change to the wrong price. also, the prices don't show correct price when I am logged in.

Untitled-logged-in.jpg
Untitled.jpg
price-changed-at-checkout.jpg
February 5, 2024 at 8:37 am #15264576

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
Thanks for contacting WPML Support. Sorry for the delay in responding due to the weekend.

I understand the challenge you're facing. To maintain consistent pricing across different languages and currencies, it's crucial to set the conversion rate accurately. Please follow the instructions below to adjust the settings, and check if you;re getting the expected results or not.

1. Navigate to WooCommerce > WooCommerce Multilingual > Multicurrency.
2. Select the secondary currency you've added (e.g., Euro) for editing.
3. In the exchange rate field, enter "1" [ Screenshot: hidden link ] to ensure the prices remain the same in both the default and secondary currencies. After doing so, click 'save'
4. Ensure you also click the 'Save' button on the multicurrency page to apply the changes.

These steps should enable the same pricing in each language/currency. However, if you're using the Automatic Exchange Rate feature, price variations when switching languages/currencies are expected due to automatic updates from the third-party exchange rate API. To avoid this, please ensure the automatic exchange rate option is turned off.

For more details about the Multicurrency feature, please check this guide: https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#configuring-currencies

Please let me know the update. I'll be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

February 16, 2024 at 10:34 am #15311011

johnD-63

I have done so, but, I think you haven't understood my issue. please, check my message again and if you need access to the site let me know.
Thank you.

February 18, 2024 at 10:18 am #15314675

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello There,
I hope you're doing well. Sorry for the delay in responding due to the weekend.

After carefully reviewing your initial message and the screenshots, I understood that there's a difference in the pricing displayed for users who are logged in versus those who are not.

This type of issue often arises from improper configuration of the Tax settings in WooCommerce. Could you please confirm if your products are set to include tax in their prices and if the tax is being calculated based on the customer's shipping address? Here's a screenshot for reference: hidden link

If that's the case, could you verify that the "Default customer location" option within "WooCommerce > Settings > General" is configured to 'Shop Base Country/Region'?

If everything is configured accordingly, maybe a plugin conflict test will help in understanding the root cause of the issue. To carry out this test, deactivate all your site's plugins except for WPML (and its add-ons) and WooCommerce, and then check the product as a non-logged-in user. If the issue is resolved, reactivate the plugins one at a time, refresh the products page, and check if the issue reappears. This method will help you identify the specific plugin causing the problem.

Let me know the update. I will be happy to help if you need further assistance in this matter.

Best regards,
Prosenjit

February 26, 2024 at 2:58 pm #15344959

johnD-63

I have done what you have instructed here. but, still, the issue isn't fixed.

February 27, 2024 at 5:53 am #15347194

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hi There,
Thank you for patiently trying out the suggestions.

Since the issue persists, please update the WPML(latest: 4.6.9), String Translation(latest: 3.2.9), and WooCommerce Multilingual(latest: 5.3.5) plugins to their latest version first and check again.

If the issue persists with the latest version, a closer inspection will be required to understand the root cause of the issue. I would like to request temporary access (wp-admin and FTP) to your site to take a better look at the issue. It would be better to have a testing site where the issue is replicated.

You will find the needed fields below the comment area when you log in to leave your next reply. The information you will enter is private which means only you and I can see and have access to it.

Maybe I'll need to replicate your site locally. For this, I’ll need to temporarily install a plugin called “Duplicator” or "All in One WP Migration" on your site. This will allow me to create a copy of your site and your content. Once the problem is resolved I will delete the local site. Let me know if this is ok with you.

IMPORTANT
-Please backup site files and database before providing us access.
-If you do not see the wp-admin/FTP fields this means your post & website login details will be made PUBLIC. DO NOT post your website details unless you see the required wp-admin/FTP fields. If you do not, please ask me to enable the private box. The private box looks like this:
hidden link

Looking forward to your response.

Best Regards,
Prosenjit

March 5, 2024 at 8:52 am #15373086

Prosenjit Barman
WPML Supporter since 03/2023

Languages: English (English )

Timezone: Asia/Dhaka (GMT+06:00)

Hello,

I appreciate you providing the access details. I’ve conducted a comprehensive review and identified the primary cause of the issue. It appears to be related to the tax configuration. Currently, the “Display tax totals” is set to “As a single Total”. This means that the total price, inclusive of tax, will only be visible on the checkout page after the address details have been added(if tax is also configured for the Shipping address), as demonstrated here: hidden link

Since you’re logged in, your profile’s Address information is already stored in WooCommerce. As a result, the product displays the price, including tax, from the beginning.

For users who are not logged in, the price, inclusive of tax, will only be visible after they’ve added their address details on the checkout page. If you’d like the price to be displayed, including tax, in the same way it appears for you (as a logged-in user), you’ll need to:

- Navigate to the “WooCommerce > Settings > Tax” tab
- Scroll down to “Display tax totals” and change the setting to “Itemized”
- After making these changes, clear the caches from both the site and browser, then check again.

Please be assured that the price difference between logged-in and non-logged-in users is solely due to the Tax configuration in WooCommerce. It’s recommended to review the settings for Taxes and Shipping to ensure the price is displayed correctly for both logged-in and non-logged-in users.

Please let me know if the information above helps. If you need further assistance or clarification, feel free to let me know. I will be happy to help.

Best regards,
Prosenjit

March 5, 2024 at 9:43 am #15373419

johnD-63

I can't check the google drive link you have shared. I have asked permission as 'codersaleh@gmail.com'

March 5, 2024 at 11:39 am #15374241

johnD-63

Also, even though I have done what you have said, but, still it didn't work. when you go to checkout and change the country the product price changes. so, there is something wrong with WPML. PLEASE, check my messages I have provided a login for the site.

So, please, just don't come up with a random solution to this issue. Give me a perfect solution for it.

March 5, 2024 at 3:12 pm #15375226

johnD-63

Thank you it's fixed now.