|
@@ -485,19 +485,26 @@ class IndexController extends AbstractAction |
|
@@ -485,19 +485,26 @@ class IndexController extends AbstractAction |
485
|
exit;
|
485
|
exit;
|
486
|
}
|
486
|
}
|
487
|
|
487
|
|
488
|
- $filter = Product\SearchModel::filter();
|
488
|
+ /* tar add 160826 */
|
|
|
489
|
+ $data['shopIdForFilter'] = $shopId;
|
|
|
490
|
+ $data['gender'] = $this->get('gender');
|
|
|
491
|
+ $data['channel'] = $this->get('yh_channel') ? $this->get('yh_channel') : Helpers::getChannelByCookie();
|
|
|
492
|
+
|
|
|
493
|
+ $filter = Product\SearchModel::filter(array(
|
|
|
494
|
+ 'shop' => $shopId,
|
|
|
495
|
+ 'gender' => $data['gender'],
|
|
|
496
|
+ 'channel' => $data['channel']
|
|
|
497
|
+ ));
|
|
|
498
|
+
|
489
|
$data['filter'] = $filter['filter'];
|
499
|
$data['filter'] = $filter['filter'];
|
490
|
|
500
|
|
491
|
/* tar add 160931 */
|
501
|
/* tar add 160931 */
|
492
|
$data['goods'] = \Product\SearchModel::search(array(
|
502
|
$data['goods'] = \Product\SearchModel::search(array(
|
493
|
- 'shop' => $shopId
|
503
|
+ 'shop' => $shopId,
|
|
|
504
|
+ 'gender' => $data['gender'],
|
|
|
505
|
+ 'channel' => $data['channel']
|
494
|
));
|
506
|
));
|
495
|
|
507
|
|
496
|
- /* tar add 160826 */
|
|
|
497
|
- $data['shopIdForFilter'] = $shopId;
|
|
|
498
|
- $data['gender'] = $this->get('gender');
|
|
|
499
|
- $data['channel'] = $this->get('yh_channel') ? $this->get('yh_channel') : Helpers::getChannelByCookie();
|
|
|
500
|
-
|
|
|
501
|
$this->_view->display('shop', array(
|
508
|
$this->_view->display('shop', array(
|
502
|
'shopIndex' => $data,
|
509
|
'shopIndex' => $data,
|
503
|
'shopPage' => array(
|
510
|
'shopPage' => array(
|