...
|
...
|
@@ -133,6 +133,7 @@ class NewsaleController extends AbstractAction |
|
|
|
|
|
if ($this->isAjax()) {
|
|
|
$gender = $this->get('gender') ? $this->get('gender') : Helpers::getGenderByCookie();
|
|
|
$age_level = $this->get('age_level', null);
|
|
|
$brand = $this->get('brand', null);
|
|
|
$sort = $this->get('sort', null);
|
|
|
$color = $this->get('color', null);
|
...
|
...
|
@@ -166,7 +167,7 @@ class NewsaleController extends AbstractAction |
|
|
}
|
|
|
|
|
|
$data = NewsaleData::selectNewSaleProducts(
|
|
|
$gender, $brand, $sort, $color, $size, $price, $p_d, $channel, $dayLimit, $limit, $page, $order, null
|
|
|
$gender, '0', $brand, $sort, $color, $size, $price, $p_d, $channel, $dayLimit, $limit, $page, $order, null
|
|
|
);
|
|
|
$result = \Product\NewsaleModel::selectData($data);
|
|
|
}
|
...
|
...
|
@@ -188,6 +189,7 @@ class NewsaleController extends AbstractAction |
|
|
|
|
|
if ($this->isAjax()) {
|
|
|
$gender = $this->get('gender') ? $this->get('gender') : Helpers::getGenderByCookie();
|
|
|
$age_level = $this->get('$age_level', null);
|
|
|
$brand = $this->get('brand', null);
|
|
|
$shop = $this->get('shop_id', null);
|
|
|
$sort = $this->get('sort', null);
|
...
|
...
|
@@ -206,7 +208,7 @@ class NewsaleController extends AbstractAction |
|
|
|
|
|
$channel = $this->get('channel') ? $this->get('channel') : Helpers::getChannelByCookie();
|
|
|
$data = NewsaleData::selectNewSaleProducts(
|
|
|
$gender, $brand, $sort, $color, $size, $price, $p_d, $channel, $dayLimit, $limit, $page, $order, $shop
|
|
|
$gender, $age_level, $brand, $sort, $color, $size, $price, $p_d, $channel, $dayLimit, $limit, $page, $order, $shop
|
|
|
);
|
|
|
$result = \Product\NewsaleModel::filterData($data, $gender);
|
|
|
}
|
...
|
...
|
|