×
Login or create an account
If you have an account with us, please log in.

You have no items in your shopping cart.

How to modify templates

If you have no idea how to modify templates of Product Labels Magento extension, please follow the instructions below.
 
1) Open file app/design/frontend/Your_Theme_Package/Your_Theme/template/catalog/product/list.phtml
 
 
------- Find the first instance product image code:
 
 
<?php // Product Image ?>
<a href .......</a>
 
 
---- and wrap it with our code as done below:
 
 
<div class="amlabel-div">
<?php echo Mage::helper('amlabel')->getLabels($_product) ?>
 
<?php // Product Image ?>          
<a href .......</a>
 
</div>
 
 
------- Then find the second instance product image code:
 
 
<a href="<?php echo $_product->getProductUrl() ?>" title="<?php echo $this->stripTags($this->getImageLabel($_product, 'small_image'), null, true) ?>".....</a>
 
 
---- and also wrap it.
 
 
 
2) Open file app/design/frontend/Your_Theme_Package/Your_Theme/template/catalog/product/view/media.phtml
 
 
------- Find product image code:
 
 
<p class="product-image product-image-zoom">....</p>
 
 
---- and wrap it with our code as done below:
 
 
<div class="amlabel-div">
<?php echo Mage::helper('amlabel')->getLabels($_product, 'product') ?>
 
<p class="product-image product-image-zoom">.....</p>
 
</div>
 
 
 
3) Log in as admin and refresh all caches (System > Cache Management).
See more details on Product Labels page
Rate the answer?
Back to top