Fur coat with very but very very long name
-143.00
- -diff --git a/frontend/controllers/CheckoutController.php b/frontend/controllers/CheckoutController.php index a5092b7..6d921fc 100755 --- a/frontend/controllers/CheckoutController.php +++ b/frontend/controllers/CheckoutController.php @@ -1,13 +1,14 @@ findModels(array_keys($data)); } + $topItems = Product::find() + ->with('lang', 'image', 'variants') + ->is('mask', 1) + ->limit(20) + ->all(); return $this->render( 'index', [ 'basket' => $basket, 'variants' => $variants, + 'topItems' => $topItems, ] ); } - + public function actionInfo() { $model = new Order( @@ -65,7 +72,7 @@ ] ); } - + public function actionDelivery() { $model = new Order( @@ -84,10 +91,10 @@ return $this->redirect([ 'info' ]); } $deliveries = Delivery::find() - ->with('lang') - ->where([ 'status' => true ]) - ->orderBy([ 'sort' => SORT_ASC ]) - ->all(); + ->with('lang') + ->where([ 'status' => true ]) + ->orderBy([ 'sort' => SORT_ASC ]) + ->all(); return $this->render( 'delivery', [ @@ -96,7 +103,7 @@ ] ); } - + public function actionPayment() { $model = new Order( @@ -116,10 +123,10 @@ return $this->redirect('confirm'); } else { $payments = Payment::find() - ->with('lang') - ->where([ 'status' => true ]) - ->orderBy([ 'sort' => SORT_ASC ]) - ->all(); + ->with('lang') + ->where([ 'status' => true ]) + ->orderBy([ 'sort' => SORT_ASC ]) + ->all(); return $this->render( 'payment', [ @@ -135,7 +142,7 @@ 'delivery' ); } - + public function actionConfirm() { $model = new Order(); @@ -208,7 +215,7 @@ } return $model->getErrors(); } - + public function beforeAction($action) { /** diff --git a/frontend/views/checkout/index.php b/frontend/views/checkout/index.php index a8fd618..aa9b8bc 100644 --- a/frontend/views/checkout/index.php +++ b/frontend/views/checkout/index.php @@ -3,6 +3,7 @@ * @var \yii\web\View $this * @var \artbox\order\models\Basket $basket * @var \artbox\catalog\models\Variant[] $variants + * @var \artbox\catalog\models\Product[] $topItems */ use artbox\core\helpers\ImageHelper; use yii\bootstrap\Html; @@ -208,249 +209,38 @@ } ?> -
143.00
- - -