General information on module

Module Best Labels is a tool for easy installation of stickers (labels) to the product on the web site. Labels are placed on top of the main image of item (in the list of products and item description). This version supports three types of stickers: "New product", "Bestseller", "Sale Labels”. The module has functional, accessible and wide custom settings. Buy


Magento ver and up

Basic Features


  1. Turn off the cache (if it is active);
  2. Download the module from our website. To do this, copy the content of “Install” folder to the root folder “Magento”;
  3. Sign out from the admin panel;
  4. Sign in to admin panel;
  5. Activate cache.

Detailed description of the sticker types and module operation modes

1 AutoSearch

The module can generate three types of stickers:

Module creates all the stickers automatically, depending on the settings (see details below in the section «Module Settings»).
Attention! To generate all the labels automatically, turn on the module setting «Enable AutoSearch», then go to the «Catalog->Badata BestLabels Management» and click «AutoSearch Labels».

AutoSearch Labels
Then tick off those kinds of labels that you want to generate and click on «Search».

All the necessary stickers will be generated.
AutoSearch process also triggers automatically when you save and purchase goods. (Later in the article, you can read the description of the automation mechanism of the process described above using Cron).

2 Manual Labels

You also have the ability to set manually stickers for specific products. Stickers set manually do not affect the general algorithm for generating «AutoSearch», which means that they will be seen as long as you do not remove them in the same way - manually. «Enable Manual Labels» setting is responsible for the whole mechanism and must be enabled.
For example: if you want to activate the sticker "Sale Labels" for a particular product, even under the condition that it does not have a special price, the label will be active as long as you do not manually disable this feature for this product. This applies to all kinds of stickers, which can be activated for the site products.
To activate the stickers you need to go manually to the section Catalog->Badata BestLabels Management.

You will see a grid with a list of products for which stickers are included manually.
If you do not see the product list, click the leftmost column «Any» and apply the filter. Then you will see a list of all products. In the right side of the table are three columns that show what kind of stickers are marked for a specific product. To enable labels for a product, you need to click on "Edit", in the far right column in the dialog box tick off the needed product labels.

It is important to note that the module allows you to display all kinds of stickers at a time on one product!

3 Module configuration

General settings

After module installation go to its settings System->Configuration->BestLabels.

  1. General Settings:
    • Enable – enables or disables the module;
    • Enable Manual Labels – enables or disables stickers for products that set manually for specific units of goods;
    • Enable AutoSearch – enables and disables stickers autogeneration;
    • AutoSearch Cron Update – initiation of stickers generation using Cron. Cron time is set by «\app\code\local\Badata\Bestlabels\ config.xml» 175 line <cron_expr>1 0 * * *</cron_expr> /as default is 01:00.
    Attention! AutoSearch Cron is set to the common Cron Magento, which settings are produced separately and operated on the cron.php file or (more detailed – in Magento documentation).
  2. Bestsellers:
    • Enable Bestsellers – enables or disables «Bestseller» stickers.
    • AutoSearch Limit items – the maximum quantity of goods for which it is possible to generate stickers (at 0 - the maximum amount of goods that are subjects to criteria).
    • Bestsellers Label Image – an image for «Bestseller» sticker.
    • Horizontally position – horizontal alignment of sticker to the image.
    • Vertical position – vertical alignment to the image.
    • Left shift – left margin.
    • Top shift – top margin.
    • Resize – redraw of sticker image to the size of product image (set as a percentage, such as 20 - redraws the sticker image to the 20% ratio of product image).
  3. Section 3 «Sale Labels» and 4 «New Labels» have the same settings, so we will not consider them.


The module can operate with a large number of themes (including mobile versions), and used to store multiple store views. In the event, if the stickers are not visible, please, check the media.phtml file 'base/default/template/catalog/product/view/media.phtml' for the presence of class="product-image" before image.

        <p class="product-image">
        $_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->escapeHtml($this->getImageLabel()).'" title="'.$this->escapeHtml($this->getImageLabel()).'" />';
        echo $_helper->productAttribute($_product, $_img, 'image');

If you use other modules, which cover the standard file media.phtml (for example, lightbox module), you will need to find the file and add class="product-image" Example:

        "<a href="<?php echo $image; ?>" class="product-image" rel="lytebox[rotation]" title="<?php echo $maintitle;?>" onclick="return false;">
        <img src="<?php echo $this->helper('catalog/image')->init($_product, 'image')   >resize($mainImageSize[0], $mainImageSize[1]); ?>"
        width="<?php echo $mainImageSize[0];?>" height="<?php echo $mainImageSize[1];?>"
        alt="<?php echo $this->htmlEscape($_product->getImageLabel());?>"/>