Details
Checkout an example of J2T Announcement & Discount Labels usage here!
This extension allows you to add a discount labels on product images.
You have the choice between 4 types of labels:
- round shape
- star shape
- round shape with shadow
- badge shape
You can define specific labels as well on product pages!
Main features:
![]() |
Multiple label usageIt is possible to show different type of labels according to different discount amount. |
Easy setup configurationThe configuration of the module is simple and fast. Decide the default shape and color of the labels within seconds! |
![]() |
![]() |
Multiple labels configurationIt is possible to configure different shapes according to discount values with the following attributes:
|
Add label from product page admin areaIt is possible to add specific labels for specific product by editing J2T Label from product administration page! This feature is overriding other labels and there are more tags available to be used in message field:
{{BR}}: breakline {{discount_percent}}: discount in percent {{discount_value}}: discount amount {{regular_price}}: discount price {{special_price}}: special price {{product_stock}}: product stock |
![]() |
You can choose the background color of the labels, display type (price or percent), text to be shown in the label
You might want to configure j2tdiscountlabel.xml and modify <catalog_category_default>, <catalog_product_view> and <catalog_category_layered> section according to your modifications.
Don't forget to move all template and skin files to you custom ones.
This module uses Adobe flash technology as well as SVG for non flash compatible browsers such as iOS safari browser (iphone, ipad, windows phone, etc.) making the module virtually compatible for every platform
This module is highly customizable and it is way lighter than using images files!
0.3.x versions
- v.0.3.5: Fixing error related to new label insertion error
- v.0.3.4: Fixing admin form issue related to single store submission
- v.0.3.3: Fixing minor issues related to php warnings
- v.0.3.2: Adding admin router to config.xml file
- v.0.3.1: New feature implemented - it's now possible to generate png labels for svn/flash non compatible browsers
- v.0.3.0: The module becomes J2T Announcement & Discount Labels
0.2.x versions
- v.0.2.1: Improving svg support
- v.0.2.0: New features: svg implemented in order to show labels in non flash compatible browsers. Multiple labels creation is now possible.
0.1.x versions
- v.0.1.3: New feature implemented to facilitate the integration to custom designs
- v.0.1.2: New label types added
- v.0.1.1: adding text color picker chooser
- v.0.1.0: introducing J2T DISCOUNT LABEL
INSTALL NOTE: Please copy all files to your magento root directory
UPGRADE NOTE: Don't forget to move the skin & design files to your skin & design directories
Please note that if you have specific skin and template, you need to move :
- skin/frontend/default/default/images/j2t_price_tag.swf
- skin/frontend/default/default/css/j2t_discountlabel.css
- skin/frontend/default/default/js/j2t_discount_flash.js
- app/design/frontend/default/default/layout/j2tdiscountlabel.xml
- app/design/frontend/default/default/template/j2tdiscountlabel
>> to your skin and template directory (for any installations or any updates).
>> To configure the module to show the confirmation box or not, please go in Admin > Clients > J2T Image magnify
In you have integration issues, please note that you can remove in the default module layout file 'PATH_TO_YOUR_THEME/layout/j2tdiscountlabel.xml' the following lines:
<catalog_product_view>
...
<catalog_product_view>
<catalog_category_default>
...
</catalog_category_default>
<catalog_category_layered translate="label">
...
</catalog_category_layered>
This will remove all the template layout modification but you will need to place the labels manually:
>> In the file 'PATH_TO_YOUR_THEME/template/catalog/product/list.pthml, replace the product links by:
<div class="j2t-discount-labels j2t-listing">
<?php if (Mage::getConfig()->getModuleConfig('J2t_Discountlabel')->is('active', 'true')):?>
<?php echo Mage::helper('j2tdiscountlabel/data')->getListLabel($_product); ?>
<?php endif;?>
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" class="product-image"><img src="<?php echo $this->helper('catalog/image')->init($_product, 'small_image')->resize(135); ?>" width="135" height="135" alt="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>" /></a>
</div>
>> In the file 'PATH_TO_YOUR_THEME/template/catalog/product/view.pthml add the following line:
<?php if (Mage::getConfig()->getModuleConfig('J2t_Discountlabel')->is('active', 'true')):?>
<?php echo Mage::helper('j2tdiscountlabel/data')->getViewLabel($_product); ?>
<?php endif;?>
... right after: <div class="product-img-box">
Then you might simply need to adapt your css.




