RE: Seperate Pricing Per Customer v3.5
admin-monkey <[email protected]>
| Newsgroups | gmane.comp.web.oscommerce.contributions |
|---|---|
| Message-ID | <9363dbd2f79bbdc8a2a36a2d68f77eb1@osCommerce-Forums> |
This message was sent from: Contributions
http://forums.oscommerce.com/viewtopic.php?p=227198#227198
----------------------------------------------------------------
Hello group,
Using 2.2-ms2
S.P.P.C v3.5
Did the install as best I could, hit the button to go to Customers, got this message in customers.php
" Parse error: parse error in /home/someuser/public_html/catalog/admin/customers.php on line 229 "
Went and looked at the file in PHP expert (not me, the program) and got the error
" Parse error: parse error, unexpected T_CASE in customers.php on line 229 "
Here is the code for that area ----- line 229 is numbered as such
tep_db_perform(TABLE_ADDRESS_BOOK, $sql_data_array, 'update', "customers_id = '" . (int)$customers_id . "' and address_book_id = '" . (int)$default_address_id . "'");
tep_redirect(tep_href_link(FILENAME_CUSTOMERS, tep_get_all_get_params(array('cID', 'action')) . 'cID=' . $customers_id));
} else if ($error == true) {
$cInfo = new objectInfo($HTTP_POST_VARS);
$processed = true;
}
break;
229 case 'deleteconfirm':
$customers_id = tep_db_prepare_input($HTTP_GET_VARS['cID']);
if (isset($HTTP_POST_VARS['delete_reviews']) && ($HTTP_POST_VARS['delete_reviews'] == 'on')) {
$reviews_query = tep_db_query("select reviews_id from " . TABLE_REVIEWS . " where customers_id = '" . (int)$customers_id . "'");
Would appreciate assistance to let me know how to fix this sucker, I am NOT PHP literate, so any help would be greatly appreciated.
Respects for the time taken to look
admin-monkey
__________________________________________________
No monkeys were harmed in this admission of ignorance[b][/b]