1, 'fr' => 2, 'es' => 3, 'it' => 5, ); return ''; } public function delete() { $addresses = $this->getAddresses((int)(Configuration::get('PS_LANG_DEFAULT'))); foreach ($addresses AS $address) { $obj = new Address((int)($address['id_address'])); $obj->delete(); } Db::getInstance()->Execute('DELETE FROM `'._DB_PREFIX_.'customer_group` WHERE `id_customer` = '.(int)($this->id)); Db::getInstance()->Execute('UPDATE `'._DB_PREFIX_.'customer_thread` SET `id_customer` = 0 WHERE `id_customer` = '.(int)($this->id)); Discount::deleteByIdCustomer((int)($this->id)); return parent::delete(); } }