首页
学习
活动
专区
工具
TVP
发布
社区首页 >问答首页 >仅当保存在Magento中时才会显示产品

仅当保存在Magento中时才会显示产品
EN

Stack Overflow用户
提问于 2015-07-02 19:20:44
回答 1查看 88关注 0票数 1

我已经成功地将3,000+产品导入到Magento。

所有的产品在后端都是正确的。

但是没有一个产品出现在前端。

所有产品都是:

在Catalog.

  • Enabled.

  • Have中可以看到库存数量为10的
  • 。在Categories.
  • Assigned中的可以找到正确的网站。

我已经刷新了我的缓存和索引,只是为了确保。但是这些产品根本不会出现在前端。

以下是我的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+产品并在每个产品上点击保存更好的解决方案呢?

提前谢谢。

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2015-07-03 03:52:05

我想说,这是因为Magento是进口产品中不存在的默认值。

我会做的是:

选择一个有错误的产品,并在下面的查询中记下它的entity_id

  • Replace
  1. (查找和替换entity_id将起作用):

select entity_id,attribute_id,store_id from catalog\_product\_entity\_datetime where entity_id =275UNION all select entity_id,attribute_id,store_id from catalog\_product\_entity\_decimal where entity_id =275UNION all select entity_id,attribute_id,store_id from catalog\_product\_entity\_int where entity_id =275UNION all select entity_id,attribute_id,store_id from catalog\_product\_entity\_text where = 275 union all select,,store_id from catalog\_product\_entity\_varchar where entity_id =275

  • 在您的DB

  • 上运行此SQL查询将结果导出到某处

  • 转到管理员并保存此产品并确保它在前端

  • 运行您在步骤3中运行的查询。对两个结果进行store_id并找到位于第二个结果中但不是第一个<代码>H223

  • 中的attribute_id对于第一个结果中没有出现但在第二个结果中出现的每个attribute_id,运行以下查询,您相应地更改了attribute_id

从attribute_code from eav_attribute where attribute_id =72

  • 调整您的导出以添加Magento为您输入的默认值

如果在完成这8个步骤后,您仍然没有找到在导入中添加它们的内容和方法,请毫不犹豫地在此答案下编辑您的问题和评论,告诉我您已经这样做了,这样我可能会进一步帮助您。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/31183176

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档