Magento product view page analysis (available in PDF)

Featured Image

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.


7 comments

  1. Heh there,

    Might any one of you know how to get the product Id of a configurable product-attribute after the user has made a selection. I just cannot get this information, neither from prototype.js nor from Configurable.php.

    If it is possible to show the products as a list with their individual attributes that could help as well.

    Any help will be appreciated.

    cheers,
    Kevin

  2. 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

  3. 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.

  4. 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.

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes: <a href="" title=""> <blockquote cite=""> <code> <del datetime=""> <em> <s> <strike> <strong>. You may use following syntax for source code: <pre><code>$current = "Inchoo";</code></pre>.