Xsecrets wrote:in the model file try replacing...
Thanks for the tip. Unfortunately, it doesn't change anything. I had tried a few different combinations like the one you sent, but to no avail.
That section of code is not being called, apparently. I echoed out the function getProductsByKeyword, and when I enter a product ID in the search box and click the upper 'Search' button, it echoes this:
Code: Select all
SELECT *, pd.name AS name, p.image, m.name AS manufacturer, ss.name AS stock, (SELECT AVG(r.rating) FROM review r
WHERE p.product_id = r.product_id
GROUP BY r.product_id) AS rating FROM product p
LEFT JOIN product_description pd ON (p.product_id = pd.product_id AND pd.language_id = '1')
LEFT JOIN product_to_store p2s ON (p.product_id = p2s.product_id AND p2s.store_id = '0')
LEFT JOIN manufacturer m ON (p.manufacturer_id = m.manufacturer_id)
LEFT JOIN stock_status ss ON (p.stock_status_id = ss.stock_status_id AND ss.language_id = '1')
WHERE pd.language_id = '1' AND (LCASE(pd.name) LIKE '%s2448c%' OR LCASE(p.model) LIKE '%s2448c%') AND p.status = '1' AND p.date_available <= NOW()
GROUP BY p.product_id
ORDER BY LCASE(p.model) ASC LIMIT 0,8
However, when I select a mfg and click the lower 'Search' button, nothing is echoed and no products are found. What's interesting, though, is if I then select All Manufacturers from the list and click the lower 'Search' button, the SQL is echoed out again and the products are found.
Marc