Created
October 4, 2013 09:50
-
-
Save wcodex/6823571 to your computer and use it in GitHub Desktop.
How to display the category Name in catalog/product/list.phtml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/*This code is used to display the caterogy name in list.phtml file*/ | |
echo $this->getLayer()->getCurrentCategory()->getName() | |
/*How to hide or delete the page title on same list.phtml | |
1. go to catalog/categoy/page.phtml | |
2. Comment out or delete follwing code | |
*/ | |
<div class="page-title"> | |
<h1><?php echo $this->getTitle() ?></h1> | |
</div> | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment