OldNGrey:
The corrected Export Shipping & Order Information v1.5.0 file for zcV157 is located in https://github.com/OldNGreyBMR/export_shipping_information/tree/main/v1.5.7/files/admin
The zc158 version is located in https://github.com/OldNGreyBMR/export_shipping_information/tree/main/v1.5.8/zc_plugins/ExportShippingInformation/v1.5.0/admin
Thanks so much for the corrections!
It works for "1 order per row' now as well.
However, a new error pops up. This time it pertains to the date range chosen.
The custom date range is supposedly optional. Here is the error msg:
--> PHP Fatal error: 1064:You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'BY o.orders_id ORDER BY orders_id ASC' at line 5 :: SELECT DISTINCT o.orders_id, sum(-ABS(round(ot.value,2))) AS value
FROM (orders o LEFT JOIN orders_total ot ON o.orders_id = ot.orders_id)
WHERE o.orders_id = ot.orders_id
AND ot.class IN ('ot_coupon' , 'ot_custom', 'ot_group_pricing', 'ot_payment_type', 'ot_paymentmodulefee')
AND ot.orders_id = 1GROUP BY o.orders_id ORDER BY orders_id ASC ==> (as called by) /home//public_html/admin/shipping_export.php on line 585 <== in /home//public_html/includes/classes/db/mysql/query_factory.php on line 170.
Note: Path has been edited to hide actual.
Prior to your version, I would export for all orders to date with by leaving them blank, but now I have to specifically specify the date range. Not a big issue now as your revised version still meet my needs but I just point out.
Many thanks for your help & all the inputs from the other members!
Noi