Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted (edited)

Hi everybody,

 

i was wondering if maybe anybody has the same problem what i have with this two contributions:

 

TotalB2B_1.2d and login with customers number 1.0a

 

Both contribs are trying to change some code in the login.php at ca. line 27

 

// Check if email exists

//TotalB2B start

$check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id, customers_status from " . TABLE_CUSTOMERS . " where customers_status = '1' and customers_email_address = '" . tep_db_input($email_address) . "'");
if (!tep_db_num_rows($check_customer_query)) {
  $HTTP_GET_VARS['login'] = 'fail';
} else {
  $check_customer = tep_db_fetch_array($check_customer_query);

//TotalB2B end

<!--------------------------------------------------------------------------------------------------------------->

// Check if email exists
$check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id from " . TABLE_CUSTOMERS . " where customers_email_address = '" . tep_db_input($email_address) . "'");
// IQ 20040705-1-dh a002
if (!tep_db_num_rows($check_customer_query)) {
	if (IQ_ADDITIONAL_CUSTOMERS_NUMBER == 'enable') {	
		$check_customer_query = tep_db_query("select customers_id, customers_firstname, customers_password, customers_email_address, customers_default_address_id, customers_additional_customers_number  from " . TABLE_CUSTOMERS . " where customers_additional_customers_number  = '" . tep_db_input($email_address) . "'");
		if (!tep_db_num_rows($check_customer_query)) {
			$error = true;
		}
	} else {
		$error = true;
	}
}


  if($error != true) {
// IQ 20040705-1-dh a002 end

 

Does somebody have an idea how to combine these two code snippets that they will work?

I tried and tried and tried but no sucess, i also have to say that my php knowledge isnt that good.

Would be fantastic there would be a solution for that.

 

Kind regards

Alex

Edited by alex_red

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...