// Some improvements on BackOffice orders

This commit is contained in:
rGaillard committed 2011-11-02 19:19:03 +00:00
1 parent 0373f6f2be
commit f9ba6b11bb
8 files changed
+105 -56

No files matched your search

@@ -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));
}
}