How to call any template inside phtml file magento

Posted by on May 4, 2013 in Magento, Php | No comments yet

Sometimes you want to call a block inside a .phtml file without defining in layout. In this case, we can use a method called toHtml of a block. Assume that we have a block called Mymodule and a template that …

How to add static blocks inside the phtml file

Posted by on Dec 10, 2012 in Magento | No comments yet

We can insert the static blocks inside an phtml file by using the identifier of the static block we created in the admin panel of magento Here is the code to do so, In this case identifier must be replaced …

How to get the skin,media url in magento

Posted by on Nov 19, 2012 in Magento | No comments yet

we can call the images and js files inside the template’s skin folder in an phtml file by the following code snippet And in static block we can call it as To get the media url in static block use …

Get product attribute in phtml file

Posted by on Oct 3, 2012 in Magento | No comments yet

When creating custom themes in magento we are indeed to get the product attributes in the template files.In this post i am showing you how to get product attribute in phtml file you can Access the product attribute in the …

Load More