\n
\n
Продукт/услуга
\n
Стоимость
\n
\n";\n$res .= "
";\nforeach ($shop->CartContents as $position) {\n\n $res .= "
";\n $res .= $position[\'Qty\']." * ".$shop->FormatCurrency($position[\'Price\'] * $position[\'Qty\'])."";\n $res .= "
";\n}\n$res .= "
";\nif ($shop->CartDiscounts) {\n $discounts = null;\n foreach ($shop->CartDiscounts as $val) {\n $discounts .= "
{$val[\'Name\']}
-".$shop->FormatCurrency($val[\'Sum\'])."
";\n }\n $res .= "
$discounts
";\n}\n\n$res .= "
Общая стоимость заказа:
".$shop->FormatCurrency($shop->CartSum())."
";\n$res .= "
";\nif ($f_Address) {\n $res .= "
Адрес: $f_Address
";\n}\n\n$SQL = "SELECT `Name` as Delivery\n FROM `Message{$shop->delivery_methods_table}`\n WHERE Message_ID = {$shop->Order[\'DeliveryMethod\']}";\n\n$methods = $db->get_row($SQL);\n\nif ($methods->Delivery) {\n $res .= "
Вариант доставки: {$methods->Delivery}
";\n}\n\n$end = \'\';\n$qiwi_js = "\nif(\'\' == $(\'#qiwiPhone\').val()) {\n $(\'#qiwiPhoneS\').addClass(\'error\');\n return false;\n} else {\n $(\'#qiwiPhoneS\').removeClass(\'error\');\n}";\n$qiwi_check_num_js = \'\';\n\n$isChange = \'\';\nif (1011 != $f_PaymentMethod) {\n $isChange = "AND `isChange` = 1";\n}\n\n$SQL = "SELECT `Message_ID`,\n `Name`,\n `Interface`,\n `isChange`\n FROM Message{$shop->payment_methods_table}\n WHERE `Checked` = 1";\n$methods = $db->get_results($SQL);\n$phase = 0;\nif($methods) {\n $phase = 1;\n foreach ($methods as $method) {\n if(!$method->isChange && ($method->Message_ID == $f_PaymentMethod)) {\n $phase = 0;\n }\n }\n}\n\nif ($phase) {\n $case_js = \'\';\n $adm_message = array();\n $res .= \'
\';\n foreach ($methods as $method) {\n if ($pay_error = $shop->check_payment_errors($method->Interface)) {\n $adm_message[] = "
".$method->Name.""." ($pay_error)";\n continue;\n }\n $pay_method .= "
";\n }\n $end = "
";\n} else {\n $SQL = "SELECT `Message_ID`,\n `Name`,\n `Interface`\n FROM `Message{$shop->payment_methods_table}`\n WHERE Message_ID = $f_PaymentMethod";\n\n $method = $db->get_row($SQL);\n $pay_method .= $method->Name;\n\n if ($method->Interface && \'cash\' != $method->Interface) {\n if (\'qiwi\' == $method->Interface) {\n $qiwi_id = $method->Message_ID;\n $pay_method .= "
\n Введите номер своего кошелька в системе QIWI (*):\n \n
";\n $qiwi_check_num_js = $qiwi_js;\n }\n echo $shop->Payment($method->Interface, \'create_bill\', true);\n $hash = md5($method->Message_ID.$message.$nc_core->get_settings(\'SecretKey\', \'system\'));\n $no_radio_js = $qiwi_check_num_js." $(\'#f{$method->Interface}\').submit();";\n }\n}\n\n$res .= $pay_method ? "
Способ оплаты: ".$pay_method.$end."
" : \'\';\n\necho "\n";\n\n$res .= "