I'm wanting to filter a list of product entries with Ajax and I am wanting to create a dropdown list of all categories associated with the current list of entries.
eg. I have 100 products that have a main category and have all been assigned a category or two for filtering. In the dropdown list, I want to show ONLY the filtering categories that have been assigned to the current list of products.
So far, I've got a list of ALL categories from a group and not the limited list based on the products in the main category.
I'm currently playing with the query module to see if I can filter the category list down to the correct list of filtering categories.
Its a tough one to explain, but I hope I have done a good job.
Does anyone know the best approach?
I've test GWcodes categories and provided a list of entry_ids, however this shows up a list duplicated categories. Basically the right result, but I get duplicates.
Any help and guidance would be gratefully received.