webgriffe / discount-sticker-extension
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 8
Forks: 0
Open Issues: 0
Type:magento-module
pkg:composer/webgriffe/discount-sticker-extension
Requires
Requires (Dev)
- ecomdev/ecomdev_phpunit: dev-dev
This package is auto-updated.
Last update: 2025-10-08 00:06:58 UTC
README
Adds a ready-to-use block to show discount rate of products in Magento.
Usage
Simply install the exentions with modman or composer. Then you can add the discount sticker block by adding these lines in your .phtml files:
<?php
echo $this
->getLayout()
->createBlock(Webgriffe_DiscountSticker_Block_DiscountSticker::BLOCK_ALIAS)
->setProduct($_product)
->toHtml();
?>
Where $_product is a Mage_Catalog_Model_Product instance of the product on which you want to display the discount.
If you want you can override default discount sticker template by overriding catalog/product/list/discount_sticker.phtml in your theme.
Contributing
- Fork this repo
git submodule init && git submodule updateto get continuous integration toolcp ci/ci.sh.sample ci.shand enter your settings- Run
sh ci.shto get full working Magento environment - Do your change by adding related automated test on a dedicated branch
- Submit a pull request
Credits
Developed by Webgriffe®