Magmi 一个产品中有大量类别
Magmi a huge amount of categories in one product
在我的 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";
有了这个,我在 MAGMI 的导入过程中遇到了问题 "On the fly category creator":
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 到 "value" 列字段。为什么?我可以改变这个吗?对于 table 中的每一行,应仅保存一个类别路径,例如 "Cartridge Brother/Brother DCP/DCP 190 Series"
如何防止在 Magento 中将所有类别保存到一行 table catalog_category_entity_varchar
?
有没有更好的解决方案来导入带有产品的类别?
已解决,我使用旧的类别早午餐分隔符“,”,在我的即时类别创建者版本中应该是“;;”。
在我的 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";
有了这个,我在 MAGMI 的导入过程中遇到了问题 "On the fly category creator":
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 到 "value" 列字段。为什么?我可以改变这个吗?对于 table 中的每一行,应仅保存一个类别路径,例如 "Cartridge Brother/Brother DCP/DCP 190 Series"
如何防止在 Magento 中将所有类别保存到一行 table catalog_category_entity_varchar
?
有没有更好的解决方案来导入带有产品的类别?
已解决,我使用旧的类别早午餐分隔符“,”,在我的即时类别创建者版本中应该是“;;”。