基于父子类别的产品列表

问题描述 投票:0回答:0

根据父类别显示父类别,然后显示子类别,然后显示每个子类别的产品项目名称,数量和价格以及每个子类别产品总和在第四 我要这样

| (parent Category Name) TEST | child Cat |Qty    |  Price  |
| --------                    | ----------|       |         |
| Speakers                    |   Kit     |2      |total=300|
| Lights                      |           |4      |         |
| TEST2 (another Parent Cat   | ----------|       |         |
| product 3                   |   Kit2    |5      |total=400|
| Lights 3                    |           |8      |         | 

 
 
php mysql product categories parent
© www.soinside.com 2019 - 2024. All rights reserved.