場景: 一個新的空白Magento,帶有一些類別產品和客戶導入,並帶有一些修復程序。將Magento類別複製到父母
分類結構:
Root
L..Category_parent1 (0 products)
L..Category_child1 (22)
L..Category_child2 (34)
L..Category_parent2 (0)
L..Category_child1 (22)
L..Category_child2 (34)
L..Category_parent3 (0)
L..Category_child1 (22)
L..Category_child2 (0)
L..Category_child2_child1 (22)
L..Category_child2_child2 (34)
L..Category_child3 (10)
我想將所有產品從使用SQL查詢或PHP腳本子類別的相對父。 (我不知道是否可以通過Magento管理員執行此操作)。
所需的結果:
Root
L..Category_parent1 (22 + 34 products)
L..Category_child1 (22)
L..Category_child2 (34)
L..Category_parent2 (22 + 34)
L..Category_child1 (22)
L..Category_child2 (34)
L..Category_parent3 (22 + 22 + 34 + 10)
L..Category_child1 (22)
L..Category_child2 (22 + 34)
L..Category_child2_child1 (22)
L..Category_child2_child2 (34)
L..Category_child3 (10)
更新! 有沒有辦法只在展示產品上做到這一點? 以這種方式查看產品manteining relashionship與他們自己的類別(只需在列表中查看佈局...)?
的作品,但我認爲這是更好地做到這一點的查看模式(出於某些實際原因:將所有產品(放置類別)移動到一個類別中,而不必考慮它放在哪裏的產品) – 2010-09-09 00:27:06