Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <div class="page-title category-title">
- <h1><?php echo $_category->getName(); ?></h1>
- </div>
- <?php
- if (Mage::registry('current_category')) {
- echo Mage::registry('current_category')->getName();
- }
- else {
- $categoryIds = $_product->getCategoryIds();
- if (count($categoryIds)) {
- $firstCategoryId = $categoryIds[0];
- $_category = Mage::getModel('catalog/category')->load($firstCategoryId);
- echo $_category->getName();
- }
- }
- ?>
- <?php if($_category instanceof Mage_Catalog_Model_Category): ?>
- <div class="page-title category-title">
- <h1><?php echo $_category->getName(); ?></h1>
- </div>
- <?php endif; ?>
- <div class="page-title category-title">
- <h1>
- <?php if ($_category instanceof Mage_Catalog_Model_Category) : ?>
- <?php echo $_category->getName(); ?>
- <?php endif; ?>
- </h1>
- </div>
- <?php $_category = Mage::registry('current_category'); ?>
- <?php if($_category instanceof Mage_Catalog_Model_Category && $_category->getId()): ?>
- <div class="page-title category-title">
- <h1><?php echo $_category->getName(); ?></h1>
- </div>
- <?php endif; ?>
- $categoryIds = $_product->getCategoryIds();
- if(count($categoryIds) ){
- $firstCategoryId = $categoryIds[0];
- $_category = Mage::getModel('catalog/category')->load($firstCategoryId);
- echo $_category->getName();
- }
- <div class="page-title category-title">
- <h1><?php if (Mage::registry('current_category')) {
- $_category=Mage::registry('current_category');
- echo $_category->getName();
- } ?>
- </h1>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement