// 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
@@ -323,4 +323,14 @@ class AdminCartRulesControllerCore extends AdminController
return parent::initForm();
}
public function displayAjaxSearchCartRuleVouchers()
{
if ($vouchers = CartRule::getCartsRuleByCode(Tools::getValue('q'), (int)Context::getContext()->cookie->id_lang))
$found = true;
else
$found = false;
echo Tools::jsonEncode(array('found' => $found, 'vouchers' => $vouchers));
}
}