コード例 #1
0
ファイル: schet.php プロジェクト: nomadcomanche/zdorov_shop
 $vamTemplate->assign('order_total', $order_total['data']);
 $vamTemplate->assign('1', MODULE_PAYMENT_SCHET_1);
 $vamTemplate->assign('2', MODULE_PAYMENT_SCHET_2);
 $vamTemplate->assign('3', MODULE_PAYMENT_SCHET_3);
 $vamTemplate->assign('4', MODULE_PAYMENT_SCHET_4);
 $vamTemplate->assign('5', MODULE_PAYMENT_SCHET_5);
 $vamTemplate->assign('6', MODULE_PAYMENT_SCHET_6);
 $vamTemplate->assign('7', MODULE_PAYMENT_SCHET_7);
 $vamTemplate->assign('8', MODULE_PAYMENT_SCHET_8);
 $vamTemplate->assign('9', MODULE_PAYMENT_SCHET_9);
 $vamTemplate->assign('10', MODULE_PAYMENT_SCHET_10);
 $vamTemplate->assign('11', MODULE_PAYMENT_SCHET_11);
 $vamTemplate->assign('12', MODULE_PAYMENT_SCHET_12);
 $vamTemplate->assign('13', $order->customer['firstname']);
 $vamTemplate->assign('14', $order->customer['lastname']);
 $iw = new inwords();
 $vamTemplate->assign('summa', $iw->get($order->info['total_value']));
 $vamTemplate->assign('extra_fields_data', vam_get_extra_fields_order($order_check['customers_id'], $_SESSION['languages_id']));
 // assign language to template for caching
 $vamTemplate->assign('language', $_SESSION['language']);
 $vamTemplate->assign('charset', $_SESSION['language_charset']);
 $vamTemplate->assign('oID', (int) $_GET['oID']);
 if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') {
     include DIR_WS_LANGUAGES . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php';
     $payment_method = constant(strtoupper('MODULE_PAYMENT_' . $order->info['payment_method'] . '_TEXT_TITLE'));
 }
 $vamTemplate->assign('PAYMENT_METHOD', $payment_method);
 $vamTemplate->assign('COMMENT', $order->info['comments']);
 $vamTemplate->assign('DATE', vam_date_short($order->info['date_purchased']));
 $path = DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/';
 $vamTemplate->assign('tpl_path', $path);
コード例 #2
0
$vamTemplate->assign('4', MODULE_PAYMENT_SCHET_4);
$vamTemplate->assign('5', MODULE_PAYMENT_SCHET_5);
$vamTemplate->assign('6', MODULE_PAYMENT_SCHET_6);
$vamTemplate->assign('7', MODULE_PAYMENT_SCHET_7);
$vamTemplate->assign('8', MODULE_PAYMENT_SCHET_8);
$vamTemplate->assign('9', MODULE_PAYMENT_SCHET_9);
$vamTemplate->assign('10', MODULE_PAYMENT_SCHET_10);
$vamTemplate->assign('11', MODULE_PAYMENT_SCHET_11);
$vamTemplate->assign('12', MODULE_PAYMENT_SCHET_12);
$vamTemplate->assign('13', $order->customer['firstname']);
$vamTemplate->assign('14', $order->customer['lastname']);
$vamTemplate->assign('15', $order->customer['telephone']);
$vamTemplate->assign('16', $order->customer['email_address']);
$total_summ_query = vam_db_query("select value\n\t                                  from " . TABLE_ORDERS_TOTAL . "\n\t                                  where orders_id = '" . (int) $_GET['oID'] . "'\n\t                                  and class = 'ot_total'");
$total_summ = vam_db_fetch_array($total_summ_query);
$iw = new inwords();
$vamTemplate->assign('summa', $iw->get($total_summ['value']));
$vamTemplate->assign('extra_fields_data', vam_get_extra_fields_order($order_check['customers_id'], $_SESSION['languages_id']));
// assign language to template for caching
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->assign('charset', $_SESSION['language_charset']);
$vamTemplate->assign('logo_path', HTTP_SERVER . DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/img/');
$vamTemplate->assign('oID', $_GET['oID']);
if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') {
    include DIR_FS_CATALOG . 'lang/' . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php';
    $payment_method = constant(strtoupper('MODULE_PAYMENT_' . $order->info['payment_method'] . '_TEXT_TITLE'));
    $vamTemplate->assign('PAYMENT_METHOD', $payment_method);
}
if ($order->info['shipping_class'] != '') {
    $shipping_method_query = vam_db_query("select title from " . TABLE_ORDERS_TOTAL . " where orders_id = '" . $_GET['oID'] . "' and class = 'ot_shipping'");
    $shipping_method = vam_db_fetch_array($shipping_method_query);