Quantcast
Channel: Cogzidel Templates Blog » Magento Admin
Viewing all articles
Browse latest Browse all 10

In Magento: Steps to add New Products in Homepage

$
0
0

In Magento, there is default functionality to show new products in home page. It is possible to display a list of new products in Magento using a default block. You can do this without any coding changes or modifications to Magento itself. This code will allow you to bring up a list of new products on one of your CMS pages. It is also possible to use this to bring new products up within a template file or on your homepage. It’s quite simple to accomplish this, and here is how you can do it.

Display New Products in Magento

The following steps will help you to add new products to a Magento CMS page:

Step 1 : While uploading the product from admin side, you will need to explicitly mark them as new using ‘Set Product as New from Date’ and ‘Set Product as New to Date’ options in the ‘General’ product information page. Please check with the screenshot given below for reference.

newproducts

Step 2 : Next, Go to “CMS – Manage Pages” and select “Home Page” from the list of pages. Paste the below code in the “Content” of the page information.

  1. {{block type="catalog/product_new" name="home.catalog.product.new" alias="product_homepage" template="catalog/product/new.phtml"}}

If you need a product from a specific category on home page, put the below code

  1. {{block type="catalog/product_list" category_id="2" name="home.catalog.product.new" alias="product_homepage" template="catalog/product/featured.phtml"}}

The category ID can be found when you go to “manage category” and then select the category you want. The ID is written in the header.Please check with the below screenshot for reference.

cmshomepage

Step 3 : Finally you will get the output similar to the screenshot given below :

Home-page

Share/Bookmark

Viewing all articles
Browse latest Browse all 10

Trending Articles