【问题标题】:Which MySQL database tables contain the data for the stores in Magento 1.x?哪些 MySQL 数据库表包含 Magento 1.x 中存储的数据?
【发布时间】:2011-02-01 16:15:07
【问题描述】:

我想通过 MySQL 为每个商店检索以下数据,以便我可以在我的 PHP 代码中构建数据结构:

READ in from MySQL:
  3. all active stores:
     3.1 store package (enterprise)  
     3.2 magento default theme (default)        
     3.3 store default theme  
     3.4 store layout
     3.5 store templates 

我尝试在更改商店的管理数据之前进行比较,但是在比较更改前后的 2 个 MySQL 转储文件时达到了内存限制。

【问题讨论】:

    标签: mysql magento magento-1.9


    【解决方案1】:

    店铺信息可见

    select * from core_store
    

    当前设计的变化可以在

    中找到
    SELECT * FROM design_change
    

    包/主题/布局信息是配置,可以在

    select * from core_config_data
    

    如果没有为配置项设置值,则此表中将没有值。默认配置值保存在每个模块的config.xml 中,在<default /> 节点下。

    冒着先令的风险(这是我的产品),Commerce Bug 之类的工具可以快速列出 Magento 用于在管理员中获取这些对象的集合对象,这可以快速指向您需要的数据库表。

    【讨论】:

    • +1 用于 Commerce Bug 先令,我只使用它大约 3% 的时间,但它确实可以节省 3% 的时间。
    猜你喜欢
    • 1970-01-01
    • 2012-05-19
    • 1970-01-01
    • 2013-11-17
    • 1970-01-01
    • 2011-02-09
    • 1970-01-01
    • 2014-01-12
    • 1970-01-01
    相关资源
    最近更新 更多