[+] Project : Vouchers are now replaced by cart rules

This commit is contained in:
dMetzger
2011-11-01 18:50:42 +00:00
parent eac8accb4f
commit 554783594e
46 changed files with 2183 additions and 994 deletions
+7
View File
@@ -174,6 +174,13 @@ class CarrierCore extends ObjectModel
return true;
}
public function delete()
{
if (!parent::delete())
return false;
return Db::getInstance()->Execute('DELETE FROM '._DB_PREFIX_.'cart_rule_carrier WHERE id_carrier = '.(int)$this->id);
}
/**
* Change carrier id in delivery prices when updating a carrier
*