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

You have no items in your shopping cart.

Frequently Asked Questions

How can we help you?

banner image

How to modify templates

See more details on Product Labels page
User Guide
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
User Guide
Rate the answer?

Total rating: 3.5

If you didn’t find the answer on your question, please, ask here:

Back to top