$warnText"; } $netshop = nc_netshop::get_instance($catalogue); $order_component_id = $netshop->get_setting('OrderComponentID'); // same as $classID $order_component = new nc_component($order_component_id); $order = $netshop->load_order($message); $special_fields = array('DeliveryMethod', 'DeliveryCost', 'PaymentMethod', 'PaymentCost'); ?>
token->get_input() ?>
get_fields() as $field_info) { if (in_array($field_info['name'], $special_fields) || $field_info['edit_type'] == 3) { continue; } echo '
', nc_put_field($field_info['name'], '', $order_component_id, true), '
'; } // Таблица с составом заказа ------------------------------------------- ?>
: get_setting('Currencies', $f_OrderCurrency) ?>
get_items() as $item) { echo "\n", // Название "\n", // Цена "\n", // Скидка "\n", // Цена со скидкой "\n", // Количество "\n", // Стоимость "\n", "\n"; } // Итого по товарам ------------------------------------------------ echo "\n", "\n", "\n", "\n"; // Скидки на корзину ----------------------------------------------- echo "\n", "\n", "\n", "\n"; // Доставка -------------------------------------------------------- echo "\n", "\n", "\n", "\n"; // Оплата ---------------------------------------------------------- echo "\n", "\n", "\n", "\n"; // Общий итог ------------------------------------------------------ echo "", "", "", "\n"; ?>
", ($item['Article'] ? "" . htmlspecialchars($item['Article']) . "   " : ""), "", htmlspecialchars($item['Vendor']), " ", htmlspecialchars($item['Name']), " ", htmlspecialchars($item['VariantName']), "", "", "", "", ""; // Дополнительная информация о применённых скидках if ($item['Discounts']) { echo "
", "?", "
"; foreach ($item['Discounts'] as $discount) { echo "
", ($discount['id'] ? "" . htmlspecialchars($discount['name']) . "" : htmlspecialchars($discount['name']) ), " — ", $netshop->format_price($discount['sum']); echo "
"; } echo "
"; } echo "
", "", "", "", "", "", "
", NETCAT_MODULE_NETSHOP_ITEM_COST, "", "", "
", NETCAT_MODULE_NETSHOP_DISCOUNT, "   "; if ($order->get_order_discount_sum()) { echo "
", "?", "
"; foreach ($order->get_cart_discounts() as $discount) { echo "
", htmlspecialchars($discount['name']), " — ", $netshop->format_price($discount['sum']); echo "
"; } echo "
"; } echo "
", "", "", "
", NETCAT_MODULE_NETSHOP_DELIVERY, ": "; if ($f_DeliveryMethod) { try { $delivery_method = new nc_netshop_delivery_method($f_DeliveryMethod); echo $delivery_method->get('name'); } catch (nc_record_exception $e) { } } echo "", "", "
", NETCAT_MODULE_NETSHOP_PAYMENT, ": "; if ($f_PaymentMethod) { try { $payment_method = new nc_netshop_payment_method($f_PaymentMethod); echo $payment_method->get('name'); } catch (nc_record_exception $e) { } } echo "", "", "
" . NETCAT_MODULE_NETSHOP_SUM . "", "", "