magento - 如何在 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
解决方案
也许尝试通过以下方式获取类别:
parent_id = 0
在查询中。不确定它在哪个表中。
推荐阅读
- javascript - Firefox 后退按钮循环 window.location.hash 重定向
- angularjs - $http.post angularJS 与文件。ASP.NET
- c# - C# WPF/DataGrid:TextBox 是否提供了 UserControl 没有的东西
- react-native - 如何在 Expo 中添加 Agora.io、Android sdk?
- javascript - 如何在调试模式下设置 graphql-js 模块
- java - 尝试在 Mac 上卸载 java 失败
- mysql - 创建一个触发器,将字段添加到 +5 并在另一个表中创建总计
- java - 如何仅将线程的值与同一线程的其他线程相加
- java - 从eclipse中的maven项目调用方法java
- python - 在 Pandas 中应用列作为聚合参数时按多列分组和聚合?