2015-07-02 25 views
1

我已成功將3,000多種產品導入Magento。僅當保存在Magento中時纔會顯示產品

產品在後臺都存在並且正確。

但是沒有一款產品出現在前端。

所有的產品有:

  • 可見的目錄。
  • 啓用。
  • 庫存數量爲10.
  • 有貨。
  • 分配了各種類別。
  • 指定給正確的網站。

我刷新了緩存和索引,只是爲了確保。但產品並沒有出現在前端。


如這裏要求都在我的CSV文件中使用的列:

status type attribute_set tax_class_id visibility qty is_in_stock product_id name short_description description rrp weight mpn gtin sku price color_text size stock_weight category_ids brand small_image


但是有一個解決方案!

如果我在Megento的後端查看產品,只需點擊Save,它就會出現在前端。

有沒有人對我有更好的解決方案,比打開所有3000+產品並擊中每一個都省錢?

在此先感謝。

+0

您可以選擇網格中的所有產品並選擇更新屬性部分。只需再次更新可視性。 –

+0

對不起,沒有工作:( – Jimmery

+0

請在此提供CSV文件的列 –

回答

1

我想說這是因爲Magento默認您的進口產品中沒有的價值。

我會做的是:

  1. 選擇越野車的產品,並注意其entity_id
  2. 查詢波紋管替換此entity_id(查找和替換275將工作):

    select entity_id, attribute_id, store_id from `catalog_product_entity_datetime` where entity_id = 275 
    union all 
    select entity_id, attribute_id, store_id from `catalog_product_entity_decimal` where entity_id = 275 
    union all 
    select entity_id, attribute_id, store_id from `catalog_product_entity_int` where entity_id = 275 
    union all 
    select entity_id, attribute_id, store_id from `catalog_product_entity_text` where entity_id = 275 
    union all 
    select entity_id, attribute_id, store_id from `catalog_product_entity_varchar` where entity_id = 275 
    
  3. 在您的數據庫上運行此SQL查詢

  4. 將結果導出到某處
  5. 轉到管理員並保存該產品並確保它在前端運行
  6. 運行您在步驟3上運行的查詢。再次
  7. 比較兩個結果,並找到attribute_id是在第二個結果,但不是第一
  8. 對於每個attribute_id沒有出現在第一,但出現在第二個結果,運行此查詢,你改變了attribute_id因此:

    select attribute_code from eav_attribute where attribute_id = 72 
    
  9. 適應您的出口增加默認值的Magento是投入了你的那些屬性

如果在第一步8之後,你仍然沒有找到什麼以及如何將它們添加到你的導入中,請不要猶豫,在這個答案下編輯你的問題和評論,告訴我你做了,所以我可以幫你進一步。

相關問題