2012-04-23 94 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有關,所以,我將一個生產商店根目錄移動到子目錄,一切都很好。

返回目標數據庫首先。