【问题标题】:Import magento category and product table only仅导入 magento 类别和产品表
【发布时间】:2012-04-23 04:06:21
【问题描述】:

我们现在有两个 magento 应用程序。一个(APP A)具有将在另一个magento应用程序(APP B)中使用的类别和产品数据。

由于APP B有很多新的设置,比如关键词、元描述等,我们不能直接使用APP A的数据库,只能使用类别和产品表。

那么有没有办法将APP A的类别和产品数据库导入APP B?非常感谢!

【问题讨论】:

标签: magento


【解决方案1】:

您需要导出和导入所有类别和产品的数据库表

catalog_category_entity 

catalog_category_entity_datetime 

catalog_category_entity_decimal 

catalog_category_entity_int 

catalog_category_entity_text 

catalog_category_entity_varchar 

catalog_category_flat


catalog_product_entity 

catalog_product_entity_datetime 

catalog_product_entity_decimal 

catalog_product_entity_gallery 

catalog_product_entity_int 

catalog_product_entity_media_gallery 

catalog_product_entity_media_gallery_value 

catalog_product_entity_text 

catalog_product_entity_tier_price 

catalog_product_entity_varchar 

catalog_product_link 

catalog_product_link_attribute 

catalog_product_link_attribute_decimal 

catalog_product_link_attribute_int 

catalog_product_link_attribute_varchar 

catalog_product_link_type 

catalog_product_super_attribute 

catalog_product_super_attribute_label 

catalog_product_super_attribute_pricing 

catalog_product_super_link 

catalog_product_website

【讨论】:

    【解决方案2】:

    我是这样做的。我正在根目录下的测试文件夹中建立一个新商店,同时生产有销售、新产品/客户以及库存变化。

    您还需要获取所有 mage_cataloginventory_stock 表:

    mage_cataloginventory_stock
    mage_cataloginventory_stock_item
    mage_cataloginventory_stock_status
    mage_cataloginventory_stock_idx
    mage_cataloginventory_stock_tmp
    
    • 禁用编译器和缓存,清除缓存

    除了上面答案中列出的正确的表之外,在删除我的表时(在删除时禁用外键检查,截断在 phpmyadmin 中不起作用),这是做什么

    • 导入数据
    • 重新索引。

    媒体(图像)与安装 URL 有关,所以,我将根目录中的生产商店移动到子目录,一切都很好。

    首先备份目标数据库。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2017-12-11
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-19
      • 1970-01-01
      相关资源
      最近更新 更多