orderProducts as $orderProduct) { $sum += $orderProduct->count * $orderProduct->price; } if (!empty($order->delivery)) { $sum += $order->delivery->value; } ?>

$order->id, ] ); ?>

$order, 'attributes' => [ 'id', 'name', 'phone', 'email', 'city', 'address', 'comment', [ 'attribute' => 'label_id', 'value' => function ($model) { /** * @var \frontend\models\Order $model */ return $model->label->lang->title; }, ], [ 'attribute' => 'delivery_id', 'value' => function ($model) { /** * @var \frontend\models\Order $model */ return $model->delivery->lang->title; }, ], [ 'attribute' => 'payment_id', 'value' => function ($model) { /** * @var \frontend\models\Order $model */ return $model->payment->lang->title; }, ], [ 'attribute' => 'created_at', 'format' => 'datetime', ], ], ] ); ?> orderProducts as $orderProduct) { ?>
variant->product->lang->title, Url::to( [ 'product/view', 'id' => $orderProduct->variant->product->id, 'alias' => $orderProduct->variant->product->lang->alias, ], true ) ); ?> sku; ?> price . ' грн.'; ?> count; ?> price * $orderProduct->count ) . ' грн.'; ?>
delivery->value . ' грн.'; ?>