if ($order['by_phone']) { $classes[] = 'fa fa-phone fa-stack-1x fa-inverse'; $markerArray['MANUAL_ORDER_ICON'] = '<span class="' . implode(' ', $parentClasses) . '"><i class="fa fa-circle fa-stack-2x fa-circle-phone"></i><i class="' . implode(' ', $classes) . '"></i></span>'; } else { $classes[] = 'fa fa-cart-plus fa-stack-1x fa-inverse'; $markerArray['MANUAL_ORDER_ICON'] = '<span class="' . implode(' ', $parentClasses) . '"><i class="fa fa-circle fa-stack-2x fa-circle-cart-plus"></i><i class="' . implode(' ', $classes) . '"></i></span>'; } $markerArray['INVOICE_NUMBER'] = ''; if ($this->ms['MODULES']['ADMIN_INVOICE_MODULE']) { $markerArray['INVOICE_NUMBER'] = '<td align="right">'; $filter = array(); $invoices = mslib_befe::getRecords($order['orders_id'], 'tx_multishop_invoices i', 'i.orders_id', $filter); $links = array(); if (is_array($invoices) && count($invoices)) { foreach ($invoices as $invoice) { $invoice = mslib_fe::getInvoice($invoice['id'], 'id'); $links[] = '<a href="' . mslib_fe::typolink($this->shop_pid . ',2002', 'tx_multishop_pi1[page_section]=download_invoice&tx_multishop_pi1[hash]=' . $invoice['hash']) . '" target="_blank">' . $invoice['invoice_id'] . '</a>'; } } if (count($links)) { $markerArray['INVOICE_NUMBER'] .= implode('<br/>', $links); } $markerArray['INVOICE_NUMBER'] .= '</td>'; } if (isset($this->get['tx_multishop_pi1']['is_proposal'])) { $markerArray['ORDER_EDIT_URL'] = mslib_fe::typolink($this->shop_pid . ',2003', '&tx_multishop_pi1[page_section]=edit_order&orders_id=' . $order['orders_id'] . '&action=edit_order&tx_multishop_pi1[is_proposal]=1'); } else { $markerArray['ORDER_EDIT_URL'] = mslib_fe::typolink($this->shop_pid . ',2003', '&tx_multishop_pi1[page_section]=edit_order&orders_id=' . $order['orders_id'] . '&action=edit_order'); } $markerArray['EDIT_ORDER_POPUP_WIDTH'] = $edit_order_popup_width; $markerArray['LABEL_LOADING'] = htmlspecialchars($this->pi_getLL('loading'));
<?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:
} } } } echo json_encode($return_data); exit; break; case 'update_invoice_paid_status_save_popup_value': $return_data = array(); $order_id = $this->post['tx_multishop_pi1']['order_id']; $invoice_id = $this->post['tx_multishop_pi1']['invoice_id']; $invoice_nr = $this->post['tx_multishop_pi1']['invoice_nr']; $return_data['status'] = 'NOTOK'; $return_data['status'] = 'NOTOK'; if (is_numeric($invoice_id)) { $invoice = mslib_fe::getInvoice($invoice_id, 'id'); if ($invoice['id']) { $order = mslib_fe::getOrder($invoice['orders_id']); if ($order['orders_id']) { $date_paid = strtotime($this->post['tx_multishop_pi1']['date_paid']); $payment_id = $this->post['tx_multishop_pi1']['payment_id']; // if (is_numeric($payment_id) && $payment_id > 0) { $payment_method = mslib_fe::getPaymentMethod($payment_id); $updateArray = array(); $updateArray['payment_method_costs'] = $payment_method['handling_costs']; $updateArray['payment_method'] = $payment_method['code']; $updateArray['payment_method_label'] = $payment_method['name']; $updateArray['orders_last_modified'] = time(); $updateArray['orders_paid_timestamp'] = $date_paid; $query = $GLOBALS['TYPO3_DB']->UPDATEquery('tx_multishop_orders', 'orders_id=\'' . $order_id . '\'', $updateArray);
$tr_type = 'even'; foreach ($tmporders as $order) { if (!$tr_type or $tr_type == 'even') { $tr_type = 'odd'; } else { $tr_type = 'even'; } $tmp .= '<tr class="' . $tr_type . '">'; $tmp .= '<td align="right" nowrap class="cell_orders_id"> <a href="' . mslib_fe::typolink('', 'tx_multishop_pi1[page_section]=order_details&tx_multishop_pi1[orders_id]=' . $order['orders_id']) . '">' . $order['orders_id'] . '</a></td>'; $tmp .= '<td align="right" nowrap class="cell_amount">' . mslib_fe::amount2Cents(mslib_fe::getOrderTotalPrice($order['orders_id'])) . '</td>'; $tmp .= '<td align="center" nowrap class="cell_date">' . strftime("%x", $order['crdate']) . '</td>'; if ($this->ms['MODULES']['ADMIN_INVOICE_MODULE']) { $tmp .= '<td align="center" nowrap class="cell_invoice"> '; $invoice = mslib_fe::getInvoice($order['orders_id'], 'orders_id'); if ($invoice['id']) { $tmp .= '<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']) . '" target="_blank" class="msfront_download_invoice" title="download invoice">' . $this->pi_getLL('download') . '</a>'; } $tmp .= ' </td>'; } // $tmp.='<td align="left" nowrap>'.$order['shipping_method_label'].'</td>'; // $tmp.='<td align="left" nowrap>'.$order['payment_method_label'].'</td>'; $tmp .= '<td align="left" nowrap class="cell_order_status">' . $order['orders_status'] . '</td>'; if ($this->ms['MODULES']['ENABLE_REORDER_FEATURE_IN_ACCOUNT_ORDER_HISTORY']) { $tmp .= '<td align="center" nowrap class="cell_action">'; $tmp .= '<a href="' . mslib_fe::typolink('', 'tx_multishop_pi1[re-order]=1&tx_multishop_pi1[orders_id]=' . $order['orders_id']) . '" class="msfront_reorder" title="' . htmlspecialchars($this->pi_getLL('re-order')) . '">' . $this->pi_getLL('re-order') . '</a>'; $tmp .= '</td>'; } $tmp .= '</tr>';
<?php if (!defined('TYPO3_MODE')) { die('Access denied.'); } $hash = $this->get['tx_multishop_pi1']['hash']; $invoice = mslib_fe::getInvoice($hash, 'hash'); if ($invoice['orders_id']) { if ($invoice['reversal_invoice']) { $prefix = '-'; } else { $prefix = ''; } $order = mslib_fe::getOrder($invoice['orders_id']); $pdfdata = array(); // top left area $name = $order['billing_company']; if (!$name) { $name = $order['billing_name']; } $pdfdata['address1'][] = $name; $pdfdata['address1'][] = $order['billing_address']; $pdfdata['address1'][] = $order['billing_zip'] . ' ' . mslib_befe::strtoupper($order['billing_city']); $pdfdata['address1'][] = ucfirst($order['billing_country']); // top left area eof // top right area $order = mslib_fe::getOrder($invoice['orders_id']); $pdfdata['address'][$this->pi_getLL('admin_customer_id')] = $order['customer_id']; $pdfdata['address'][$this->pi_getLL('orders_id')] = $invoice['orders_id']; $pdfdata['address'][$this->pi_getLL('admin_order_date')] = strftime("%x", $order['crdate']); $pdfdata['address'][$this->pi_getLL('invoice_date')] = strftime("%x", $invoice['crdate']);