Eliminate Decimals From The Percentage Discount - Question | JoomShaper
SP Page Builder 6 is Here! Learn More →

Eliminate Decimals From The Percentage Discount

AB

Agency Brixia

EasyStore 11 months ago

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..

0
9 Answers
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #172324

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

0
AB
Agency Brixia
Accepted Answer
11 months ago #172330

Front 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

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #172441

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:

  1. Price is 150.58/150,58, it will show 150.58/150,58
  2. Price 85.00/85,00, it will show 85

prnt.sc/cxAC0p3scygX

price_segments.php.zip

0
AB
Agency Brixia
Accepted Answer
11 months ago #172527

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

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #172639

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.

badge.php.zip

0
AB
Agency Brixia
Accepted Answer
11 months ago #172654

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

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #172661

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.

0
AB
Agency Brixia
Accepted Answer
11 months ago #172662

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.

0
Ofi Khan
Ofi Khan
Accepted Answer
Support Agent 11 months ago #172663

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

  1. Joomla Extension Directory
  2. TrustPilot

This will inspire us to improve.

0