Продукт / услуга
Стоимость
foreach ($order->get_items() as $item): ?>
= "$item[Qty] × $item[ItemPriceF] = $item[TotalPriceF]" ?>
endforeach; ?>
$cart_discounts = $order->get_cart_discounts();
if ($cart_discounts) {
$discounts = null;
foreach ($cart_discounts as $cart_discount) {
$discounts .= "
{$cart_discount['name']}
−" . $netshop->format_price($cart_discount['sum']) . "
";
}
$res .= "
$discounts
";
}
$res .= "
Общая стоимость:
" . $order['TotalItemPriceF'] . "
";
$res .= "
";
if ($order['DeliveryMethod']) {
try {
$res .= "
Способ доставки: " . $order['DeliveryMethodName'] . "
";
$res .= "
" . $netshop->format_price($order['DeliveryCost']) . "
";
$res .= "
";
}
catch (nc_record_exception $e) {
}
}
else {
$res .= "
Способ доставки: не указан
";
}
$delivery_point = $order->get_delivery_point();
if ($delivery_point) {
$res .= "
Адрес пункта выдачи заказов: " . $order['DeliveryPointAddress'] . "
Время работы: " . $order['DeliveryPointSchedule'] . "
" . $order['DeliveryPointDescription'] . "
";
}
else if ($f_Address) {
$res .= "
Адрес: $f_Address
";
}
if ($order['PaymentMethod']) {
try {
$payment_method = new nc_netshop_payment_method($order['PaymentMethod']);
$res .= "
Способ оплаты: {$payment_method->get('name')}
";
if ($order['PaymentCost']) {
$res .= "
+" . $netshop->format_price($order['PaymentCost']) . "
";
}
$res .= "
";
}
catch (nc_record_exception $e) {
}
}
else {
$res .= "
Способ оплаты: не указан
";
}
/*
$isPay = $nc_core->input->fetch_post('act') == 'payment';
if ($isPay) {
$res .= "
";
$paymentSystemId = $nc_core->input->fetch_post('PaymentSystem_ID');
$paymentSystem = nc_payment_factory::create($paymentSystemId);
$paymentSystem->set_params(array(
'Amount' => $shop->CartSum(),
'OrderId' => $message,
));
$paySystems = nc_payment_factory::get_available_payment_systems($catalogue);
foreach ($paySystems as $paySystem) {
if ($paySystem['paymentSystem_ID'] == $f_PaymentMethod) {
$res .= "Вы выбрали способ оплаты: " . $paySystem['paymentSystem_Name'] . "
";
break;
}
}
$res .= $paymentSystem->get_request_form();
}
else {
$paySystems = nc_payment_factory::get_available_payment_systems($catalogue);
if ($f_PaymentMethod && $f_PaymentMethod != 1011) {
$res .= "
Cпособ оплаты: ";
foreach ($paySystems as $paySystem) {
if ($paySystem['paymentSystem_ID'] == $f_PaymentMethod) {
$res .= $paySystem['paymentSystem_Name'];
break;
}
}
}
else {
$res .= "
Cпособ оплаты:";
foreach ($paySystems as $paySystem) {
$hash = md5($paySystem['paymentSystem_ID'] . $message . $nc_core->get_settings('SecretKey', 'system'));
$res .= "
";
}
$res .= "
";
}
$res .= "
";
?>
";
echo $res;
?>