// Some improvements on BackOffice orders

This commit is contained in:
rGaillard
2011-11-02 19:19:03 +00:00
parent 0373f6f2be
commit f9ba6b11bb
8 changed files with 105 additions and 56 deletions
-8
View File
@@ -252,12 +252,4 @@ class DiscountCore extends CartRule
return $voucher;
}
public static function getVoucherByName($name, $id_lang)
{
return Db::getInstance()->ExecuteS('SELECT d.*, dl.*
FROM '._DB_PREFIX_.'discount d
LEFT JOIN '._DB_PREFIX_.'discount_lang dl ON (d.id_discount = dl.id_discount AND dl.id_lang='.(int)$id_lang.')
WHERE name LIKE \'%'.pSQL($name).'%\'');
}
}