Magento Forum

Product labels “new” and “sale”. non skills required. 
 
MagenX
Enthusiast
 
Total Posts:  791
Joined:  2008-05-26
Dublin
 

hi
just found some interesting blog post,
never thought about it, but hope someone will use it.

<div class="product-img-box">
<?php echo $this->getChildHtml('media') ?>

<?php // SALE label placement
if ( ($_product->getFinalPrice() - $_product->getPrice()) < 0{ ?>
<img class="labels labels-top-right" src="<?php echo $this->getSkinUrl('images/labels/sale.png'); ?>">
<?php } ?>
<?php 
// NEW label placement
$now date("Y-m-d");
$newsFromsubstr($_product->getData('news_from_date'),0,10);
$newsTo=  substr($_product->getData('news_to_date'),0,10);
if (
$now>=$newsFrom && $now<=$newsTo)
{?> <img class="labels labels-top-left" src="<?php echo $this->getSkinUrl('images/labels/new.png'); ?>"><?};
?>

</div>

/* Labels CSS
-------------------------------------------------------------- */
.labels { border:noneposition:absolutez-index:99}
.labels-top-right { top:-2pxright:-2px}
.labels-bottom-right { bottom:-2pxright:-2px}
.labels-bottom-left { bottom:-2pxleft:-2px}
.labels-top-left { top:-2pxleft:-2px}

add to .product-img-box
or add this relative positioning to any main div that holds your product image.

positionrelative;

not tested on production, but tested / works on my local WAMP install.

cheers

 
Magento Community Magento Community
Magento Community
Magento Community
 
Technoduce
Jr. Member
 
Total Posts:  19
Joined:  2012-10-15
 

I will try to use it.

 
Magento Community Magento Community
Magento Community
Magento Community
 
vjtemplates
Guru
 
Avatar
Total Posts:  408
Joined:  2010-12-15
Washington, USA
 

Our Product Badges module can show NEW, SALE, BEST-SELLER, FEATURED, OUT-OF-STOCK. No coding skill required.

 
Magento Community Magento Community
Magento Community
Magento Community
 
triplexita
Member
 
Total Posts:  45
Joined:  2011-03-23
 

not work if news_from_date or news_to_date field not have value !!!!
how can i resolve this!!!

 
Magento Community Magento Community
Magento Community
Magento Community
 
swekamtech
Jr. Member
 
Total Posts:  5
Joined:  2013-09-18
 

Hi You can try this extension.It worked for me like a charm.

Advanced Product Labels

 
Magento Community Magento Community
Magento Community
Magento Community
 
Amasty
Mentor
 
Avatar
Total Posts:  3988
Joined:  2009-11-10
 

Hello,

To place various product labels on your pages you may also take a look at this module: http://amasty.com/product-labels.html. With this Magento tool you’ll be able to highlight ‘on sale’ products, products with special price, new products. You can also emphasize other important product information like ‘100% natural’, ‘environment-friendly’ and so on.

The Product Labels extension allows:

- Display the labels based on category, price, status, etc
- Specify time period for display of labels
- Use variables for label messages
- Set priorities for label display

Feel free to ask for any details and try our demo!

 
Magento Community Magento Community
Magento Community
Magento Community
 
FMEExtensions
Mentor
 
Avatar
Total Posts:  1298
Joined:  2009-08-07
 

Use Magento product labels extension to add custom lables with products, see the demo and read more here at…

Magento product labels Extension

 
Magento Community Magento Community
Magento Community
Magento Community
 
MagePlace
Member
 
Avatar
Total Posts:  50
Joined:  2010-11-10
Belarus
 

you may use the Product Label extension as well

 
Magento Community Magento Community
Magento Community
Magento Community
 
magebayco
Member
 
Avatar
Total Posts:  46
Joined:  2014-01-21
 

You can try use extension : http://www.magentocommerce.com/magento-connect/catalog/product/view/id/21586/s/stickers-product-labels-extension/

 
Magento Community Magento Community
Magento Community
Magento Community
 
Mage Solution
Sr. Member
 
Avatar
Total Posts:  179
Joined:  2013-11-12
 

Highlight sale-off products with special price and special time is a great way for you to raise sale.!
so,we recommend to you to have full feature with our Magento daily deals extension which is developed with a countdown timer and promotion price for your products.

Much more features for you to explore:

- Admin can create sale-off products by adding special price and selecting Special price time
- Admin can adjust amount of products to be discounted for simple products
- Allow admin to create embed widgets to show deals on any pages and positions such as: any positions on homepage, category pages, static pages....
- Allow admin to view statistics of every deal status (Processing, Running, Complete…)
- It saves statistics of complete deals and allows admin to view
- Ability for the system to update deal status after either the customer has finished the order or the order has been completed
- Admin can update deal pages with title, Meta keyword, Meta description.....
Magento connect : http://www.magentocommerce.com/magento-connect/daily-deals-1.html
Visit home page : http://www.magesolution.com/magento-extensions.html

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top