Magmi在一个产品中有大量的类别

时间:2015-12-29 12:52:58

标签: magento magmi

在我的Magmi CSV中,每个产品都设置为50个或更多类别。

CSV列"categories"的值如下所示:

"Cartridge Brother/Brother DCP/DCP 365 CN,Cartridge Brother/Brother DCP/DCP 365 CN,Cartridge Brother/Brother DCP/DCP 373 CW,Cartridge Brother/Brother DCP/DCP 375 CW,Cartridge Brother/Brother DCP/DCP 377 CW,Cartridge Brother/Brother DCP/DCP 383 C,Cartridge Brother/Brother DCP/DCP 385 C,Cartridge Brother/Brother DCP/DCP 387 C,Cartridge Brother/Brother DCP/DCP 395 CN,Cartridge Brother/Brother DCP/DCP 145 C,Cartridge Brother/Brother DCP/DCP 6690 CW,Cartridge Brother/Brother DCP/DCP 585 CW,Cartridge Brother/Brother DCPJ/DCPJ 715 W,Cartridge Brother/Brother DCP/DCP 163 C,Cartridge Brother/Brother DCP/DCP 165 C,Cartridge Brother/Brother DCP/DCP 167 C,Cartridge Brother/Brother DCP/DCP 185 C,Cartridge Brother/Brother DCP/DCP 195 C,Cartridge Brother/Brother DCP/DCP 197 C,Cartridge Brother/Brother MFC/MFC 5490 CN,Cartridge Brother/Brother MFC/MFC 5890 CN,Cartridge Brother/Brother MFC/MFC 5895 CW,Cartridge Brother/Brother MFC/MFC 255 CW,Cartridge Brother/Brother MFC/MFC 250 C,Cartridge Brother/Brother MFC/MFC 290 C,Cartridge Brother/Brother MFC/MFC 295 CN,Cartridge Brother/Brother MFC/MFC 297 C,Cartridge Brother/Brother MFC/MFC 6490 CW,Cartridge Brother/Brother MFC/MFC 990 CW,Cartridge Brother/Brother MFC/MFC 6690 CW,Cartridge Brother/Brother MFC/MFC 6890 CDW,Cartridge Brother/Brother MFC/MFC 6890 CW,Cartridge Brother/Brother MFCJ/MFCJ 615 W,Cartridge Brother/Brother MFC/MFC 795 CW,Cartridge Brother/Brother MFC/MFC 490 CW,Cartridge Brother/Brother MFC/MFC 790 CW,Cartridge Brother/Brother DCP/DCP 160 Series,Cartridge Brother/Brother DCP/DCP 190 Series,Cartridge Brother/Brother DCP/DCP 370 Series,Cartridge Brother/Brother DCP/DCP 380 Series,Cartridge Brother/Brother MFC/MFC 250 Series,Cartridge Brother/Brother MFC/MFC 290 Series,Cartridge Brother/Brother MFC/MFC 490 CN,Cartridge Brother/Brother MFC/MFC 490 Series,Cartridge Brother/Brother MFC/MFC 790 Series"; 

有了这个,我在导入MAG​​MI“动态类别创建者”时遇到了问题:

SQL Error: 1406 Data too long for column 'value' at row X (table catalog_category_entity_varchar)

varchar(255)中有一个名为“value”的列。当我将这种格式更改为text(2000)时,它将开始使Magento在另一部分出现故障,这似乎是永无止境的故事和糟糕的解决方案。

我发现每个类别路径都不长。它有标准长度约100个字符。但是Magmi试图将所有类别保存到MySQL以“重置”列字段。为什么?我能改变吗?对于表中的每一行,只应保存一个类别路径,如“Cartridge Brother / Brother DCP / DCP 190系列”

如何防止在Magento表catalog_category_entity_varchar将所有类别保存到一行?

有哪些更好的解决方案可以在产品类别中导入这一类?

1 个答案:

答案 0 :(得分:0)

解决了,我使用旧类别早午餐分隔符“,”,在我的版本的动态类别创建者应该是“;;”。