I have installed this:
http://www.opencart.com/index.php?route ... load_id=32
The search VQMod works very well.
The product one misses brands (manufacturers).
I am certain it is in the ocextension_filterbymanufacturer_category.xml file, this query:
Code: Select all
$query = $this->db->query("SELECT m.manufacturer_id, m.name, COUNT(p.product_id) AS products_total FROM " . DB_PREFIX . "product_to_category pc
LEFT JOIN " . DB_PREFIX . "product p ON (p.product_id = pc.product_id)
LEFT JOIN " . DB_PREFIX . "manufacturer m ON (m.manufacturer_id = p.manufacturer_id)
WHERE pc.category_id IN (".$category_ids.") AND p.status = 1 AND p.quantity > -1
GROUP BY m.manufacturer_id ORDER BY m.name ASC");
Code: Select all
WHERE pc.category_id IN (".$category_ids.")
If I adjust it to:
WHERE p.status = 1 AND p.quantity > -1
It then pulls all manufacturers but I am looking for the right code that it only pulls those manufacturers that are in the category selected, category is enabled and have a product in stock.
Any thoughts?
Thank you,
Mike