Magento : Display all products with their Categories on Home Page -


i need display products assigned categories on home page of website below.

category      category b      category c           ----------      -----------     ----------               product       product b       product c 

in cms > home page > content section have included block

{{block type="catalog/product_list" name="homeproduct_list" template="catalog/product/list.phtml"}} 

here catalog/product/list.phtml default magento list.phtml without modifications.

my products displayed on home page if assign product category default category (root category)

for ex: product assigned default category (root) , categopry 

if assign product category (which want) not show products on home page.

the issue here not 1 how display products in homepage? why have assign product default category (root) in order display on home page.

thanks.

because when have database table catalog_category_entity store category id first must root category/subcategory/subcategory[if] , when fetch so,you have first must assign root category subcategory

$product->getcategoryids() category id please check image 

image


Comments

Popular posts from this blog

python - Subclassed QStyledItemDelegate ignores Stylesheet -

java - HttpClient 3.1 Connection pooling vs HttpClient 4.3.2 -

SQL: Divide the sum of values in one table with the count of rows in another -