I want to add category name in product page left column top, I have created new page called 2columns-left-product.phtml to display a product purpose. Now, I want to display a category name in left column. I just used this code,
but it didn't work for me.
It will return
fatal error[ Fatal error: Call to a member function getCategoryIds() on a non-object in /home/mtccom/public_html/m/app/design/frontend/default/theme697/template/page/2columns-left-product.phtml on line 100].
Can you guide me to fix this.
I want to add a link to a category, My new code: