本文整理汇总了PHP中order::getTotalData方法的典型用法代码示例。如果您正苦于以下问题:PHP order::getTotalData方法的具体用法?PHP order::getTotalData怎么用?PHP order::getTotalData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类order
的用法示例。
在下文中一共展示了order::getTotalData方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: order
$vamTemplate->assign('company_ks', $company['ks']);
$vamTemplate->assign('company_address', $company['address']);
$vamTemplate->assign('company_yur_address', $company['yur_address']);
$vamTemplate->assign('company_fakt_address', $company['fakt_address']);
$vamTemplate->assign('company_director', $company['name']);
$vamTemplate->assign('company_accountant', $company['accountant']);
if ($_SESSION['customer_id'] == $order_check['customers_id']) {
// get order data
include DIR_WS_CLASSES . 'order.php';
$order = new order($oID);
$vamTemplate->assign('address_label_customer', vam_address_format($order->customer['format_id'], $order->customer, 1, '', '<br />'));
$vamTemplate->assign('address_label_shipping', vam_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'));
$vamTemplate->assign('address_label_payment', vam_address_format($order->billing['format_id'], $order->billing, 1, '', '<br />'));
$vamTemplate->assign('csID', $order->customer['csID']);
// get products data
$order_total = $order->getTotalData($oID);
$vamTemplate->assign('order_data', $order->getOrderData($oID));
$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']);
示例2: order
$query_store_name = xtc_db_query("-- admin/print_packingslip.php\n SELECT configuration_value AS store_name\n FROM " . TABLE_CONFIGURATION . "\n WHERE configuration_key='STORE_NAME'\n LIMIT 1");
while ($row = xtc_db_fetch_array($query_store_name)) {
$smarty->assign('store_name', $row['store_name']);
}
// EOF - DokuMan - 2011-12-08 - get store name for display in letter box of packing slip
// get order data
include DIR_WS_CLASSES . 'order.php';
$order = new order((int) $_GET['oID']);
$smarty->assign('address_label_customer', xtc_address_format($order->customer['format_id'], $order->customer, 1, '', '<br />'));
$smarty->assign('address_label_shipping', xtc_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'));
$smarty->assign('address_label_payment', xtc_address_format($order->billing['format_id'], $order->billing, 1, '', '<br />'));
$smarty->assign('csID', $order->customer['csID']);
// get products data
include_once DIR_FS_CATALOG . DIR_WS_CLASSES . 'xtcPrice.php';
$xtPrice = new xtcPrice($order->info['currency'], $order->info['status']);
$order_total = $order->getTotalData($order->info['order_id']);
$order_data = $order->getOrderData($order->info['order_id']);
$smarty->assign('order_data', $order_data);
$smarty->assign('order_total', $order_total['data']);
// assign language to template for caching
$languages_query = xtc_db_query("select code, language_charset from " . TABLE_LANGUAGES . " WHERE directory ='" . $order->info['language'] . "'");
$langcode = xtc_db_fetch_array($languages_query);
$smarty->assign('langcode', $langcode['code']);
$smarty->assign('charset', $langcode['language_charset']);
$smarty->assign('language', $order->info['language']);
$smarty->assign('logo_path', HTTP_SERVER . DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/img/');
$smarty->assign('oID', $order->info['order_id']);
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'));
$smarty->assign('PAYMENT_METHOD', $payment_method);
示例3: order
vam_redirect(vam_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
}
$breadcrumb->add(NAVBAR_TITLE_1_ACCOUNT_HISTORY_INFO, vam_href_link(FILENAME_ACCOUNT, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_2_ACCOUNT_HISTORY_INFO, vam_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
$breadcrumb->add(sprintf(NAVBAR_TITLE_3_ACCOUNT_HISTORY_INFO, (int) $_GET['order_id']), vam_href_link(FILENAME_ACCOUNT_HISTORY_INFO, 'order_id=' . (int) $_GET['order_id'], 'SSL'));
require DIR_WS_CLASSES . 'order.php';
$order = new order((int) $_GET['order_id']);
require DIR_WS_INCLUDES . 'header.php';
// Delivery Info
if ($order->delivery != false) {
$vamTemplate->assign('DELIVERY_LABEL', vam_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'));
if ($order->info['shipping_method']) {
$vamTemplate->assign('SHIPPING_METHOD', $order->info['shipping_method']);
}
}
$order_total = $order->getTotalData((int) $_GET['order_id']);
$vamTemplate->assign('order_data', $order->getOrderData((int) $_GET['order_id']));
$vamTemplate->assign('order_total', $order_total['data']);
// Payment Method
if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') {
include DIR_WS_LANGUAGES . '/' . $_SESSION['language'] . '/modules/payment/' . $order->info['payment_method'] . '.php';
$vamTemplate->assign('PAYMENT_METHOD', constant(MODULE_PAYMENT_ . strtoupper($order->info['payment_method']) . _TEXT_TITLE));
}
// Order History
$statuses_query = vam_db_query("select os.orders_status_name, osh.date_added, osh.comments from " . TABLE_ORDERS_STATUS . " os, " . TABLE_ORDERS_STATUS_HISTORY . " osh where osh.orders_id = '" . (int) $_GET['order_id'] . "' and osh.orders_status_id = os.orders_status_id and os.language_id = '" . (int) $_SESSION['languages_id'] . "' order by osh.date_added");
while ($statuses = vam_db_fetch_array($statuses_query)) {
$history_block .= '<p>' . vam_date_short($statuses['date_added']) . "\n" . $statuses['orders_status_name'] . "\n" . (empty($statuses['comments']) ? ' ' : nl2br(htmlspecialchars($statuses['comments']))) . "\n" . '</p>';
}
$vamTemplate->assign('HISTORY_BLOCK', $history_block);
// Download-Products
if (DOWNLOAD_ENABLED == 'true') {
示例4: xtcPrice
$password = xtc_encrypt_password($password_encrypted);
xtc_db_query("update " . TABLE_CUSTOMERS . " set customers_password = '" . $password . "' where customers_id = '" . (int) $_SESSION['customer_id'] . "'");
$smarty->assign('NEW_PASSWORD', $password_encrypted);
}
// EOF - Tomcraft - 2009-10-03 - Paypal Express Modul
//BOF - web28 - 2010-03-20 - Send Order by Admin
if (isset($send_by_admin)) {
//DokuMan - 2010-09-18 - Undefined variable: send_by_admin
$xtPrice = new xtcPrice($order->info['currency'], $order->info['status']);
}
//EOF - web28 - 2010-03-20 - Send Order by Admin
$smarty->assign('address_label_customer', xtc_address_format($order->customer['format_id'], $order->customer, 1, '', '<br />'));
$smarty->assign('address_label_shipping', xtc_address_format($order->delivery['format_id'], $order->delivery, 1, '', '<br />'));
$smarty->assign('address_label_payment', xtc_address_format($order->billing['format_id'], $order->billing, 1, '', '<br />'));
$smarty->assign('csID', $order->customer['csID']);
$order_total = $order->getTotalData($insert_id);
//ACHTUNG für Bestellbestätigung aus Admin Funktion in admin/includes/classes/order.php
$smarty->assign('order_data', $order->getOrderData($insert_id));
//ACHTUNG für Bestellbestätigung aus Admin Funktion in admin/includes/classes/order.php
$smarty->assign('order_total', $order_total['data']);
$smarty->assign('agree_download', $_SESSION['agree_download']);
// assign language to template for caching Web28 2012-04-25 - change all $_SESSION['language'] to $order->info['language']
$smarty->assign('language', $order->info['language']);
$smarty->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$smarty->assign('logo_path', HTTP_SERVER . DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/img/');
//$smarty->assign('oID', $insert_id);
$smarty->assign('oID', $order->info['order_id']);
//DokuMan - 2011-08-31 - fix order_id assignment
//shipping method
if ($order->info['shipping_class'] != '') {
$shipping_class = explode('_', $order->info['shipping_class']);
示例5: order
$_SESSION['allow_checkout'] = 'true';
}
}
// BOF - Tomcraft - 2009-10-03 - Paypal Express Modul
} else {
// 2. PayPal Aufruf - nur anzeigen
require DIR_WS_CLASSES . 'order.php';
$order = new order((int) $_SESSION['tmp_oID']);
$smarty->assign('language', $_SESSION['language']);
if ($order->delivery != false) {
$smarty->assign('DELIVERY_LABEL', xtc_address_format($order->delivery['format_id'], $order->delivery, 1, ' ', '<br />'));
if ($order->info['shipping_method']) {
$smarty->assign('SHIPPING_METHOD', $order->info['shipping_method']);
}
}
$order_total = $order->getTotalData((int) $_SESSION['tmp_oID']);
$smarty->assign('order_data', $order->getOrderData((int) $_SESSION['tmp_oID']));
$smarty->assign('order_total', $order_total['data']);
$smarty->assign('BILLING_LABEL', xtc_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'));
$smarty->assign('ORDER_NUMBER', $_SESSION['tmp_oID']);
$smarty->assign('ORDER_DATE', xtc_date_long($order->info['date_purchased']));
$smarty->assign('ORDER_STATUS', $order->info['orders_status']);
$history_block = '<table summary="order history">';
$order_content = $smarty->fetch(CURRENT_TEMPLATE . '/module/account_history_info.html');
$smarty->assign('info_message_1', $order_content);
$smarty->assign('FORM_ACTION', '<br />' . $o_paypal->build_express_fehler_button() . '<br />' . PAYPAL_NEUBUTTON);
}
if (isset($_SESSION['reshash']['FORMATED_ERRORS'])) {
$smarty->assign('error', $_SESSION['reshash']['FORMATED_ERRORS']);
}
// EOF - Tomcraft - 2009-10-03 - Paypal Express Modul