Jump to content

What hook gets executed on customer enable?


Recommended Posts

Class Customer.php

public function toggleStatus()
{
 parent::toggleStatus();
 /* 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));
}

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...