NOTE: If there is any reason that you do not ALWAYS what to update the Customer to Group ID (customers_group_pricing) 2, you will need to add additional limits ...
Edit the file:
/includes/classes/order.php
and around line 645 add the code in RED where 2 is the customers_group_pricing you want to change the customer to be in:
Code:
zen_db_perform(TABLE_ORDERS, $sql_data_array);
// bof: set customer group to 2
$update_customers_group_sql = "update " . TABLE_CUSTOMERS . " SET customers_group_pricing = '2' WHERE customers_id = '" . $_SESSION['customer_id'] . "'";
$db->Execute($update_customers_group_sql);
// eof: set customer group to 2
$insert_id = $db->Insert_ID();
Bookmarks