[+] BO: Add BackOffice orders
This commit is contained in:
@@ -587,4 +587,12 @@ class DiscountCore extends CartRule
|
||||
Tools::displayAsDeprecated();
|
||||
return CartRule::isFeatureActive();
|
||||
}
|
||||
|
||||
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).'%\'');
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user