Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php $categories = $_product->getCategoryIds(); ?>
- <?php
- foreach($categories as $k => $_category_id):
- $_category = Mage::getModel('catalog/category')->load($_category_id)
- ?>
- <a href="<?php echo $_category->getUrl() ?>"><?php echo $_category->getName() ?></a>
- <?php endforeach; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement