I’m using Zen Cart 1.39h and have problems with displaying the specials function. I’m also using a template..
http://masked/index.php?main_page=specials
I’ve enabled logging on MySQL and extracted the query in question from general_log.csv :
SELECT p.products_id, p.products_image, pd.products_name, p.master_categories_id
FROM (products p LEFT JOIN specials s on p.products_id = s.products_id LEFT JOIN products_description pd on p.products_id = pd.products_id )
WHERE p.products_id = s.products_id and p.products_id = pd.products_id and p.products_status = '1'
AND s.status = 1
AND pd.language_id = 1
ORDER BY s.specials_date_added DESC limit 12
When I run this query in phpMyAdmin, it runs perfectly:
I’m not sure which php-file which is in use when this query is executed on the web, but it seems like something with the query within the php-file malfunctions..
Could anyone please help?
Thanks,
Dex


Reply With Quote
. I replaced the tpl_specials_default.php in my template with the original file, and it seems to have done the trick! I'll just check it further and get back here if I have any follow-up questions.

