Commit 5c84de87 authored by Batyr Mackenov's avatar Batyr Mackenov

Fixes

parent 1872e429
......@@ -157,7 +157,7 @@ class iaCart extends abstractModuleFront
return [];
}
$iaCategory = $this->iaCore->factoryModule('category', $this->getModuleName(), 'common');
$iaCategory = $this->iaCore->factoryModule('category', $this->getModuleName());
$iaProduct = $this->iaCore->factoryModule('product', $this->getModuleName());
$sql = 'SELECT '
......
......@@ -45,10 +45,9 @@ class iaCategory extends iaAbstractFrontHelperCategoryFlat
return $this->getUrl($data);
}
// TODO: make it work
public function coreSearch($stmt, $start, $limit, $order)
{
$rows = $this->getAll($stmt, null, $start, $limit);
$rows = $this->getAll(iaDb::STMT_CALC_FOUND_ROWS . ' ' . $stmt, null, $start, $limit);
$count = $this->getFoundRows();
return [$count, $rows];
......
......@@ -20,11 +20,11 @@
var data = $.extend({}, e, {product: id})
var url = baseUrl + 'cart/' + event + '.json'
$.ajax({type: 'post', url: url, data: data, success: function(response){
intelli.post(url, data, function(response){
if ('function' === typeof fn2){
fn2(response)
}
}})
})
},
utils: {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment