Skip to content Skip to sidebar

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.

Sun Mon Tue Wed Thu Fri Sat
- 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 9:00 – 12:00 -
- 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 13:00 – 18:00 -

Supporter timezone: America/Sao_Paulo (GMT-03:00)

This topic contains 5 replies, has 2 voices.

Last updated by Mateus Getulio 8 months, 2 weeks ago.

Assisted by: Mateus Getulio.

Author Posts
October 25, 2024 at 5:11 pm

christinaH-2

Background of the issue:
I am trying to implement rounding for different currencies on my site hidden link using WPML. I am following the documentation at https://wpml.org/documentation/related-projects/woocommerce-multilingual/multi-currency-support-woocommerce/#setting-currency-options-and-rounding-rules.

I have tried different options, but it does not change anything.

Symptoms:
Multicurrency rounding does not work.

Questions:
How can I fix that?

October 25, 2024 at 6:00 pm
October 27, 2024 at 9:52 pm #16335544

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello there,

I apologize for the delay due to the weekend.

I’ve imported your site to our staging environment, and the rounding issue does not occur there. Here are a few examples where the rounding works correctly:

hidden link
hidden link
hidden link
hidden link

However, on your live site, the same products still exhibit the issue:

hidden link
hidden link
hidden link
hidden link

It seems likely that this issue is related to either a hosting-specific configuration or caching, such as object caching (e.g., Redis). Could you please check if your site is using any object cache and clear it to see if that resolves the issue? You may also want to contact your hosting provider to review and clear the cache on their end.

If the issue persists and since it only affects the live site, I would need access to it in order to debug further. I can create a staging environment on the same server using a plugin like WP Staging, or if you already have a staging site where the issue occurs, I can continue debugging there.

Please let me know, and I’ll enable the private fields for you to securely share this information in your next reply.

Thank you for your patience,
Mateus

October 29, 2024 at 1:24 pm #16342506

christinaH-2

Hi Mateus,

The hosting company says that object cache is availible but it is not active on the WP installation.

I have cleared their opcache. Nothing changed.

Yes, please make my next reply private.

October 29, 2024 at 2:18 pm #16342805

christinaH-2

Hi again,

I have created a staging site for you. It it located on the subdomain called "elementor" on the domain sent earlier. The username and password are the same.

Please be aware, that currently there is no SSL certificate on the subdomain, and therefore you might need to remove an "s" from the protocol prefix.

Best Regards,

October 29, 2024 at 8:39 pm #16344227

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Hello Christina,

I tried accessing the subdomain you mentioned but I'm getting a 404 not found error.

Can you please review it?

I went ahead and enabled the private fields again in case you need to share new data.

Thank you, please let us know.
Mateus

October 30, 2024 at 9:36 am
October 30, 2024 at 2:59 pm #16347999

Mateus Getulio
Supporter

Languages: English (English ) Portuguese (Brazil) (Português )

Timezone: America/Sao_Paulo (GMT-03:00)

Can you please check the test site and confirm that the prices are rounding up correctly in there?

Here's what I did in there, you can repeat the same steps in the live site after making a full back to try to correct it in there too:

- Go to WooCommerce > Status > Tools and run the following options:
• WooCommerce transients > Clear transients
• Expired transients > Clear transients
• Product lookup tables > Regenerate
• Update database > Update database

These actions will run in the background of the website, they might take a few minutes to complete, while they're running, please do the following procedure as well:

- Edit one of the products using the WordPress editor, eg.: bondeatelier.com/product/eau-sacree
- Edit all three variations price and add 1 to each one of them just to change it and save it
- Refresh the edit page and confirm that the prices have been changed
- Return the prices to their original values decreasing 1 from the price of each variation

After performing those actions in the staging/testing site the prices seem to be rounding up accordingly now, please check the screenshot.

Thank you, please let us know the results in the live site.

pricerounding.jpg

The topic ‘[Closed] Multicurrency rounding does not work’ is closed to new replies.