【问题标题】:Products only appear when saved in Magento产品仅在保存在 Magento 时出现
【发布时间】:2015-07-02 11:20:43
【问题描述】:

我已成功将 3,000 多种产品导入 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 多种产品并为每一种都点击保存更好的解决方案?

提前致谢。

【问题讨论】:

  • 您可以从网格中选择所有产品并选择更新属性部分。只需再次更新可见性。
  • 对不起,那没用 :(
  • 请在此处提供 CSV 文件的列
  • @EmiproTechnologiesPvt.Ltd.完毕! :)
  • 这是因为导入后没有正确设置产品对象。快速解决方案是 .... 转到系统-> 配置-> 目录-> 库存-> 产品库存选项-> 管理库存 = 不,这对我有用 .. :)

标签: magento


【解决方案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 步之后,您仍然没有找到在导入中添加它们的内容和方法,请随时编辑您的问题并在此答案下发表评论,告诉我您做到了,所以我可以进一步帮助您.

【讨论】:

    猜你喜欢
    • 2016-02-11
    • 1970-01-01
    • 1970-01-01
    • 2011-11-13
    • 1970-01-01
    • 2013-01-17
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多