0

I added custom field to the category admin. Now I can get this in viewer.

<?php echo $_category->getInternalTitle() ?>

But how to change default category H1 title(name) to this "internal_title"?

3

Edit the template file app/design/frontend/{package}/{theme}/template/catalog/category/view.phtml and replace the line:

<h1><?php echo $_helper->categoryAttribute($_category, $_category->getName(), 'name') ?></h1>

with

<h1><?php echo $_helper->categoryAttribute($_category, $_category->getInternalTitle(), 'internal_title') ?></h1>
  • Category title isn't to this file. It is some where outside – Morgan Free Feb 17 '15 at 8:05

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.