By default, on a simple product with tier pricing, each tier price 'percent saved' is calculated based on the 'Item Price'.
I want to recalculate the 'percent saved' to display/calculate the percent saved based on the 'Manufacturer's Suggested Retail Price'
On this file: app\design\frontend\base\default\template\catalog\product\view\tierprices.phtml This is the line of code that displays the tier price percent saved:
<span class="percent tier-<?php echo $_index;?>"><?php echo $_price['savePercent']?></span>
NEW FOUND INFO:
I found this file: app\code\core\Mage\Catalog\Block\Product
Which shows the formula which calculates the 'savePercent':
$price['savePercent'] = ceil(100 - ((100 / $productPrice) * $price['price']));
I have been trying to add:
$_msrpPrice = $this->helper('core')->currency($_product->getMsrp(),true,true)
Then replace 'productPrice' with '_msrpPrice' or 'msrpPrice' but it breaks the page.
Can anyone point me to:
1) Where can I modify this formula to display the % save off of the 'Manufacturer's Suggested Retail Price'
2) Hopefully give me the variable to replace or even a script I can add?
Thank you in advance.