user1611 Da Sconosciuto Membro dal dic -0001 user1611 21 dic 2015 14:12 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?
litecart Main Crew Da Sweden Membro dal feb 2013 litecart 22 dic 2015 15:08 See https://www.litecart.net/addons/129/customer-validation
user1611 Da Sconosciuto Membro dal dic -0001 user1611 2 gen 2016 19:55 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 Da Sweden Membro dal mag 2013 tim 2 gen 2016 21:23 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.
user1611 Da Sconosciuto Membro dal dic -0001 user1611 3 gen 2016 13:31 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 Da Sweden Membro dal mag 2013 tim 3 gen 2016 14:35 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 Da Sweden Membro dal mag 2013 tim 3 gen 2016 16:47 Go ahead and try it now. I have refreshed the release and also uploaded Customer Status add-on for LiteCart 1.3.3.1.
foppa LiteCart Fan Da Sweden Membro dal lug 2013 foppa 13 feb 2016 12:27 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 Da Sweden Membro dal mag 2013 tim 13 feb 2016 17:59 Sorry sorting or filtering is currently not available, but it's definately something we could squeeze in for the next version.
tim Founder Da Sweden Membro dal mag 2013 tim 14 feb 2016 20:21 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.
foppa LiteCart Fan Da Sweden Membro dal lug 2013 foppa 14 feb 2016 20:55 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 Da Sweden Membro dal mag 2013 tim 14 feb 2016 21:00 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.
tim Founder Da Sweden Membro dal mag 2013 tim 15 feb 2016 05:07 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 Da Sweden Membro dal mag 2013 tim 16 feb 2016 14:46 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.
foppa LiteCart Fan Da Sweden Membro dal lug 2013 foppa 18 feb 2016 16:04 Thanks Tim for help whit the error :)