本文整理汇总了PHP中order::getOrderData方法的典型用法代码示例。如果您正苦于以下问题:PHP order::getOrderData方法的具体用法?PHP order::getOrderData怎么用?PHP order::getOrderData使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类order
的用法示例。
在下文中一共展示了order::getOrderData方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: order
$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']);
$vamTemplate->assign('14', $order->customer['lastname']);
示例2: order
}
$breadcrumb->add(NAVBAR_TITLE_1_ACCOUNT_HISTORY_INFO, xtc_href_link(FILENAME_ACCOUNT, '', 'SSL'));
$breadcrumb->add(NAVBAR_TITLE_2_ACCOUNT_HISTORY_INFO, xtc_href_link(FILENAME_ACCOUNT_HISTORY, '', 'SSL'));
$breadcrumb->add(sprintf(NAVBAR_TITLE_3_ACCOUNT_HISTORY_INFO, (int) $_GET['order_id']), xtc_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) {
$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($order->info['order_id']);
$smarty->assign('order_data', $order->getOrderData($order->info['order_id']));
$smarty->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';
$smarty->assign('PAYMENT_METHOD', constant('MODULE_PAYMENT_' . strtoupper($order->info['payment_method']) . '_TEXT_TITLE'));
}
## PayPal
if ($order->info['payment_method'] == 'paypallink' || $order->info['payment_method'] == 'paypalpluslink') {
require_once DIR_FS_EXTERNAL . 'paypal/classes/PayPalPayment.php';
$paypal = new PayPalPayment($order->info['payment_method']);
if ($paypal->get_config('MODULE_PAYMENT_' . strtoupper($order->info['payment_method']) . '_USE_ACCOUNT') == 1) {
$button = $paypal->create_paypal_link($order->info['order_id']);
if ($button != '') {
$smarty->assign('PAYPAL_LINK', sprintf(constant('MODULE_PAYMENT_' . strtoupper($order->info['payment_method']) . '_TEXT_SUCCESS'), $button));
}
示例3: order
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);
}
示例4: xtcPrice
$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']);
include DIR_FS_CATALOG . 'lang/' . $order->info['language'] . '/modules/shipping/' . $shipping_class[0] . '.php';
$shipping_method = constant(strtoupper('MODULE_SHIPPING_' . $shipping_class[0] . '_TEXT_TITLE'));
示例5: vamDBquery
if ($_SESSION['credit_covers'] != '1') {
$vamTemplate->assign('address_label_payment', vam_address_format($order->billing['format_id'], $order->billing, 1, '', '<br />'));
}
$vamTemplate->assign('csID', $order->customer['csID']);
$it = 0;
$semextrfields = vamDBquery("select * from " . TABLE_EXTRA_FIELDS . " where fields_required_email = '1'");
while ($dataexfes = vam_db_fetch_array($semextrfields, true)) {
$cusextrfields = vamDBquery("select * from " . TABLE_CUSTOMERS_TO_EXTRA_FIELDS . " where customers_id = '" . (int) $_SESSION['customer_id'] . "' and fields_id = '" . $dataexfes['fields_id'] . "'");
$rescusextrfields = vam_db_fetch_array($cusextrfields, true);
$extrfieldsinf = vamDBquery("select fields_name from " . TABLE_EXTRA_FIELDS_INFO . " where fields_id = '" . $dataexfes['fields_id'] . "' and languages_id = '" . $_SESSION['languages_id'] . "'");
$extrfieldsres = vam_db_fetch_array($extrfieldsinf, true);
$extra_fields .= $extrfieldsres['fields_name'] . ' : ' . $rescusextrfields['value'] . "\n";
$vamTemplate->assign('customer_extra_fields', $extra_fields);
}
$order_total = $order->getTotalData($insert_id);
$vamTemplate->assign('order_data', $order->getOrderData($insert_id));
$vamTemplate->assign('order_total', $order_total['data']);
// assign language to template for caching
$vamTemplate->assign('language', $_SESSION['language']);
$vamTemplate->assign('tpl_path', 'templates/' . CURRENT_TEMPLATE . '/');
$vamTemplate->assign('logo_path', HTTP_SERVER . DIR_WS_CATALOG . 'templates/' . CURRENT_TEMPLATE . '/img/');
$vamTemplate->assign('oID', $insert_id);
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);
if ($order->info['shipping_method'] != '') {
$shipping_method = $order->info['shipping_method'];
}
$vamTemplate->assign('SHIPPING_METHOD', $shipping_method);
示例6: order
}
$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') {
include DIR_WS_MODULES . 'downloads.php';
示例7: order
}
}
// 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
// minimum/maximum order value
示例8: order
$order_query_check = xtc_db_query("SELECT customers_id\n FROM " . TABLE_ORDERS . "\n WHERE orders_id=" . $oID);
$order_check = xtc_db_fetch_array($order_query_check);
//BOF - GTB - 2010-09-15 - change Print Button to Form for Guests
if (isset($_SESSION['customer_id']) && $_SESSION['customer_id'] == $order_check['customers_id'] || isset($_POST['customer_id']) && $_POST['customer_id'] == $order_check['customers_id']) {
//EOF - GTB - 2010-09-15 - change Print Button to Form for Guests
// get order data
include DIR_WS_CLASSES . 'order.php';
$order = new order($oID);
$smarty->assign('address_label_shop', STORE_NAME_ADDRESS);
$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
$order_total = $order->getTotalData($oID);
$smarty->assign('order_data', $order->getOrderData($oID));
$smarty->assign('order_total', $order_total['data']);
//allow duty-note in print_order
$smarty->assign('DELIVERY_DUTY_INFO', $main->getDeliveryDutyInfo($order->delivery['country_iso_2']));
// assign language to template for caching
$smarty->assign('language', $_SESSION['language']);
$smarty->assign('oID', (int) $_GET['oID']);
$payment_method = false;
//DokuMan - 2010-03-18 - set undefined variable
if ($order->info['payment_method'] != '' && $order->info['payment_method'] != 'no_payment') {
include_once DIR_WS_LANGUAGES . $_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);
$smarty->assign('COMMENT', $order->info['comments']);
$smarty->assign('DATE', xtc_date_long($order->info['date_purchased']));