Magento product view page analysis (available in PDF)

Posted by Branko Ajzele under Magento @ 16th OCT 2008

One of the most edited file in Magento is the template file View.phtml file. Reason for this is that a lot of clients would like to rearrange it differently on their online stores. Here is the analysis of that file and the list of all the methods it uses.

Magento product view page analysis (ready for print PDF)

Document above reflects Magento 1.1.6. methods and classes.

One thing to keep in mind, this document shows you the View.phtml block file and shows you it’s inherited methods. All of the Magento block files have the similar inheritance principle. Therefore to find out the available methods all you need to do is open up the extended (inherited) classes.

If you are using some smart IDE solution like NetBeans 6.5 with PHP code completion support, you can simply do the Mage_Catalog_Block_Product_View-> and press the Ctrl + Space to get the dropdown list of all the available methods. If that’s not the case, then you will how to do the things the manual way.

Hope some of you would find this useful.

Enter your email address to subscribe to new posts:

4 Responses to “Magento product view page analysis (available in PDF)”


What app/utility provided this breakdown of available methods and hierarchy?


I have just started using Magento, so far so good. Allthough in a rush at the moment so I can’t read all your posts, I’m adding this to Delicious.

The community over at Magento seems great too, however I wish there where just one giant walkthrough of making your own theme, from start to finish.


Hi Scott,

Not sure if I understood you correctly… All of the stuff in the PDF file was done in by NetBeans and simple screen shooting :)

In NetBeans 6.5 you have an option to right click the class name then select Go to Declaration, or you can simply click the class name and wait about second or two until it gets highlighted then click Ctrl + B to do the same thing.


Hi,

thanks for a very clean analysis of the View.phtml page.
I am trying to make this page a bit customized, can you suggest me how to add a link to print the current product details on this page..

Any suggestions would be really helpful.

Thanks,
Vibhor

Leave a Reply