0

When customview.phtml is loaded we get to know that the product page has opened (app/design/frontend/default/theme659/template/catalog/product/customview.phtml)

But how can we know that which category has opened, when either opened through home page, or opened through any of the links.

I know $category = Mage::registry('current_category'); will provide the current category name, but it will not tell me when its loaded. So, is there a file like customview.phtml for product, similar for category?

Your Answer

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

Browse other questions tagged or ask your own question.