News:

Support the VirtueMart project and become a member

Main Menu

Products Counting in Category Module

Started by leppard, December 28, 2015, 15:27:09 PM

Previous topic - Next topic

leppard

Hey All,
I am using module called Vina Treeview to display all products in a listed category.

the problem I occur is when I have a one product called assigned in 3 categories the category view shows it like this:
- MAIN CATEGORY (3)
  - Subcategory (2)
     - Sub Subcategory (1)

Is there any solution that would generate a tree like this:
- MAIN CATEGORY (1)
  - Subcategory (1)
     - Sub Subcategory (1)

I know I can assigned a product only to one "Sub Subcategory" category,
but when user click on "MAIN CATEGORY" or "Subcategory" it will give him na results


I would appreciate any word of advise.
Thank You very much :)

Studio 42

Hi,
The current solution is full logic, try the developper support, because i think no one work with this code in this forum.
Regards,
Patrick

leppard

Thank You!

And do you know maybe if there's any place inside VM that could affect the counting or is it strictly module thing?

Studio 42

The current solution to count is same as VM.
It's very time consuming to count another way(as you need), because you have to check all other subcategories to have the right total.
And how to know what is the right total counted ? in main cat, sub cat ... ?