How to get a category listing from Magento?

后端 未结 8 2090
野性不改
野性不改 2021-01-31 22:33

I want to create a page in Magento that shows a visual representation of the categories.. example

CATEGORY
 product 1
 product 2

ANOTHER CATEGORY
 product 3
         


        
8条回答
  •  庸人自扰
    2021-01-31 23:27

    I adapted this from Paul Whipp's website:

    SELECT e.entity_id AS 'entity_id', vn.value AS 'name'   
    FROM catalog_category_entity e  
    LEFT JOIN catalog_category_entity_varchar vn  
    ON e.entity_id = vn.entity_id AND vn.attribute_id = 33 
    ORDER BY entity_id;
    

    This will provide you with the catalog category IDs.

提交回复
热议问题