Jump to content


Corporate Sponsors


Latest News: (loading..)

- - - - -

Control Login by DIMSUMGIRL


7 replies to this topic

#1 _icon:HEAD

  • Community Member
  • 14 posts
  • Real Name:_icon:HEAD

Posted 02 May 2003, 16:01

Hi,

I installed this contribution since it is a feature I need, however, there seem to be a bug or at least not functioning properly at my site.

The problem is that the first time users sign-up they are able to shop and sign-out without Admin intervention, but the next time they come they are stopped without prior approval from the Admin.

It's not supposed to be like that, is it?

Further more, when the Admin has approved a customer, he's not able to remove the approval from the Admin control panel, but must manually modify the Mysql DB to set the status to "0".

Anyone?
(Or are you here DIMSUMGIRL? ;))

#2 Waza04

  • Banned
  • 680 posts
  • Real Name:Warren Ashcroft
  • Gender:Male

Posted 03 May 2003, 11:10

The contrib was updated with a missing function....

Warren

#3 _icon:HEAD

  • Community Member
  • 14 posts
  • Real Name:_icon:HEAD

Posted 03 May 2003, 13:41

Hi!
OK, but do you know if there's a fix somewhere?

#4 Waza04

  • Banned
  • 680 posts
  • Real Name:Warren Ashcroft
  • Gender:Male

Posted 03 May 2003, 14:45

Sure Do!!

File To Edit:
admin/includes/functions/general.php
add the follow lines before ?>

// Customers Status

  function tep_set_customers_status($customers_id, $customers_status) {

    if ($customers_status == '1') {

      return tep_db_query("update " . TABLE_CUSTOMERS . " set customers_status = '1'");

    } elseif ($customers_status == '0') {

      return tep_db_query("update " . TABLE_CUSTOMERS . " set customers_status = '0'");

    } else {

      return -1;

    }

  }

Warren

#5 _icon:HEAD

  • Community Member
  • 14 posts
  • Real Name:_icon:HEAD

Posted 03 May 2003, 15:54

Thanks mate,

But the problem is still there. I added the missing function in the first place.

I guess I'll have to do it all over and see if I can find where I missed out! :wink:

BTW, are you using this feature? I mean you are 100% sure it works?

#6 Waza04

  • Banned
  • 680 posts
  • Real Name:Warren Ashcroft
  • Gender:Male

Posted 03 May 2003, 15:56

Yes - 100%

Warren

#7 Susanne

  • Community Member
  • 5 posts
  • Real Name:Susanne Gerhard
  • Location:Hamburg, Germany

Posted 15 May 2003, 09:10

:cry: I have exactly the same problems as _icon:HEAD. I tested the installation of the contrib already 3 x, but it doesnt work. Did anybody find already a solution? Thanx in advance for help.
Susi

#8 _icon:HEAD

  • Community Member
  • 14 posts
  • Real Name:_icon:HEAD

Posted 15 May 2003, 19:26

I still haven't managed to get this to work. First time customers/visitors are able to check out... :roll: