Prolabels installation instructions

Next steps
  1. Navigate to System > Configuration > Templates-Master > Prolabels and enable extension for any store you need.
  2. Configure Prolabels module according to your needs.
  3. Installation of labels code for categories page
    Code listed bellow should be added to list.phtml file in order to display labels on categories pages. For example app/design/frontend/[package]/[theme]/template/catalog/product/list.phtml.
    Prolabels code should be placed in 2 places.
    Line 50
    <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>
           

    Change to:

           
    <div class="prolabel-wrapper">
        <?php echo Mage::helper('prolabels')->getLabel($_product, 'category'); ?>
        <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>
           

    Line 94
    <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>
           

    Change to:

           
    <div class="prolabel-wrapper">
        <?php echo Mage::helper('prolabels')->getLabel($_product, 'category'); ?>
        <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>
           
  4. Installation of labels code for product page
    Code listed bellow should should be added to media.phtml file in order to display labels on products page. For exampe app/design/frontend/[package]/[theme]/template/catalog/product/view/media.phtml.
    Prolabels code should be placed in 2 places.
    Line 38
    <p class="product-image product-image-zoom">
    <?php
    $_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
    echo $_helper->productAttribute($_product, $_img, 'image');
    ?>
    </p>
           

    Change to:

           
    <div class="prolabel-wrapper">
    <?php echo Mage::helper('prolabels')->getLabel($_product, 'product'); ?>
    
    <p class="product-image product-image-zoom">
    <?php
    $_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image').'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
    echo $_helper->productAttribute($_product, $_img, 'image');
    ?>
    </p>
    
    </div>
           

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

    Change to:

           
    <div class="prolabel-wrapper">
    <?php echo Mage::helper('prolabels')->getLabel($_product, 'product'); ?>
    
    <p class="product-image">
    <?php
    $_img = '<img src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(265).'" alt="'.$this->htmlEscape($this->getImageLabel()).'" title="'.$this->htmlEscape($this->getImageLabel()).'" />';
    echo $_helper->productAttribute($_product, $_img, 'image');
    ?>
    </p>
    
    </div>
           
  5. Content and mobile labels installation on product listing page

    Code listed below should be added to media.phtml file in order to display labels on product listing page on mobile devices. For example:app/design/frontend/[package]/[theme]/template/catalog/product/list.phtml.

    <?php echo $this->getLayout()->createBlock('prolabels/category')->setProduct($_product)->toHtml(); ?>
            
    Content and mobile labels installation on product view page

    Code listed below should be added to media.phtml file in order to display labels on product view page on mobile devices. For example:app/design/frontend/[package]/[theme]/template/catalog/product/view.phtml.

    <?php echo $this->getLayout()->createBlock('prolabels/label')->toHtml(); ?>
            
  6. That's all. Navigate to your store and check how your store looks.
That's all. Navigate to your store and check how your store looks.

If you have any problems with extension installation please contact us at templates-master.com/helpdesk and we will help you with extension installation for free

Common questions and ideas