cancel
Showing results for 
Search instead for 
Did you mean: 

Display "You Save" option on product page

SOLVED

Display "You Save" option on product page

 

Hi,

 

I would like to display a "You Save" option on the product pages.

 

Example:

 

Price: £1500

You Save: £500

Special Price: £1000

 

Currently I just have the price and special price on the products.

 

Can you help me to do this?

 

Thanks

2 ACCEPTED SOLUTIONS

Accepted Solutions

Re: Display "You Save" option on product page

Hi @alan_saban,

There is not any default way to show "You save" amount. You need to show using custom logic (You save = Price - Special Price) in the template file of your theme.  

for more info : Add-you-save-amount-and-percentage-special-price-magento 

You can get template file using template path hints.

for template path hints:
https://stackoverflow.com/questions/24273443/in-magento-1-9-0-0-how-can-i-enable-template-path-hint

Make sure, if phtml file is core magento file then you should copy it to your current theme.

I hope it will help you!

View solution in original post

Re: Display "You Save" option on product page

@alan_saban 
Yes, you can show without % as well as I mentioned in last post. You need to apply your custom logic to substract only. (Price - Special Price).

View solution in original post

10 REPLIES 10

Re: Display "You Save" option on product page

Hi @alan_saban,

There is not any default way to show "You save" amount. You need to show using custom logic (You save = Price - Special Price) in the template file of your theme.  

for more info : Add-you-save-amount-and-percentage-special-price-magento 

You can get template file using template path hints.

for template path hints:
https://stackoverflow.com/questions/24273443/in-magento-1-9-0-0-how-can-i-enable-template-path-hint

Make sure, if phtml file is core magento file then you should copy it to your current theme.

I hope it will help you!

Re: Display "You Save" option on product page

Hi @alan_saban 

 

If you wish to show product discount percent next to product price or somewhere on a product page, here’s how you do it.

 

Open

app/design/frontend/yourpackage/yourtheme/template/catalog/product/price.phtml

Find: (line 397)

 

<?php endif; /* if ($_finalPrice == $_price): */ ?>

 

Past above it:

 

<?php // Discount percents output start ?>
    <?php if($_finalPrice < $_price): ?>
    <?php $_savePercent = 100 - round(($_finalPrice / $_price)*100); ?>
        <p class="special-price yousave">
            <span class="label"><?php echo $this->__('You Save:') ?></span>
            <span class="price">
                <?php echo $_savePercent; ?>%
            </span>
        </p>
    <?php endif; ?>
<?php // Discount percent output end ?>

 

------------------------------------------------
If you've found one of my answers useful, please give "Kudos" or "Accept as Solution

Re: Display "You Save" option on product page

 

Thank you for replying.

 

Is there a way to display it without the percentage and just a e.g. "You Save: £500"?

Re: Display "You Save" option on product page

@alan_saban 
Yes, you can show without % as well as I mentioned in last post. You need to apply your custom logic to substract only. (Price - Special Price).

Re: Display "You Save" option on product page

 

Thank you that worked.

 

Is there a way in which I can mover the "Saving:" option to go in between the Price and Special price? Saving.jpg  Moving it in between the black price with a strike through it and the red price? on both the product page and product list page:   SavingProductlist.jpg

Re: Display "You Save" option on product page

Great... good to know that.

Please accept a solution so it will help to others as well.

You you can move in bettween as well from template file and using css. 

Re: Display "You Save" option on product page

 

Thanks, done that.

 

Could you elaborate on that? what do I need to move and where to in order to get in inbetween?

 

Thanks

Re: Display "You Save" option on product page

Can you share the public url? So I can suggest better.

Re: Display "You Save" option on product page