Are you using the sale to sell the item at 90% of the original price or to purchase at 10% of the original price?
The default operation is for the percent off to be provided such that if the item is being sold at 90% of the original value (a sale of 10%) then the result is to display 10% off. Further, that would mean that if the sale % off was entered as 90% then the display would be 90% off as the product would be offered at 10% of the price.
One place/example of how to reverse the normal operation (which seems unusual to be an issue) is to modify:
Code:
$show_discount_amount = number_format(100 - (($display_sale_price / $display_normal_price) * 100),SHOW_SALE_DISCOUNT_DECIMALS);
To be:
Code:
$show_discount_amount = number_format(/*100 - */(($display_sale_price / $display_normal_price) * 100),SHOW_SALE_DISCOUNT_DECIMALS);
So in this one case (there are similar others within the file) if the normal price is say 100 and as a result of placing the sale price to 90% discount off of the base price, then the sale price would be 10, which in the revision would result in reporting: 10/100 * 100 which would provide 10% as the reported value.
Previously it would report 90% as a result of the sold at price being 10 and the normal price being 100 that the result would be a 90% difference as calculated by: 100 - 10/100*100 = 100 - 10 = 90...
Bookmarks