[+] BO: Add BackOffice orders

git-svn-id: http://dev.prestashop.com/svn/v1/branches/1.5.x@9776 b9a71923-0436-4b27-9f14-aed3839534dd
This commit is contained in:
rGaillard
2011-11-02 09:18:45 +00:00
parent c4420cb657
commit 903d9b783a
9 changed files with 1156 additions and 26 deletions
+8
View File
@@ -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).'%\'');
}
}