How To Edit The Discount Calculation

Hi All,

Does anyone know how to edit the calculation for the discount labels that appear on products.

I have had some modifications done so that a inc VAT and ex VAT price is displayed in my products. However, the YOU SAVE calculation is not working correctly. For example

Item has list price of £30.

I discount it down to £20.32 ex VAT

Making it £24.99 inc VAT

It displays YOU SAVE 32%

The saving here is being calculated on the ex VAT PRICE Price....

I need it to use the inc VAT PRICE

Any Ideas?

thanks

You should find where the values for the $product.discount and $product.list_discount variables are calculated in the app/functions/ fn.catalog.php file and correct them