Jump to content
Latest News: (loading..)

tomGerman

Members
  • Content count

    10
  • Joined

  • Last visited

  1. tomGerman

    Seperate Pricing Per Customer v3.5

    I made it with this code, added in the create_account.php after the ' if (SESSION_RECREATE == 'True') {' : if (SESSION_RECREATE == 'True') { tep_session_recreate(); } $customer_first_name = $firstname; $customer_default_address_id = $address_id; $customer_country_id = $country; $customer_zone_id = $zone_id; tep_session_register('customer_id'); tep_session_register('customer_first_name'); tep_session_register('customer_default_address_id'); tep_session_register('customer_country_id'); tep_session_register('customer_zone_id'); // BOF Separate Pricing Per Customer // register SPPC session variables for the customer if (!isset($sppc_customer_group_id)) { $sppc_customer_group_id = '0'; } $check_customer_group_tax = tep_db_query("select customers_group_show_tax, customers_group_tax_exempt from " . TABLE_CUSTOMERS_GROUPS . " where customers_group_id = '" . $sppc_customer_group_id . "'"); $customer_group_tax = tep_db_fetch_array($check_customer_group_tax); $sppc_customer_group_show_tax = (int)$customer_group_tax['customers_group_show_tax']; $sppc_customer_group_tax_exempt = (int)$customer_group_tax['customers_group_tax_exempt']; // here comes the automatic if ($yourTaxField != '') { //define the field you need $sql_data_array['customers_group_id'] = '1'; $sppc_customer_group_id = '1'; } else { $sql_data_array['customers_group_id'] = '2'; $sppc_customer_group_id = '2'; } // set 1 or 2 however you want - retail= 0[/color] tep_session_register('sppc_customer_group_id'); tep_session_register('sppc_customer_group_show_tax'); tep_session_register('sppc_customer_group_tax_exempt'); // BOF Separate Pricing Per Customer // restore cart contents Good luck Tommy
  2. tomGerman

    Seperate Pricing Per Customer v3.5

    Code for that I found on page 59 in this thread... Greetings Tommy
  3. tomGerman

    Seperate Pricing Per Customer v3.5

    Hello, I installed sppc to get the following: When a customer registers from Germany, he should be automatic member of the sppc_group "german" - equall with England, France ... I tried the last few days different coding, but whatever i do, a new customer appears first in the Retail Group. Has anybody any idea, how to modify the create_account file? Thx Thomas
×