CMS MADE SIMPLE FORGE

Orders

 

[#6114] No orders displayed in Order Manager

avatar
Created By: Gary McPherson (Genyus)
Date Submitted: Tue Feb 15 22:19:58 -0500 2011

Assigned To: Robert Campbell (calguy1000)
Version: 1.11.1
CMSMS Version: None
Severity: Major
Resolution: None
State: Open
Summary:
No orders displayed in Order Manager
Detailed Description:
After upgrading from 1.11, lost visibility of all orders in back-end. Tracked
down problem to line 125 in function.orders_tab.php:
++++ original code: ++++
LEFT JOIN
(SELECT order_id, SUM(quantity) AS items FROM
'.cms_db_prefix().'module_orders_items
WHERE item_type = \''.line_item::ITEMTYPE_PRODUCT.'\' OR
item_type = \''.line_item::ITEMTYPE_SERVICE.'\'
                GROUP BY order_id) AS e

++++ working correction: ++++
LEFT JOIN
(SELECT order_id, discount FROM
'.cms_db_prefix().'module_orders_items
WHERE item_type = \''.line_item::ITEMTYPE_PRODUCT.'\' OR
item_type = \''.line_item::ITEMTYPE_SERVICE.'\'
                GROUP BY order_id) AS e

Thanks,
Gary


History