Posting in the Magento forums has been disabled pending the implementation of a new and improved forum solution which should better serve the community.

For new questions please post at magento.stackexchange.com, the community-run support site for the Magento community. We will be providing updates on the new forum solution soon. For questions or concerns please email community@magento.com.

Magento Forum

What is $this in Magento template pages, and how do I get a different $this? 
 
HAL10001
Member
 
Avatar
Total Posts:  52
Joined:  2008-06-02
Ann Arbor, MI
 

For instance, on template/catalog/product/view.phtml, if I echo $this, I get:

product.info,catalog/product/view.phtml,Mage_Catalog

However, on template/review/product/detailed.phtml, if I echo $this, I get:

1,product.info,review/product/detailed.phtml,1,Mage_Review

So I want to know, if I’m on catalog/product/view.phtml, how do I get a reference to the $this on review/product/detailed.phtml?

 
Magento Community Magento Community
Magento Community
Magento Community
Magento Community
Magento Community
Back to top