Black Friday 2026 50% off every plan Our biggest deal of the year on #1 Joomla products.
Ends in 15d 07h 59m 06s
Claim 50% off
Solved EasyStore

Eaystore 3.0 Discounts Display

Asked by Stephane Hanrez 1 month ago Last activity 1 month ago

Since updating EasyStore to version 3.0.0, discount values are displayed with 5 decimal places. It looks like it's due to the fact you updated the DB field to allow 5 decimals, which is fine, but is annoying in terms of diplay on a webpage.

For example, a discount that should normally appear as:

10.00%

is displayed as:

10.00000%

Could you please check this and either force to 2 decimal or add a way for users to select what they want to display?

Thank you.

Accepted answer

Marked as the solution
Toufiq Senior Staff

I will share this information to our developer team to check this issue. Thank you

2 more replies

Toufiq Senior Staff

Hi there,

Thank you for reaching out, and I apologize for any inconvenience caused by this oversight. Please make sure that your settings as like as screenshot.

https://prnt.sc/yoEr4cgipnwM

Best regards,

Toufiqur Rahman (Team Lead, Support)

Stephane Hanrez Asked this

I checked and my settings are indeed as in your screenshots (decimals for currency set to 2).

The issue is not with currency but with discounts %, instead of showing "10.00% off", the badge is showing "10.00000% off".

Toufiq Senior Staff

Could you kindly grant me access to your Joomla administrator area so that I can investigate the issue you're experiencing? Prior to providing access, please ensure that you have backed up your site. Additionally, it's important to note that providing login credentials is entirely voluntary on your part; we respect your decision either way. However, if you do choose to share the login details, it would greatly expedite the resolution process. Thank you for your cooperation.

Toufiq Senior Staff

I am waiting for your response. Thanks

Stephane Hanrez Asked this

Hi,

Sorry, I missed your message.

Anyway, you won't see much on my website because in the meantime I have added an override to correct this.

I have simply changed in file templates/allura/html/layouts/com_easystore/badge.php

$discount_value . '%'
to
number_format((float) $discount_value, 2, '.', '') . '%'

In Easystore 2.1.0, this was ok, because the column in the DB table was only allowing 2 decimals. In 3.0.0, you changed the column to 5 decimals, and as far as you just push the value as it is, it was showing as 10.0000%

Stephane Hanrez Asked this

Hi,

I can confirm that this issue is fixed in EasyStore 3.1.0.

Discount percentages are now correctly displayed with 2 decimal places instead of 5.

Thank you for the fix!

Toufiq Senior Staff

You are most welcome! We appreciate your feedback and are delighted to hear that you're satisfied with our service.

To officially close this forum post, mark it as accepted. If you have any more questions or need further assistance in the future, please don't hesitate to reach out to us.

As for writing a review about our product and support quality, we would greatly appreciate it! Your feedback helps us improve and serves as a valuable reference for others. Please take a moment to share your thoughts about your experience with our product and the support you received. Your input is valuable to us and the community. Thank you in advance for your time and support.

Joomla Extension Directory

TrustPilot

We're here to assist you with any further questions or requests you may have. Once again, thank you for choosing our product and for being a part of our community.

Best regards,

Toufiqur Rahman

Team Lead, Tech Support (JoomShaper)

Log in to reply.