2016-11-09 17:41:39 +01:00

8 lines
330 B
PHP

<?php
require_once(dirname(__FILE__).'../../../config/config.inc.php');
require_once(dirname(__FILE__).'../../../init.php');
if (Tools::getValue('controller') == 'AdminCrossSelling') {
$products = Product::searchByName(Context::getContext()->language->id, trim(Tools::getValue('q')));
die(Tools::jsonEncode($products));
}