...
|
...
|
@@ -180,7 +180,6 @@ class HelperSearch |
|
|
if (isset($data['shopData']) && !empty($data['shopData'])) {
|
|
|
$result['shopEntry'] = array();
|
|
|
foreach ($data['shopData'] as $val) {
|
|
|
$val['shop']['shop_id'] = empty($val['shop']['shop_id']) ? '' : $val['shop']['shop_id'];
|
|
|
$shopSort = self::shop($val['shop'], $val['shopSort']);
|
|
|
if (empty($shopSort)) {
|
|
|
continue;
|
...
|
...
|
@@ -1450,6 +1449,8 @@ class HelperSearch |
|
|
if (self::$total == 0 || empty($shopSort)) {
|
|
|
return $shopEntry;
|
|
|
}
|
|
|
$shop['shop_id'] = empty($shop['shop_id']) ? '' : $shop['shop_id'];
|
|
|
|
|
|
$url = Helpers::url('', array('shopId' => $shop['shop_id']), $shop['brand_domain']);
|
|
|
$sort = array();
|
|
|
$sortInfo = array();
|
...
|
...
|
@@ -1462,7 +1463,7 @@ class HelperSearch |
|
|
break 2;
|
|
|
}
|
|
|
$sortInfo = array();
|
|
|
$sortInfo['href'] = "{$url}/?msort={$msort['sort_id']}&misort={$misort['sort_id']}&shopId={$shop['shop_id']}";
|
|
|
$sortInfo['href'] = "{$url}&msort={$msort['sort_id']}&misort={$misort['sort_id']}";
|
|
|
$sortInfo['name'] = $misort['sort_name'];
|
|
|
$sort[] = $sortInfo;
|
|
|
}
|
...
|
...
|
|