![]() |
|
| |||||||
| Register | Blogs | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Zen Cart & osCommerce Tips, advice and help on how to use the most popular free E-commerce shopping carts available. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
Hi all.
In my admin page, I can't access the Orders module under the customer tab. I just get this message 'Parse error: syntax error, unexpected T_CASE in /clientdata/clients/e/m/emplore.com.au/www/buy/store/admin/orders.php on line 195' any ideas? It's stumped me. Thanks |
|
|||
|
Can you post line 195 of orders.php with a few lines before and after.
T_CASE errors are caused by syntax errors in switch/case statements.
__________________
Lawrence |
|
|||
|
Thanks, been busy lately!
$order_exists = true; if ($orders->RecordCount() <= 0) { $order_exists = false; $messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST, $oID), 'error'); case 'doRefund': $order = new order($oID); if ($order->info['payment_module_code']) { if (file_exists(DIR_FS_CATALOG_MODULES . 'payment/' . $order->info['payment_module_code'] . '.php')) { require_once(DIR_FS_CATALOG_MODULES . 'payment/' . $order->info['payment_module_code'] . '.php'); require_once(DIR_FS_CATALOG_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_module_code'] . '.php'); $module = new $order->info['payment_module_code']; if (method_exists($module, '_doRefund')) { $module->_doRefund($oID); } Line 195 is ' case 'doRefund':' Jason |
|
|||
|
That code is very wrong. This bit
PHP Code:
PHP Code:
__________________
Lawrence |
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| shopyop.com-Free Shipping on $160+ order. | usasavingnone | Shameless Plug | 0 | 22-08-2008 11:31 PM |
| Suggestion: Order Management Software? | ckad79 | The Water Cooler | 2 | 01-08-2008 03:56 AM |
| Maximum order quantity | stacie | Zen Cart & osCommerce | 10 | 15-12-2007 12:35 PM |
| Error Message: MOM.EXE -.NET Framework Initializing Error | Octopia | Computers & IT | 30 | 19-11-2007 06:16 PM |
| SSL Error | BillH | Zen Cart & osCommerce | 4 | 14-10-2007 08:23 PM |