jcadima
6/8/2017 - 1:29 PM

Get Product Tags

Get Product Tags


https://stackoverflow.com/questions/18675059/how-can-i-call-programmatically-a-product-description-in-magento-1-7-0-2

<?php 

$model=Mage::getModel('tag/tag');
    $tags= $model->getResourceCollection()
        ->addPopularity()
        ->addStatusFilter($model->getApprovedStatus())
        ->addProductFilter(PRODUCT_ID)
        ->setFlag('relation', true)
        ->addStoreFilter(Mage::app()->getStore()->getId())
        ->setActiveFilter()
        ->load();

    if(isset($tags) && !empty($tags)):
        foreach($tags as $tag):
            echo '<span class="tag">'.$tag->getName().'</span>';
        endforeach;