1

display percentage of discount on product list and product view page in magento1.9.1.1?percentage

In the beside of product cost will display the percentage

price

0

You need to use Catalog Price Rule for product price discount from admin -> Promotions -> Catalog Price Rules interface.

enter image description here

3

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 ?>

Link

or try to use

display percentage of discount on product list and product view page in magento

  • i did n;t have the price on that place – user51829 Jun 16 '17 at 13:02
  • 1
    i tried to place an image how here? – user51829 Jun 16 '17 at 13:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy