Prolabels installation instructions

Thank you for downloading our magento extension. Please follow these instructions to proceed with the installation of your theme:

Turn store compilation off:

Navigate to Admin -> Tools -> Compilation and deactivate compilation mode for your store.

Copy all files into your magento directory:

Simply copy all files from "extension source x.x.x" directory into your magento store directory.

Turn your magento cache off:

Navigate to Admin -> System -> Manage Cache and deactivate cache for your store. You can enable it after extension installation will be finished.

Refresh your admin user access rights:

Simply logout from your store admin and then login back.

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

There are no product questions yet.

Ask Your Question

* Required Fields

Get Discount!

Get your personal discount !

Like us on Facebook, post a Tweet or rate us at Google Plus to get instant 10% OFF on any purchase from our store.

Please make your choice
Discount Coupon Code

Back to top