Home › Forums › WoodMart support forum › Percentage error › Reply To: Percentage error
October 9, 2023 at 2:57 pm
#502724
Artem Temos
Keymaster
Hello,
Yes, but the discount is calculated based on the regular price. Here is a basic example:
1. You have a price of $125 and the sale price is $93.
2. You find the difference between these two prices. 125-93 = 32
3. This difference is a part of the regular price $125 so we calculate how much it is in %: 32/125*100 = 25%
4. Verify 93 + 25/100*125 = 125
It is how the percentage is calculated on most of the online stores including our theme too.
If you want, we can give you a custom code that will calculate the percentage based on the sale price, but we will not change this in our theme because it is wrong.
Kind Regards