[+] 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
@@ -122,6 +122,13 @@ class CountryCore extends ObjectModel
$this->validateFieldsLang();
return $this->getTranslationsFields(array('name'));
}
public function delete()
{
if (!parent::delete())
return false;
return Db::getInstance()->Execute('DELETE FROM '._DB_PREFIX_.'cart_rule_country WHERE id_country = '.(int)$this->id);
}
/**
* Return available countries