本文整理汇总了PHP中mslib_fe::getOrderInvoice方法的典型用法代码示例。如果您正苦于以下问题:PHP mslib_fe::getOrderInvoice方法的具体用法?PHP mslib_fe::getOrderInvoice怎么用?PHP mslib_fe::getOrderInvoice使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类mslib_fe
的用法示例。
在下文中一共展示了mslib_fe::getOrderInvoice方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: updateOrderStatus
//.........这里部分代码省略.........
$array1[] = '###BILLING_FULL_NAME###';
$array2[] = $full_customer_name;
$array1[] = '###FULL_NAME###';
$array2[] = $full_customer_name;
$array1[] = '###DELIVERY_FULL_NAME###';
$array2[] = $delivery_full_customer_name;
$array1[] = '###BILLING_NAME###';
$array2[] = $order['billing_name'];
$array1[] = '###BILLING_EMAIL###';
$array2[] = $order['billing_email'];
$array1[] = '###DELIVERY_EMAIL###';
$array2[] = $order['delivery_email'];
$array1[] = '###DELIVERY_NAME###';
$array2[] = $order['delivery_name'];
$array1[] = '###CUSTOMER_EMAIL###';
$array2[] = $order['billing_email'];
$array1[] = '###STORE_NAME###';
$array2[] = $this->ms['MODULES']['STORE_NAME'];
$array1[] = '###TOTAL_AMOUNT###';
$array2[] = mslib_fe::amount2Cents($order['total_amount']);
$ORDER_DETAILS = mslib_fe::printOrderDetailsTable($order, 'email');
$array1[] = '###ORDER_DETAILS###';
$array2[] = $ORDER_DETAILS;
$array1[] = '###BILLING_ADDRESS###';
$array2[] = $billing_address;
$array1[] = '###DELIVERY_ADDRESS###';
$array2[] = $delivery_address;
$array1[] = '###CUSTOMER_ID###';
$array2[] = $order['customer_id'];
$array1[] = '###SHIPPING_METHOD###';
$array2[] = $order['shipping_method_label'];
$array1[] = '###PAYMENT_METHOD###';
$array2[] = $order['payment_method_label'];
$invoice = mslib_fe::getOrderInvoice($order['orders_id'], 0);
$invoice_id = '';
$invoice_link = '';
if (is_array($invoice)) {
$invoice_id = $invoice['invoice_id'];
$invoice_link = '<a href="' . $this->FULL_HTTP_URL . mslib_fe::typolink($this->shop_pid . ',2002', 'tx_multishop_pi1[page_section]=download_invoice&tx_multishop_pi1[hash]=' . $invoice['hash']) . '">' . $invoice['invoice_id'] . '</a>';
}
$array1[] = '###INVOICE_NUMBER###';
$array2[] = $invoice_id;
$array1[] = '###INVOICE_LINK###';
$array2[] = $invoice_link;
$time = $order['crdate'];
$long_date = strftime($this->pi_getLL('full_date_format'), $time);
$array1[] = '###ORDER_DATE_LONG###';
// ie woensdag 23 juni, 2010
$array2[] = $long_date;
// backwards compatibility
$array1[] = '###ORDER_DATE###';
// 21-12-2010 in localized format
$array2[] = strftime("%x", $time);
$array1[] = '###LONG_DATE###';
// ie woensdag 23 juni, 2010
$array2[] = $long_date;
$time = time();
$long_date = strftime($this->pi_getLL('full_date_format'), $time);
$array1[] = '###CURRENT_DATE_LONG###';
// ie woensdag 23 juni, 2010
$array2[] = $long_date;
$array1[] = '###STORE_NAME###';
$array2[] = $this->ms['MODULES']['STORE_NAME'];
$array1[] = '###TOTAL_AMOUNT###';
$array2[] = mslib_fe::amount2Cents($order['total_amount']);
$array1[] = '###PROPOSAL_NUMBER###';
示例2: die
<?php
if (!defined('TYPO3_MODE')) {
die('Access denied.');
}
if (is_numeric($this->get['orders_id'])) {
if ($this->ms['MODULES']['ADMIN_INVOICE_MODULE'] && $this->get['print'] != 'packing') {
$invoice = mslib_fe::getOrderInvoice($this->get['orders_id']);
$invoice_data = mslib_fe::getInvoice($invoice['hash'], 'hash');
}
if ($this->ms['MODULES']['ADMIN_INVOICE_MODULE'] && $this->ms['MODULES']['INVOICE_PDF_DIRECT_LINK_FROM_ORDERS_LISTING'] && $this->get['print'] != 'packing') {
header('Location: ' . $this->FULL_HTTP_URL . mslib_fe::typolink($this->shop_pid . ',2002', 'tx_multishop_pi1[page_section]=download_invoice&tx_multishop_pi1[hash]=' . $invoice['hash']));
exit;
}
$order = mslib_fe::getOrder($this->get['orders_id']);
$orders_tax_data = $order['orders_tax_data'];
if ($order['orders_id']) {
if ($this->ms['MODULES']['ADMIN_INVOICE_MODULE'] && $this->get['print'] != 'packing') {
$order['crdate'] = $invoice_data['crdate'];
}
// Instantiate admin interface object
$objRef =& \TYPO3\CMS\Core\Utility\GeneralUtility::getUserObj('EXT:multishop/pi1/classes/class.tx_mslib_admin_interface.php:&tx_mslib_admin_interface');
$objRef->init($this);
$objRef->setInterfaceKey('admin_order_print');
// Set header buttons through interface class so other plugins can adjust it
$objRef->setHeaderButtons($headerButtons);
if ($this->get['tx_multishop_pi1']['action']) {
switch ($this->get['tx_multishop_pi1']['action']) {
case '':
break;
default:
示例3: strftime
$ORDER_DETAILS = $mslib_order->printOrderDetailsTable($tmpArray, 'site');
$array1[] = '###ORDER_DETAILS###';
$array2[] = $ORDER_DETAILS;
$array1[] = '###BILLING_ADDRESS###';
$array2[] = $billing_address;
$array1[] = '###DELIVERY_ADDRESS###';
$array2[] = $delivery_address;
$array1[] = '###CUSTOMER_ID###';
$array2[] = $tmpArray['customer_id'];
$array1[] = '###SHIPPING_METHOD###';
$array2[] = $tmpArray['shipping_method_label'];
$array1[] = '###PAYMENT_METHOD###';
$array2[] = $tmpArray['payment_method_label'];
$array1[] = '###ORDERS_ID###';
$array2[] = $tmpArray['orders_id'];
$invoice = mslib_fe::getOrderInvoice($tmpArray['orders_id'], 0);
$invoice_id = '';
$invoice_link = '';
if (is_array($invoice)) {
$invoice_id = $invoice['invoice_id'];
$invoice_link = '<a href="' . $this->FULL_HTTP_URL . mslib_fe::typolink($this->shop_pid . ',2002', 'tx_multishop_pi1[page_section]=download_invoice&tx_multishop_pi1[hash]=' . $invoice['hash']) . '">' . $invoice['invoice_id'] . '</a>';
}
$array1[] = '###INVOICE_NUMBER###';
$array2[] = $invoice_id;
$array1[] = '###INVOICE_LINK###';
$array2[] = $invoice_link;
$time = $tmpArray['crdate'];
$long_date = strftime($this->pi_getLL('full_date_format'), $time);
$array1[] = '###ORDER_DATE_LONG###';
// ie woensdag 23 juni, 2010
$array2[] = $long_date;
示例4: updateOrderStatusToPaid
public function updateOrderStatusToPaid($orders_id, $timestamp = '')
{
if (!is_numeric($orders_id)) {
return false;
}
$order = mslib_fe::getOrder($orders_id);
if (!$order['paid']) {
//hook to let other plugins further manipulate the replacers
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_fe.php']['updateOrderStatusToPaidPreProc'])) {
$params = array('order' => &$order);
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_fe.php']['updateOrderStatusToPaidPreProc'] as $funcRef) {
\TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
}
}
$updateArray = array('paid' => 1);
$updateArray['orders_last_modified'] = time();
if (!$timestamp) {
$timestamp = time();
}
// set the order status based on payment method settings
$payment_method = mslib_fe::loadPaymentMethod($order['payment_method']);
$payment_method_vars = unserialize($payment_method['vars']);
$payment_method_vars['success_status'] = (int) $payment_method_vars['success_status'];
if ($payment_method['provider'] == 'generic' && isset($payment_method_vars['success_status']) && is_numeric($payment_method_vars['success_status']) && $payment_method_vars['success_status'] > 0) {
$updateArray['status'] = $payment_method_vars['success_status'];
}
$updateArray['orders_paid_timestamp'] = $timestamp;
$query = $GLOBALS['TYPO3_DB']->UPDATEquery('tx_multishop_orders', 'orders_id=' . $orders_id, $updateArray);
$res = $GLOBALS['TYPO3_DB']->sql_query($query);
if ($this->ms['MODULES']['ADMIN_INVOICE_MODULE'] && $this->ms['MODULES']['GENERATE_INVOICE_ID_AFTER_ORDER_SET_TO_PAID']) {
// create invoice
$invoice = mslib_fe::getOrderInvoice($orders_id);
$updateArray = array('paid' => 1);
$query = $GLOBALS['TYPO3_DB']->UPDATEquery('tx_multishop_invoices', 'hash=\'' . $invoice['hash'] . '\'', $updateArray);
$res = $GLOBALS['TYPO3_DB']->sql_query($query);
}
$continue = 1;
foreach ($order['products'] as $product) {
$module_settings = mslib_fe::loadInherentCustomSettingsByProduct($product['products_id']);
if ($module_settings['ORDERS_PAID_CUSTOM_SCRIPT']) {
if (!strstr($module_settings['ORDERS_PAID_CUSTOM_SCRIPT'], "..")) {
if (strstr($module_settings['ORDERS_PAID_CUSTOM_SCRIPT'], "/")) {
$continue = 0;
require PATH_site . $module_settings['ORDERS_PAID_CUSTOM_SCRIPT'] . '.php';
}
}
}
}
if ($this->ms['MODULES']['ORDERS_PAID_CUSTOM_SCRIPT'] and $continue) {
if (!strstr($module_settings['ORDERS_PAID_CUSTOM_SCRIPT'], "..")) {
if (strstr($module_settings['ORDERS_PAID_CUSTOM_SCRIPT'], "/")) {
require PATH_site . $module_settings['ORDERS_PAID_CUSTOM_SCRIPT'] . '.php';
}
}
}
$mailOrder = 1;
//hook to let other plugins further manipulate the replacers
if (is_array($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_fe.php']['updateOrderStatusToPaidPostProc'])) {
$params = array('order' => &$order, 'mailOrder' => &$mailOrder);
foreach ($GLOBALS['TYPO3_CONF_VARS']['SC_OPTIONS']['ext/multishop/pi1/classes/class.mslib_fe.php']['updateOrderStatusToPaidPostProc'] as $funcRef) {
\TYPO3\CMS\Core\Utility\GeneralUtility::callUserFunction($funcRef, $params, $this);
}
}
if ($mailOrder) {
$tmp = mslib_fe::mailOrder($order['orders_id'], 1, '', 'email_order_paid_letter');
}
return true;
} else {
return false;
}
}
示例5: mailOrder
//.........这里部分代码省略.........
$array1[] = '###BILLING_ADDRESS###';
$array2[] = $billing_address;
$array1[] = '###DELIVERY_ADDRESS###';
$array2[] = $delivery_address;
$array1[] = '###BILLING_STREET_NAME###';
$array2[] = $order['billing_street_name'];
$array1[] = '###BILLING_ADDRESS_NUMBER###';
$array2[] = $order['billing_address_number'];
$array1[] = '###BILLING_ADDRESS_EXT###';
$array2[] = $order['billing_address_ext'];
$array1[] = '###BILLING_ZIP###';
$array2[] = $order['billing_zip'];
$array1[] = '###BILLING_CITY###';
$array2[] = $order['billing_city'];
$array1[] = '###BILLING_COUNTRY###';
$array2[] = mslib_fe::getTranslatedCountryNameByEnglishName($this->lang, $order['billing_country']);
$array1[] = '###DELIVERY_STREET_NAME###';
$array2[] = $order['delivery_street_name'];
$array1[] = '###DELIVERY_ADDRESS_NUMBER###';
$array2[] = $order['delivery_address_number'];
$array1[] = '###DELIVERY_ADDRESS_EXT###';
$array2[] = $order['delivery_address_ext'];
$array1[] = '###DELIVERY_ZIP###';
$array2[] = $order['delivery_zip'];
$array1[] = '###DELIVERY_CITY###';
$array2[] = $order['delivery_city'];
$array1[] = '###DELIVERY_COUNTRY###';
$array2[] = mslib_fe::getTranslatedCountryNameByEnglishName($this->lang, $order['delivery_country']);
$array1[] = '###CUSTOMER_ID###';
$array2[] = $order['customer_id'];
$ORDER_DETAILS = self::printOrderDetailsTable($order, 'email');
if ($this->ms['MODULES']['CREATE_INVOICE_DIRECTLY_AFTER_CREATING_ORDER']) {
// FORCE CREATE INVOICE IF NOT ALREADY EXISTING
$invoice = mslib_fe::getOrderInvoice($order['orders_id'], 1);
} else {
$invoice = mslib_fe::getOrderInvoice($order['orders_id'], 0);
}
$invoice_id = '';
$invoice_link = '';
if (is_array($invoice)) {
$invoice_id = $invoice['invoice_id'];
$invoice_link = '<a href="' . $this->FULL_HTTP_URL . mslib_fe::typolink($this->shop_pid . ',2002', '&tx_multishop_pi1[page_section]=download_invoice&tx_multishop_pi1[hash]=' . $invoice['hash']) . '">' . $invoice['invoice_id'] . '</a>';
}
$array1[] = '###INVOICE_NUMBER###';
$array2[] = $invoice_id;
$array1[] = '###INVOICE_LINK###';
$array2[] = $invoice_link;
$array1[] = '###ORDER_DETAILS###';
$array2[] = $ORDER_DETAILS;
$array1[] = '###SHIPPING_METHOD###';
$array2[] = $order['shipping_method_label'];
$array1[] = '###PAYMENT_METHOD###';
$array2[] = $order['payment_method_label'];
$array1[] = '###EXPECTED_DELIVERY_DATE###';
if ($order['expected_delivery_date'] > 0) {
$array2[] = strftime("%x", $order['expected_delivery_date']);
} else {
$array2[] = '';
}
$array1[] = '###EXPECTED_DELIVERY_DATE_LONG###';
if ($order['expected_delivery_date'] > 0) {
$array2[] = strftime($this->pi_getLL('full_date_format'), $order['expected_delivery_date']);
} else {
$array2[] = '';
}
$array1[] = '###CUSTOMER_COMMENTS###';
示例6: strftime
$ORDER_DETAILS = $mslib_order->printOrderDetailsTable($order, 'site');
$array1[] = '###ORDER_DETAILS###';
$array2[] = $ORDER_DETAILS;
$array1[] = '###BILLING_ADDRESS###';
$array2[] = $billing_address;
$array1[] = '###DELIVERY_ADDRESS###';
$array2[] = $delivery_address;
$array1[] = '###CUSTOMER_ID###';
$array2[] = $order['customer_id'];
$array1[] = '###SHIPPING_METHOD###';
$array2[] = $order['shipping_method_label'];
$array1[] = '###PAYMENT_METHOD###';
$array2[] = $order['payment_method_label'];
$array1[] = '###ORDERS_ID###';
$array2[] = $order['orders_id'];
$invoice = mslib_fe::getOrderInvoice($order['orders_id'], 0);
$invoice_id = '';
$invoice_link = '';
if (is_array($invoice)) {
$invoice_id = $invoice['invoice_id'];
$invoice_link = '<a href="' . $this->FULL_HTTP_URL . mslib_fe::typolink($this->shop_pid . ',2002', 'tx_multishop_pi1[page_section]=download_invoice&tx_multishop_pi1[hash]=' . $invoice['hash']) . '">' . $invoice['invoice_id'] . '</a>';
}
$array1[] = '###INVOICE_NUMBER###';
$array2[] = $invoice_id;
$array1[] = '###INVOICE_LINK###';
$array2[] = $invoice_link;
$time = $order['crdate'];
$long_date = strftime($this->pi_getLL('full_date_format'), $time);
$array1[] = '###ORDER_DATE_LONG###';
// ie woensdag 23 juni, 2010
$array2[] = $long_date;