Magento 产品导入 产品导入后不会显示在目录中

发布于 2024-09-16 11:27:34 字数 575 浏览 5 评论 0原文

几天前我问了一个类似的问题,但没有得到任何解决我的问题的答案 此处

我已经尝试了一切方法来使其正常工作,但我觉得它缺少一些微不足道的东西。我以前用过magento,从来没有遇到过这样的问题。

基本上所有产品都正确导入,它们只是不会显示在目录中,除非我进入产品并单击“保存”...我什至不需要更改任何内容,只需单击“保存”.. 需要导入的近 2000 个产品将是非常乏味。

我已经设置好了其他一切,但我只是停留在最后一点,需要尽快完成。

我已经在 2 台 1.4.0 和 1.4.1.1 电脑上进行了测试,结果均相同

CSV 外观的链接 http://www.mediafire.com/?01y15k7wv015qwe

再次感谢

I asked a similar question a couple days ago and didn't get any answers that solved my problem here

Ive tried everything to get this to work i feel like its something trivial im missing. I have used magento before and never had any problems like this.

Basically all the products import correctly they just dont show up in the catalog unless i go into the product and click save... i dont even need to change anything just hit save.. with almost 2000 products that need to be imported it would be very tedious.

I have everything else set up and im just stuck at this last point and need to get it done asap.

I HAVE tested on 2 pcs with 1.4.0 and 1.4.1.1 all with the same results

LINK TO WHAT CSV LOOKS LIKE http://www.mediafire.com/?01y15k7wv015qwe

Thanks again

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(3

献世佛 2024-09-23 11:27:34

由于它可能是任意数量的东西,请尝试以下操作:

  1. 在 Magento 中创建一个新产品,并确认它显示在前端。
  2. 之后从电子表格中导入 1 个产品。
  3. 进行产品导出并比较两种产品。这应该向您指出差异并帮助您找出答案。

Since it could be any number of things, try this:

  1. Create a new product in Magento, and confirm that it shows up on the frontend.
  2. Import 1 product from your spreadsheet after that.
  3. Do a product export and compare the two products. This should point out to you the differences and help you figure it out.
深陷 2024-09-23 11:27:34

运行此 SQL 命令。我有这个问题很长时间了。

INSERT INTO mg_catalog_product_entity_media_gallery (attribute_id, entity_id, `value`)
SELECT ga.attribute_id, v.entity_id, v.value
FROM mg_catalog_product_entity_varchar v
INNER JOIN mg_eav_entity_type et ON et.entity_type_code='catalog_product'
INNER JOIN mg_eav_attribute va ON va.entity_type_id=et.entity_type_id AND va.frontend_input='media_image' AND va.attribute_id=v.attribute_id
INNER JOIN mg_eav_attribute ga ON va.entity_type_id=et.entity_type_id AND ga.attribute_code='media_gallery'
LEFT JOIN mg_catalog_product_entity_media_gallery g ON g.entity_id=v.entity_id AND g.value=v.value
WHERE v.value<>'no_selection' AND v.value<>'' AND g.value IS NULL;

其他人做了这个sql命令。别给我信用。

Run this SQL command. I had this issue for a long time.

INSERT INTO mg_catalog_product_entity_media_gallery (attribute_id, entity_id, `value`)
SELECT ga.attribute_id, v.entity_id, v.value
FROM mg_catalog_product_entity_varchar v
INNER JOIN mg_eav_entity_type et ON et.entity_type_code='catalog_product'
INNER JOIN mg_eav_attribute va ON va.entity_type_id=et.entity_type_id AND va.frontend_input='media_image' AND va.attribute_id=v.attribute_id
INNER JOIN mg_eav_attribute ga ON va.entity_type_id=et.entity_type_id AND ga.attribute_code='media_gallery'
LEFT JOIN mg_catalog_product_entity_media_gallery g ON g.entity_id=v.entity_id AND g.value=v.value
WHERE v.value<>'no_selection' AND v.value<>'' AND g.value IS NULL;

Somebody else made this sql command. Don't give me credit.

酷到爆炸 2024-09-23 11:27:34

此外,如果保存它确实可以解决问题,您可以使用批量更新功能并点击所有产品的编辑,然后保存这也可能使它们更新。那么你就不需要单独检查每一个。

Also, if saving it does resolve it you could use the mass update function and hit edit for all products then save that might also get them updated. Then you wont need to go through each individually.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文