Haithem.SL Posted October 3, 2013 Share Posted October 3, 2013 Hey I'm trying to add that feature to my website BO but i did not succed Even I modified toggleStatus Function in the classes/Customer class but it still not work. public function toggleStatus() { parent::toggleStatus(); /*Send mail when account is active/inactive */ $vars = array('{firstname}' => $this->firstname, '{lastname}' => $this->lastname, '{email}' => $this->email, '{passwd}' => $password); Mail::Send(intval($cookie->id_lang), 'account_activation', 'Votre compte a été activé', $vars, $this->email, $this->firstname.' '.$this->lastname); /* Change status to active/inactive */ return Db::getInstance()->Execute(' UPDATE `'.pSQL(_DB_PREFIX_.$this->table).'` SET `date_upd` = NOW() WHERE `'.pSQL($this->identifier).'` = '.(int)$this->id); } Link to comment Share on other sites More sharing options...
lucascaibe Posted September 12, 2014 Share Posted September 12, 2014 I am also interested Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now