DylzEn Posted September 25, 2012 Posted September 25, 2012 (edited) Hi everyone. I know this has been asked multiple times but I can't see to find a solution even after days of searching. I would love to get help on how to show the sum of the products that are in subcategories next to a parent category, like this for example: - Apple Products (3) // main category - iPod (1) // subcategory - iPod Nano (1) //sub-subcategory - iPhone (2) // subcategory - iPhone 4 (1) //sub-subcategory - iPhone 5 (1) //sub-subcategory So far, following hints from these forums, I managed to get to show the correct number of products only for the categories or subcategories that actually have products in it. That is, if I have 1 iPhone 4 and 1 iPod Nano in my store, the tree is shown like this: - Apple Products (0) // main category - iPod (0) // subcategory - iPod Nano (1) //sub-subcategory - iPhone (0) // subcategory - iPhone 4 (1) //sub-subcategory - iPhone 5 (0) //sub-subcategory So, the problem is I'd like to show the sum of all the products that are in the subcategories next to the main parent category, instead of that zero. I don't know if I made myself clear, and sorry for my english as it's not my first language. Tell me if you need me to post the content of any file for better understanding. I hope you guys can help me out with this and I thank you for your time. Best regards, Dylan Edited October 2, 2012 by DylzEn (see edit history) Share this post Link to post Share on other sites More sharing options...
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!Register a new account
Already have an account? Sign in here.Sign In Now