I want to know the proper way of identifying a template file.
For e.g.
In my basket page (cart.phtml) there is a code like...
PHP Code:
echo $this->getChildHtml('shipping');
I searched for the template for this as follows.....
1. I checked "checkout.xml" file for the handle <checkout_cart_index>. And find where it is written "as='shipping'" and found that code as follows...
<block type="checkout/cart_shipping" name="checkout.cart.shipping" as="shipping" template="checkout/cart/shipping.phtml"/>
2. So I checked the "checkout/cart/shipping.phtml" file and try to modify it. But nothing happend. so i confirmed that it is not the right phtml file i am looking for.
3. Then when I enable "Template Path Hints" from admin side , then came to know that it is coming from a different folder and it is due to the extension used. And in its layout file it is written as
<checkout_cart_index>
<reference name="checkout.cart">
<block type="webshopapps_productmatrix/checkout_cart_shipping" name="checkout.cart.shipping" as="shipping" template="webshopapps/productmatrix/checkout/shipping.phtml"/>
</reference>
</checkout_cart_index>
So My question is ,what is the proper way to know the template files which is used in our page as ChildHtml ?
View more threads in the same category:
Bookmarks