display total on purchased page with discount if a discount was used