[+] BO: Add BackOffice orders
This commit is contained in:
1 parent
a44f5fc8a1
commit
bf3d89e1fb
9 files changed
+1156
-26
No files matched your search
@@ -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