Blocks in magento

All of us know little bit about magento, it’s really wonder full open source to build rapid shopping cart, also it suites for big scale online shopping businesses. But tricky thing is little bit complicated to the developer to customize further. Any how we are here to help those buddies.
And also we are ready to learn new things from you as well.

Block: Basically block is an information source for the views in the Magento.
As we are all already aware of the MVC design pattern, Accordingly Magento terminology we have Static blocks, and Dynamic blocks.

For Static blocks we have we have an admin interface to add/edit/delete static content and can access it with static block identifier where ever we need.

If we want to add a static block in a Magento CMS page below is the code

{{block type="cms/block" block_id="sample"}} // here sample is static block identifier

To add in phtml file below is the code

test() ?>

Hope’s it helps u all
Happy blogging……..

6 Responses to Blocks in magento

  1. Really impressed! Everything is very, very clear, open is a description of the problem.It contains the information.I wanted to let you know that I linked to your site with a dofollow links so visitors can come to see your blog.It is all very new to me and this article really opened my eyes,and I guess since I like reading your blog, others will too.You can find the link to your site here:

  2. Thanks for all your efforts that you have put in this. Very interesting info. “The more I live, the more I think that humor is the saving sense.” by Jacob August Riis.

  3. Totally awesome.

  4. I simply want to mention I’m all new to weblog and certainly savored this website. Almost certainly I’m want to bookmark your blog . You certainly have incredible articles. Appreciate it for sharing with us your website page.

  5. great article. we will contact you in the future

  6. Very good post. I certainly love this website. Thanks!

Leave a Comment


six + = 7