formatter; $basket = \Yii::$app->get('basket'); $sum = 0; $sumDiscount = 0; $variants = $basket->findModels(array_keys($basket->getData())); foreach ($variants as $variant) { $count = $basket->getItem($variant->id)[ 'count' ]; $sum += $variant->price * $count; if (!empty($variant->price_old)) { $sumDiscount += ( $variant->price_old - $variant->price ) * $count; } } ?>
product->image->getPath()) ->fillResize(50, 50) ->renderImage( [ 'alt' => $variant->product->lang->title, 'title' => $variant->product->lang->title, ] ), [ 'product/view', 'id' => $variant->product->id, ], [ 'target' => '_blank' ] ) ?> product->lang->title, [ 'product/view', 'id' => $variant->product->id, ], [ 'target' => '_blank' ] ) ?> getItem($variant->id))) { echo $item[ 'count' ]; } ?> price ? : 0 ) . ' грн.'; ?> price_old - $variant->price ) ? : 0 ) . ' грн.'; ?> price * $item[ 'count' ] . ' грн.'; ?>
грн.

грн.
грн.
delivery->value; ?> грн.
delivery->value; ?> грн.