2012-04-23 92 views
0

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

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

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

回答

0

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

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 
0

这里是我是如何做到这一点。我在一个根目录下的测试文件夹中建立了一家新店,同时生产的产品还有销售额,新产品/客户以及库存变化。

您还需要获得所有mage_cataloginventory_stock表:

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

除了上述回答中列出的表,这是正确的,删除我的表(禁用外键检查在drop,truncate从phpmyadmin不工作),这是怎么办

  • 进口数据
  • 重新索引。

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

返回目标数据库首先。