我的问题是在导入数据时获得正确的菜单结构。
我使用 Magento 1.9.2.2
我以 CSV 格式接收我的数据,如下所示:
"sku","Cat1","Cat2","Cat3","Cat4"
"001","Plumbing","Pressfittings & pipes","Unipipe - MLC","Clutch"
"002","Tools","Handtools|Pipetools","Pipetools|Pipecutters & Scissors","Plastic scissors"
"003","Tools|Plumbing","Handtools|Pipetools|Pipes & Fittings","Pipetools|Calibration|Alupex fittings & tubes","Calibration tools|Tools for alupex"
我做了一个小程序来去掉“|” 以及之后发生的事情,因此:
"002","Tools","Handtools|Pipetools","Pipetools|Pipecutters & Scissors","Plastic scissors"
变成:
"002","Tools","Handtools","Pipetools","Plastic scissors"
但我很想创建所有底层类别,所以我也为 sku 002 获得了这个:
"002","Tools","Pipetools","Pipecutters & Scissors","Plastic scissors"
我相信 Magento 以某种方式使用了该结构,但我很难弄清楚如何导入它。
手动创建类别后,我尝试了 Magento 的正常导入,但这不起作用。我也尝试使用 Magmi 创建它们,但我也无法让 Magmi 使用多个主类别和子类别。
有没有人看过这种数据格式并有正确方向的线索,如何将其导入菜单结构?
我总共有 2500 个主要和子类别,因此手动创建它们根本行不通。
欢迎提出想法、问题或意见!:)