Skip Navigation

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 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 9:00 – 14:00 -
- 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 15:00 – 18:00 -

Supporter timezone: Asia/Dhaka (GMT+06:00)

This topic contains 1 reply, has 0 voices.

Last updated by Prosenjit Barman 2 months ago.

Assisted by: Prosenjit Barman.

Author Posts
November 22, 2024 at 11:41 pm #16435445

francoL-5

Background of the issue:
I am trying to remove cents .00 from all currencies and round up. I have set this up in the Multi currency section but nothing has changed. The issue can be seen on this page: hidden link

Symptoms:
I expected to see no cents, but the cents are still there.

Questions:
Why are the cents still appearing after setting up the Multi currency section?

November 25, 2024 at 9:02 am #16438394

Prosenjit Barman
Supporter

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 what you're looking for. By default, WooCommerce Multilingual removes cents for certain currencies like JPY, GBP, and others. However, the filter to exclude cents hasn't been applied to all currencies yet due to various factors. This is why, for some currencies on your site, the cents or decimal values are still being displayed.

WCML has a hook that can remove the cents from the pricing. Please check the Hook below for more details.

- https://wpml.org/wcml-hook/wcml_currencies_without_cents/

You can use the example code provided there. For the `$currencies` value, simply add the currency for which you want to exclude the cents.

I hope the Hook and example code will help to solve the issue. Please feel free to let me know if you need further clarification or assistance in this matter. I'll be happy to help.

Best regards,
Prosenjit

The topic ‘[Closed] Removing cents .00 form all currencies and rounding up’ is closed to new replies.