Community Add-Ons
ADD TAX ID NUMBER TO CREATE_ACCOUNT.PHP
for osCommerce Online Merchant v2.2
This will require a customer to enter their Tax ID number or their EIN number to create an account.
This is my first Contribution. Feel free to let me know if you find any problems.
FIND
$sql_data_array = array('entry_firstname' => $customers_firstname,
'entry_lastname' => $customers_lastname,
'entry_street_address' => $entry_street_address,
'entry_postcode' => $entry_postcode,
'entry_city' => $entry_city,
'entry_country_id' => $entry_country_id);
if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $entry_company;
if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $entry_suburb;
REPLACE WITH
$sql_data_array = array('entry_firstname' => $customers_firstname,
'entry_lastname' => $customers_lastname,
'entry_street_address' => $entry_street_address,
'entry_postcode' => $entry_postcode,
'entry_city' => $entry_city,
'entry_country_id' => $entry_country_id,
'entry_ein' => $entry_ein);
if (ACCOUNT_EIN == 'true') $sql_data_array['entry_ein'] = $entry_ein;
if (ACCOUNT_COMPANY == 'true') $sql_data_array['entry_company'] = $entry_company;
if (ACCOUNT_SUBURB == 'true') $sql_data_array['entry_suburb'] = $entry_suburb;
