This is a discussion on Credit Class & Gift Voucher within the New osCommerce Contributions forums, part of the osCommerce 2.2 Forums category; There is a bug in the coupon report in the coupon admin section. This is where you can select a ...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
|
#1
| ||||
| ||||
| There is a bug in the coupon report in the coupon admin section. This is where you can select a coupon and then click "Report". The bug is that the admin section says there have been X redemption and then you click into report and it says there are Y redemptions. To fix, edit /admin/coupon_admin.php around line 226 where: $cc_query_raw = "select * from " . TABLE_COUPON_REDEEM_TRACK . " where coupon_id = '" . (int)$coupon_id . "'"; $cc_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $cc_query_raw, $cc_query_numrows); $cc_query = tep_db_query($cc_query_raw); change to: $cc_query_raw = "select * from " . TABLE_COUPON_REDEEM_TRACK . " where coupon_id = '" . (int)$coupon_id . "'"; $cc_query = tep_db_query($cc_query_raw); $cc_query_numrows = tep_db_num_rows($cc_query); $cc_split = new splitPageResults($HTTP_GET_VARS['page'], MAX_DISPLAY_SEARCH_RESULTS, $cc_query_raw, $cc_query_numrows); the splitPageResults function wasen't receiving anything for $cc_query_numrows. More...
__________________ Michael Sasek osCMax Developer
|
| Sponsored Links | ||
| ||
| |
| Thread Tools | |
| |
| ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Credit Report for Credit Class & Gift Voucher | michael_s | New osCommerce Contributions | 0 | 10-24-2007 05:31 PM |
| Credit Class & Gift Voucher | michael_s | New osCommerce Contributions | 0 | 09-07-2007 09:23 PM |
| Credit Class & Gift Voucher | michael_s | New osCommerce Contributions | 0 | 03-14-2007 09:10 AM |
| Credit Class & Gift Voucher | michael_s | New osCommerce Contributions | 0 | 02-06-2007 04:00 PM |
| Credit Class & Gift Voucher | michael_s | New osCommerce Contributions | 0 | 01-29-2007 11:11 AM |