Login:
Password:
Remember password Show my name in the online users list
Forgot password?
For instance - I’ve changed Short Description to read Ingredients - but for the products of some categories I want that to say Contents instead. So, I need to know how to get the category name or id.
Thanks, Heather
You can create another text attribute and put there values per product (Short Description, Ingredients), and then use it in your template?
- I would love to change the world, but they won’t give me the source code -
Thanks Moshe! That did the trick. I guess I was coming at it from the wrong direction.
Just out of curiosity though - is there a way to get the current category on a product page?
Heather
If you add it in Custom Layout XML:
<reference name="content> <block type="catalog/product_list" template="catalog/product/list.phtml"/></reference>
<?=$this->getLayout()->createBlock('catalog/product_list')->setTemplate('catalog/product/list.phtml')->toHtml()?>
This will show category product list if you came to product page from a category.