badge problem: Good morning I am writing to ask how to eliminate decimals from the percentage discount applied to the products, because as it is now it creates confusion in fact now the displayed graphic is "5.00% discount" While I would prefer that "-5%" was displayed I tried to create a rule from the Override language But I can't find any correspondence how can I do it thanks..
eliminate decimals from the percentage discount
Accepted answer
Marked as the solutionFront end: As I could see from the link there is only one product because the site is still under development and you can preview the problem
https://enoposis.com/shop
2 more replies
Hello Agency Brixia
From which place, you want to edit the discount percentage? Is it from admin or frontend? Please share a screenshot of your issue to understand it better. Take a screenshot and share via any platform. For example: Lightshot or Imgur
Best regards
I think I have got your issue. Please go to this location:
components/com_easystore/layouts/
and replace price_segments.php file with the attached file. You need to unzip the file and then replace.
It will show the price in this way:
- Price is 150.58/150,58, it will show 150.58/150,58
- Price 85.00/85,00, it will show 85
https://prnt.sc/cxAC0p3scygX
thanks for the effort but it's not what I was asking for I'm attaching an image to understand better
https://ibb.co/ZcH3t5Q
Please go to this location:
components/com_easystore/layouts
and replace badge.php file with the attached file. You need to unzip the file and then replace.
Ok I replaced the file And now it is acceptable... Question: with the new releases of easy shop will this change remain active or will I have to replace the file each time
You have to replace it every time until we add this feature. I will talk to the team. If the team agress, then they might add this feature in the component. Then you will find options where to show .00 or not.
Perfect, that would be the ideal thing, also because honestly the decimals on a discount percentage don't make much sense. Thanks, if you want, just close the ticket.
Please accept the answer to close the post. There is a button to accept answers after each comment. Only you have this access.
I have a humble request too. It would be very kind of you if you can manage some moment to give us feedback on
This will inspire us to improve.