Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Approve Members - Not allowing approved Customers to login


MrNickRegan

Recommended Posts

Hi Guys,

 

I am in need of a little assistance again, I have added the contribute 'Approve Members' to one of my stores however it is not letting approved customers login. I have checked the database to ensure that the customers are given either a 0 or 1 depending on their active status (1 = approved), all looks correct to me ....?

 

In my login.php I have this code, which I think translates as "if Member is not equal to 0, approve"? I have tried to change the logic to "if Member = 0, approve" or "if Member = 1, approve" however both just approve every customer regardless to the Member_level status.

 

//+Member Approval v1.5.1
        if ($check_customer['member_level'] == 0 ) {
          $HTTP_GET_VARS['login'] = 'invalid';
          $messageStack->add('login', TEXT_NOT_APPROVED);
        } else {
//-Member Approval v1.5.1
 
Am I missing something simple here? Or have I missed a setting when creating the new field in the customers table?
 
Any advice would be hugely appreciated! :)
 
Nick 
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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...