Pages

Displaying Products in Magento Home / Front Page

It's been a long time since my last post, i've been very busy with magento and now i want to share what i know just in case someone need it.

Ok, as i already mention in my last post that magento is a lil ( a lot?) bit confusing to me because some times we need to write a script or line of code to make things work. Not everything can be set and arrange from GUI just like i did with a CMS. My last problem is how to display products on my magento store frontpage, i've clicked around and found CMS menu that lead me to Manage Pages interface. From here i saw lists of pages that i can manage and obviously i choose home page coz i thought there's a lot of settings in there that can grant my wish to displaying my products on home page, but...........


That's the story and now here's how to :

Don't forget to create a category and make it child and anchor of default category.
Create your products as much as possible :D and assign it to the right category.
Goto CMS->Manage Pages.
Click on Home Page.
In General Information tab there's Content text input box. This is where you type this code :





To display new product :
{{block type="catalog/product_new" name="home.catalog.product.new" alias="product_new" template="catalog/product/new.phtml"}}

To display most viewed product :
{{block type="mostviewed/list" name="home.mostviewed.list" alias="product_homepage" template="catalog/product/list.phtml"}}

To display product from a category :
{{block type="catalog/product_list" category_id="Category-ID” template="catalog/product/list.phtml"}}

To display random products :
{{block type="catalog/product_list_random" template="catalog/product/list.phtml"}}

That's how to display a products on home page, make me crash since i'm not a teachie guy but i'll live :D
Well, i hope that will help someone who don't already know how to display products on magento home page.



17 comments:

  1. hey..thanks man..
    this is what i was looking for. :>

    ReplyDelete
  2. Thanks for helping me out because this problem was freaking me out for last two months. You have done a great job.
    E-commerce Website Template

    ReplyDelete
  3. Very nice post about magento eCommerce site. Keep it up more magento eCommerce post.Magento eCommerce

    ReplyDelete
  4. i used the following code on home page

    {{block type="catalog/product_list_random" template="catalog/product/list.phtml"}}

    the result is display normally but "8" is display top of the content. Please answer the solution.

    ReplyDelete
  5. STC Technologies are recognized widely and provides up-to date technology to the candidates.STC Technologies

    ReplyDelete
  6. Magento allows its users to have complete control over the look, content, and functionality of their e-Commerce website. Magento Programmers India

    ReplyDelete
  7. Awesome post! really wonderful magneto e-commerce website that distinguish various functionality display products on magento home page.I am very much impressed with imaginary blog. Thanks for sharing with us.

    ReplyDelete
  8. Excellent post.I want to thank you for this informative read, I really appreciate sharing this great post. van hire luton airport

    ReplyDelete
  9. This comment has been removed by the author.

    ReplyDelete
  10. Hi! I have 1.5 years experience. I search in Google so Many Websites & Blog but you’re blog and post really is too good its title, description, images your content style is really good and I feel glad when post read Magento CMS Development

    ReplyDelete
  11. Great Read! I am impressed on how you make your article easy to understand. I'll come back for more :D

    Japs Buidon is a Social Media Specialist and belongs to a team of Magento Developer in Florida. For more tutorial and tips you can follow him here -> http://alwaysopencommerce.com/

    ReplyDelete
  12. Nice blog, thank you for sharing the useful information magento development company india

    ReplyDelete
  13. magento website are developed so that the website looks attractive and with modernized look.Magento Development India

    ReplyDelete
  14. Magento based shopping carts are gaining popularity all over the world now and have become the most preferred choice for merchants and developers.
    SEO Company in Bangalore | Logo Design Company in Bangalore

    ReplyDelete
  15. Thanks for the best blog.it was very useful for me.keep sharing such ideas in the future as well.this was actually what i was looking for,and i am glad to came here!
    magento development company in bangalore 

    ReplyDelete