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 | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| This is a bugfix of the quantity and the total price problem. 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 osCMax Templates - Hundreds of premium quality templates. New designs every month! xShop for osCMax - Windows Based osCMax administration. Improved workflow, security, speed and convenience osCMax Hosting - From basic hosting to High Availability, Load Balanced arrays, the most experienced osCMax host. |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Help with Monthly Report | bkpie | osCMax v2 Customization/Mods | 0 | 01-10-2008 09:00 AM |
| Margin Report v1.00 | michael_s | New osCommerce Contributions | 0 | 01-09-2008 11: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 04:54 AM |