This is a discussion on Daily Product Report within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; This is a bugfix of the quantity and the total price problem. The quantity and the total price are now ...
| |||||||
| Register | FAQ | Donate | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| The quantity and the total price are now shown correctly The report is OK. To enable this, just replace in stats_daily_products_sales_report.php : this $products_query_raw = "select ot.value, sum(ot.value) as dailyvalue, count(distinct o.orders_id) as howmany_orders, o.orders_id, count(distinct op.orders_products_id) as howmany_tickets, op.products_name, op.products_model, op.final_price as ticket_price, op.final_price * count(distinct op.orders_products_id) as howmuch from orders_total ot, orders o, orders_products op where o.date_purchased like "$date%" and o.orders_id = op.orders_id and ot.orders_id = op.orders_id and ot.class='ot_total' group by op.products_name"; with $products_query_raw = "select ot.value, sum(ot.value) as dailyvalue, count(distinct o.orders_id) as howmany_orders, o.orders_id, sum(op.products_quantity) as howmany_tickets, op.products_name, op.products_model, op.final_price as ticket_price, op.final_price * sum(op.products_quantity) as howmuch from orders_total ot, orders o, orders_products op where o.date_purchased like "$date%" and o.orders_id = op.orders_id and ot.orders_id = op.orders_id and ot.class='ot_total' group by op.products_name"; Hope this helps :) More...
__________________ Michael Sasek osCMax Developer *** Do not PM me requesting paid help. The only paid work I do is for AABox Web Hosting customers *** Stay Up To Date with everything osCMax: Free osCMax Newsletters - Security notices, New Releases, osCMax News osCMax on Twitter - Up to the minute info as it happens. Know it first. osCMax User Manual - osCMax Templates - Advanced Template Tutorial |
![]() |
| Thread Tools | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with Monthly Report | bkpie | osCMax v2 Customization/Mods | 0 | 01-10-2008 08:00 AM |
| Margin Report v1.00 | michael_s | New osCommerce Contributions | 0 | 01-09-2008 10:03 PM |
| Inventory Value Report | michael_s | New osCommerce Contributions | 0 | 08-25-2007 01:27 PM |
| Margin Report v1.00 | michael_s | New osCommerce Contributions | 0 | 07-16-2007 12:17 AM |
| Daily Product Report | michael_s | New osCommerce Contributions | 0 | 02-15-2007 03:54 AM |