Skip to content

Commit

Permalink
Labels
Browse files Browse the repository at this point in the history
  • Loading branch information
Serov-RA committed Oct 31, 2019
1 parent 2309bc9 commit b3c89ae
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions controllers/ShopController.php
Original file line number Diff line number Diff line change
Expand Up @@ -843,6 +843,10 @@ public function actionSearch($label = false)
$searchtext = Yii::$app->request->get('searchtext', false);
$searchtag = Yii::$app->request->get('tag', false);

if ($searchtag) {
return $this->redirect('/shop/'.$searchtag, 301);
}

$limit = 20;
$product_page = Yii::$app->request->get('page', 1);
$offset = ($product_page - 1) * $limit;
Expand Down

0 comments on commit b3c89ae

Please sign in to comment.