我需要从Magento数据库中获取类别描述,以便在非Magento商店中使用。我可以访问Magentos管理员及其数据库,但是看不到该怎么做。据我所知,描述在catalog_category_entity_text表中。并且类别ID在entity_id字段中,并且attribute_id设置为44进行描述。但是我找不到如何识别主要类别的ID。我正在使用以下命令。它确实返回所有描述,但是我只需要父类别的描述。有没有办法做到这一点,最好是使用mysql,但如果更容易的话,可以通过admin。
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
也许尝试使用:]获得类别。
parent_id = 0
在查询中。不确定它在哪个表中。