How to call any template inside phtml file magento
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
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
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
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 …