/** @var nc_core $nc_core */ /** @var nc_db $db */ $netshop = nc_netshop::get_instance($catalogue); $order = $netshop->load_order($message); $statuses = (array)$db->get_results("SELECT * FROM `Classificator_ShopOrderStatus` WHERE `Checked` = 1 ORDER BY `ShopOrderStatus_Priority`", ARRAY_A); $discount_admin_prefix = $nc_core->ADMIN_PATH . '#module.netshop.promotion.discount'; ?>
| Товар | Полная цена | Скидка | Цена со скидкой | Количество | Стоимость |
|---|---|---|---|---|---|
| = ($item['Article'] ? '' . htmlspecialchars($item['Article']) . ' ' : '') ?> = htmlspecialchars($item['FullName']) ?> | = $item['OriginalPriceF'] ?> |
if ($item['Discounts']): ?>
foreach ($item['Discounts'] as $discount): ?>
if ($discount['id']): ?>
"
target="_blank">= htmlspecialchars($discount['name']) ?> —
else: ?>
= htmlspecialchars($discount['name']) ?> —
endif; ?>
= $netshop->format_price($discount['sum']); ?>
endforeach; ?>
else: ?>
нет
endif; ?>
|
= $item['ItemPriceF'] ?> | = $item['Qty'] ?> = $item['Units'] ?> | = $item['TotalPriceF'] ?> |
| СТОИМОСТЬ ТОВАРОВ | = $order['TotalItemPriceWithoutCartDiscountF'] ?> | ||||
|
foreach ($order->get_cart_discounts() as $discount): ?>
if ($discount['id']): ?>
"
target="_blank">= htmlspecialchars($discount['name']) ?> —
else: ?>
= htmlspecialchars($discount['name']) ?> —
endif; ?>
= $netshop->format_price($discount['sum']); ?>
endforeach; ?>
|
−= $order['OrderDiscountSumF'] ?> | ||||
| Стоимость доставки | = $order['DeliveryPriceF'] ?> | ||||
| Наценка за способ оплаты | = $order['PaymentPriceF'] ?> | ||||
| ИТОГО | = $order['TotalPriceF'] ?> | ||||
Для добавления комментария оператора
создайте
поле компонента
(название поля: ManagerComments,
описание: «Комментарий оператора»,
тип поля: «Текстовый блок»,
разрешать HTML-тэги: нет).