Shopping Cart Forum

Go Back   eShop Forums - eCommerce Help Forum for Shopping Cart Owners. > Shopping Cart Software > Zen Cart & osCommerce
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.

Econsultancy SEO Best Practice Guide
Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 23-03-2008, 10:08 PM
jtaylor jtaylor is offline
Member
 
Join Date: Nov 2007
Location: Melbourne, AUST
Posts: 41
Thanks: 4
Thanked 0 Times in 0 Posts
Default Order Error

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
__________________

www.emplore.com.au
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 24-03-2008, 03:01 AM
Lawrence Lawrence is offline
Forum Admin
 
Join Date: Aug 2007
Location: Kenley, Surrey, UK
Posts: 1,347
Thanks: 3
Thanked 87 Times in 87 Posts
Default

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
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 14-04-2008, 10:59 AM
jtaylor jtaylor is offline
Member
 
Join Date: Nov 2007
Location: Melbourne, AUST
Posts: 41
Thanks: 4
Thanked 0 Times in 0 Posts
Default

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
__________________

www.emplore.com.au
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 14-04-2008, 05:29 PM
Lawrence Lawrence is offline
Forum Admin
 
Join Date: Aug 2007
Location: Kenley, Surrey, UK
Posts: 1,347
Thanks: 3
Thanked 87 Times in 87 Posts
Default

That code is very wrong. This bit

PHP Code:
$messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST$oID), 'error');
case 
'doRefund'
should be something like

PHP Code:
$messageStack->add(sprintf(ERROR_ORDER_DOES_NOT_EXIST$oID), 'error');
}
break;
case 
'doRefund'
I don't know which version of Zen you're running and your code snippet is quite different from the order.php file I checked against so I can't say 100% what has and hasn't been changed in your file. What I suggest you do is overwrite your admin/orders.php file with an original copy, though make sure you get it from the same version of Zen that is already installed in case the file has been changed between versions.
__________________
Lawrence
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Bookmarks


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

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 11:35 AM
Error Message: MOM.EXE -.NET Framework Initializing Error Octopia Computers & IT 30 19-11-2007 05:16 PM
SSL Error BillH Zen Cart & osCommerce 4 14-10-2007 08:23 PM

Google
Home - Top

Edible Graphics, Affordable E-Commerce, Web Shops & Custom Form Scripts
Click here for domain name registration and web hosting
tech news, product reviews, the latest home and business technology, the latest in digital imaging


Content Relevant URLs by vBSEO 3.0.0