首页 > 解决方案 > 如何在 Magento 中导出类别描述

问题描述

我需要从 Magento 数据库中获取类别描述以在非 Magento 商店中使用。我可以访问 Magento 管理员及其数据库,但看不到如何执行此操作。据我所知,描述在 catalog_category_entity_text 表中。并且类别 ID 在 entity_id 字段中,attribute_id 设置为 44 用于描述。但我找不到如何识别主要类别的 ID。我正在使用以下命令。它确实返回所有描述,但我只需要父类别的描述。有没有办法做到这一点,最好使用mysql,但如果更容易的话,可以通过管理员。

    select ct.value from catalog_category_entity_text ct left join catalog_category_entity_varchar cv on ct.entity_id = cv.entity_id 
     where ct.attribute_id = 44 and cv.attribute_id = 41

标签: magentocategoriesfile-descriptor

解决方案


也许尝试通过以下方式获取类别:

parent_id = 0

在查询中。不确定它在哪个表中。


推荐阅读