Welcome To Agriya FAQ

ID #0

Change Precision On Percentage Amount

By default the script has set the precision of the discount amount to two decimal places - eg. 90.50%. If you like to round up or down to the nearest whole number, follow the steps below:

1. Locate the following file and make a backup by copying and pasting it:


2. Locate the following line (note that the HTML tags have had additional spaces put in to make them show up in this knowledgebase):

< dd >< /dd >

3. Update the line above with this line (remember to delete the spaces in the HTML < > tags)

< dd >< /dd >

4. If you need to change this precision anywhere else, simply find $html->cFloat and replace it with $html->cInt