Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

vspec34

Archived
  • Posts

    4
  • Joined

  • Last visited

Profile Information

  • Real Name
    C P

vspec34's Achievements

  1. Scott found the problem, duplicate code on my part. I also had to remove the } and now it works fine. Recap: OSC: oscommerce-2.2rc2a EasyPopulate: EP_v2_76f_r1_MS2 Fancy Invoices: Fancier_invoice_6.2_Fixed_2007 *Now Package Tracking 2.1 error: Duplicate line of code that was suppose to be used as a placement identifier, guess I accidently pasted it in to the page (had it twice, one after the other, should've seen that) tep_db_query("insert into " . TABLE_ORDERS_STATUS_HISTORY . " (orders_id, orders_status_id, date_added, customer_notified, comments) values ('" . (int)$oID . "', '" . tep_db_input($status) . "', now(), '" . tep_db_input($customer_notified) . "', '" . tep_db_input($comments) . "')"); $order_updated = true; } I removed the closing } before the error line case 'deleteconfirm': I thought my problem was like post#40, but it wasn't, just duplicate code. I'd like to thank Scott (olsonsp4c) and Jim (trochia) for their assistance.
  2. Some additional info about my installation: I am using the latest build and the following contributions. OSC: oscommerce-2.2rc2a EasyPopulate: EP_v2_76f_r1_MS2 Fancy Invoices: Fancier_invoice_6.2_Fixed_2007
  3. the file is admin/orders.php and is the same problem as post#40 from kloienyc I'm having the exact same error and offending line of code error Parse error: parse error, unexpected T_CASE in offending line of code case 'deleteconfirm':
  4. ============================ The above recommendation of adding a } bracket did not work and it still states the same error I have only the following contributions installed in order. 1. EasyPopulate 2. Fancy Invoices 3. Package Tracking (this problem) Sample of the surrounding code with my } bracket added and still getting the "Parse error: syntax error, unexpected T_CASE " //Package Tracking Plus END if ($order_updated == true) { $messageStack->add_session(SUCCESS_ORDER_UPDATED, 'success'); } else { $messageStack->add_session(WARNING_ORDER_NOT_UPDATED, 'warning'); } tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('action')) . 'action=edit')); break; } case 'deleteconfirm': $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); tep_remove_order($oID, $HTTP_POST_VARS['restock']); tep_redirect(tep_href_link(FILENAME_ORDERS, tep_get_all_get_params(array('oID', 'action')))); break; } } if (($action == 'edit') && isset($HTTP_GET_VARS['oID'])) { $oID = tep_db_prepare_input($HTTP_GET_VARS['oID']); Any suggestions?
×
×
  • Create New...