Verify/activate new accounts

Van Onbekend
Lid sedert Des. -0001

Is there a way we can activate accounts after an admin has verified the user?
Right now, a user can register himself and the account is activated instantly.
I would like to be able to see which user has registered and activate (with a checkbox 'active') each user manually.

Is that possible?

Van Onbekend
Lid sedert Des. -0001

Hello,

Thanks for taking the time implementing this.
I have installed a fresh copy of litecart and this VQmod but get this warning on the account registration page:

[color=#666666][font=Roboto, sans-serif]Warning:[/font][/color][color=#666666][font=Roboto, sans-serif] VQModObject::applyMod - Search not found in "Validate Customer Account": pages/create_account.inc.php(0) (SKIPPED) in [/font][/color][color=#666666][font=Roboto, sans-serif]~/vqmod/vqmod.php[/font][/color][color=#666666][font=Roboto, sans-serif] on line [/font][/color][color=#666666][font=Roboto, sans-serif]628[/font][/color]

After this, I get the message that the account awaits validation, but I can login in straight away.

Any idea what's causing this?

Thanks in advance (and a happy 2016:) )

tim
Founder
Van Sweden
Lid sedert Mei 2013
tim

There may be a bug or version incompatibility. Peek in the vqmod xml file what is the first rule for pages/create_account.inc.php and see why it doesn't match the code.

Van Onbekend
Lid sedert Des. -0001

I'm using the latest version (1.3.3.1) of litecart.

The first rule seems to be a search and replace for 

$customer->data['status'] = 1;

But that doesn't exist in create_account.inc.php

I've noticed that 'users' have a 'status', but customers do not.
Could that be it?
(I've never worked with VQmod before)

tim
Founder
Van Sweden
Lid sedert Mei 2013
tim

That is correct. The line is unfortunately part of the coming 1.3.4. This add-on will have to be pulled back for version corrections. I will let you know when it's corrected.

tim
Founder
Van Sweden
Lid sedert Mei 2013
tim

Go ahead and try it now. I have refreshed the release and also uploaded Customer Status add-on for LiteCart 1.3.3.1.

LiteCart Fan
Van Sweden
Lid sedert Jul. 2013

Hi
This funktion is activated in 1.3.4 but is it a way to turn it off?
And if its on, if you have lots of new customer is there a easy to find only not activated customers?

tim
Founder
Van Sweden
Lid sedert Mei 2013
tim

Sorry sorting or filtering is currently not available, but it's definately something we could squeeze in for the next version.

LiteCart Fan
Van Sweden
Lid sedert Jul. 2013

Ok, thanks!

tim
Founder
Van Sweden
Lid sedert Mei 2013
tim

Btw, what did you mean by activated in 1.3.4? The only thing introduced in 1.3.4 is the possibility to disable a user. The customer status.

LiteCart Fan
Van Sweden
Lid sedert Jul. 2013

After update to 1.3.4 every new customers account is not activated, and wen the try to login first they get message to contact customer support.
Customer account is red in admin.
That why I want to find a easy way to find new customers, don't think they have to contact support to check ther account

tim
Founder
Van Sweden
Lid sedert Mei 2013
tim

Did your customers sign up through the checkout or the create account page? It is not intended to work the way you describe so I wonder if something wasn't wrapped up correctly.

LiteCart Fan
Van Sweden
Lid sedert Jul. 2013

Ok, by checkout.

tim
Founder
Van Sweden
Lid sedert Mei 2013
tim

In ctrl_customer.inc.php, try the following:

Find

public function reset() {

      $this->data = array();

      $fields_query = database::query(
        "show fields from ". DB_TABLE_CUSTOMERS .";"
      );
      while ($field = database::fetch($fields_query)) {
        $this->data[$field['Field']] = '';
      }
    }

Replace with

public function reset() {

      $this->data = array();

      $fields_query = database::query(
        "show fields from ". DB_TABLE_CUSTOMERS .";"
      );
      while ($field = database::fetch($fields_query)) {
        $this->data[$field['Field']] = '';
      }

      $this->data['status'] = 1;
    }
tim
Founder
Van Sweden
Lid sedert Mei 2013
tim

And...

In pages/ajax/checkout_customer.inc.php

Find

       $customer = new ctrl_customer();
        $customer->data = customer::$data;
        $customer->save();

Change to

       $customer = new ctrl_customer();
        foreach (array_keys($customer->data) as $key) {
          if (isset(customer::$data[$key])) $customer->data[$key] = customer::$data[$key];
        }
        $customer->save();

Which pretty much speaks for your problem.

LiteCart Fan
Van Sweden
Lid sedert Jul. 2013

Thanks Tim for help whit the error :)

Hierdie draad is gesluit weens lang onaktiwiteit. Om dit te plaas is nie moontlik nie.
This website uses no cookies and no third party tracking technology. We think we can do better than others and really think about your privacy.