frontend\controllers\CartController::actionRefresh PHP Method

actionRefresh() public method

public actionRefresh ( )
    public function actionRefresh()
    {
        $storeId = (int) Yii::$app->request->post('storeId');
        $output = ['status' => 'ok', 'html' => $this->renderPartial('refresh', ['storeId' => $storeId]), 'length' => Yii::$app->user->identity->getCartGoodsRealLength($storeId), 'volume' => Yii::$app->user->identity->getCartGoodsRealVolume($storeId)];
        Yii::$app->response->format = Response::FORMAT_JSON;
        return $output;
    }