views:

337

answers:

3

I installed Magento v1.3.2.3 and added most of my product inventory. However, I can only get 5 items to display on the homepage. I need all my products to show up there. I have been searching the net for about 3 days and still havent found the answer. Please help.

This is currently the code I am using.

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

I found this on the magento community forum. Many people have been asking the same question it seems.

NOTE: I am not a programmer. Easy explanations please :)

A: 

This link explains how to display products in a particular category on the homepage. You just have to remove the category filter from the code given there to get all the products.

$products   = $product->setStoreId($storeId)  
                      ->getCollection()  
    ->addAttributeToFilter(‘visibility’, $visibility)  
    ->addCategoryFilter($category)  
    ->addAttributeToSelect(array(‘name’), ‘inner’) //you need to select “name” or you won’t be able to call getName() on the product 
    ->setOrder(‘name’, ‘asc’)
;

change this to

$products   = $product->setStoreId($storeId)  
                      ->getCollection()  
    ->addAttributeToFilter(‘visibility’, $visibility)   
    ->addAttributeToSelect(array(‘name’), ‘inner’)
    ->setOrder(‘name’, ‘asc’)
;

That should set you on the right track. Good luck!

Rick J
A: 

Hi, How to display featured products in a particular category on the homepage,then the featured products should not based on the date,it must be depend on some flag,so the featured product should be static page. please help.

A: 

You can find the perfect solutions at here - http://www.cult-f.net/2008/11/17/magento-template-advices/