Commit 5d972c58120dff5a0fbf7fd697cecf9508570200
1 parent
07082ed1
-Changed excluded products to sale ones
Showing
1 changed file
with
2 additions
and
2 deletions
Show diff stats
frontend/models/ProductFrontendSearch.php
| ... | ... | @@ -52,7 +52,7 @@ |
| 52 | 52 | * |
| 53 | 53 | * @param array $params |
| 54 | 54 | * |
| 55 | - * @return ActiveDataProvider | |
| 55 | + * @return ArrayDataProvider | |
| 56 | 56 | */ |
| 57 | 57 | public function search($category = null, $params = [], $in_stock = true) |
| 58 | 58 | { |
| ... | ... | @@ -143,7 +143,7 @@ |
| 143 | 143 | ->innerJoin( |
| 144 | 144 | 'event', |
| 145 | 145 | 'event.event_id=events_to_products.event_id' |
| 146 | - )->where(['event.is_event' => true]), | |
| 146 | + )->where(['event.sale' => true]), | |
| 147 | 147 | ], |
| 148 | 148 | ] |
| 149 | 149 | ); | ... | ... |