VirtueMart Forum

VirtueMart 2 + 3 + 4 => Frontend Modules => Topic started by: leppard on December 28, 2015, 15:27:09 PM

Title: Products Counting in Category Module
Post by: leppard on December 28, 2015, 15:27:09 PM
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 :)
Title: Re: Products Counting in Category Module
Post by: Studio 42 on December 28, 2015, 16:54:30 PM
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
Title: Re: Products Counting in Category Module
Post by: leppard on December 28, 2015, 17:33:43 PM
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?
Title: Re: Products Counting in Category Module
Post by: Studio 42 on December 28, 2015, 22:24:18 PM
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 ... ?