当前位置: 首页>>代码示例>>PHP>>正文


PHP Order::getUniqReferenceOf方法代码示例

本文整理汇总了PHP中Order::getUniqReferenceOf方法的典型用法代码示例。如果您正苦于以下问题:PHP Order::getUniqReferenceOf方法的具体用法?PHP Order::getUniqReferenceOf怎么用?PHP Order::getUniqReferenceOf使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在Order的用法示例。


在下文中一共展示了Order::getUniqReferenceOf方法的11个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: displayContent

 public function displayContent()
 {
     $id_order = (int) Tools::getValue('id_order');
     $order = new Order($id_order);
     $paypal_order = PayPalOrder::getOrderById($id_order);
     if (defined("PAYPAL_FORCE_CURRENCY")) {
         $currency = new Currency((int) $this->context->currency->id);
         $paycurrency = new Currency(PAYPAL_FORCE_CURRENCY);
         $currency_decimals = $paycurrency->decimals;
         $paypal_order['total_paid'] = $paypal_order['total_paid'] / $currency->conversion_rate * $paycurrency->conversion_rate;
     }
     $price = Tools::displayPrice($paypal_order['total_paid'], $this->context->currency);
     $order_state = new OrderState($id_order);
     if ($order_state) {
         $order_state_message = $order_state->template[$this->context->language->id];
     }
     if (!$order || !$order_state || isset($order_state_message) && $order_state_message == 'payment_error') {
         $this->context->smarty->assign(array('logs' => array($this->paypal->l('An error occurred while processing payment.')), 'order' => $paypal_order, 'price' => $price));
         if (isset($order_state_message) && $order_state_message) {
             $this->context->smarty->assign('message', $order_state_message);
         }
         $template = 'error.tpl';
     } else {
         $this->context->smarty->assign(array('order' => $paypal_order, 'price' => $price));
         if (version_compare(_PS_VERSION_, '1.5', '>')) {
             $this->context->smarty->assign(array('reference_order' => Order::getUniqReferenceOf($paypal_order['id_order'])));
         }
         $template = 'order-confirmation.tpl';
     }
     $this->context->smarty->assign('use_mobile', (bool) $this->paypal->useMobile());
     echo $this->paypal->fetchTemplate($template);
 }
开发者ID:vinay-kumar,项目名称:PrestaShop-modules,代码行数:32,代码来源:submit.php

示例2: initContent

 public function initContent()
 {
     parent::initContent();
     $this->paypal = new PayPal();
     $this->context = Context::getContext();
     $this->id_module = (int) Tools::getValue('id_module');
     $this->id_order = (int) Tools::getValue('id_order');
     $order = new Order($this->id_order);
     $order_state = new OrderState($order->current_state);
     $paypal_order = PayPalOrder::getOrderById($this->id_order);
     if ($order_state->template[$this->context->language->id] == 'payment_error') {
         $this->context->smarty->assign(array('message' => $order_state->name[$this->context->language->id], 'logs' => array($this->paypal->l('An error occurred while processing payment.')), 'order' => $paypal_order, 'price' => Tools::displayPrice($paypal_order['total_paid'], $this->context->currency)));
         return $this->setTemplate('error.tpl');
     }
     $order_currency = new Currency((int) $order->id_currency);
     $display_currency = new Currency((int) $this->context->currency->id);
     $price = Tools::convertPriceFull($paypal_order['total_paid'], $order_currency, $display_currency);
     $this->context->smarty->assign(array('is_guest' => $this->context->customer->is_guest || $this->context->customer->id == false, 'order' => $paypal_order, 'price' => Tools::displayPrice($price, $this->context->currency->id), 'HOOK_ORDER_CONFIRMATION' => $this->displayOrderConfirmation(), 'HOOK_PAYMENT_RETURN' => $this->displayPaymentReturn()));
     if (version_compare(_PS_VERSION_, '1.5', '>')) {
         $this->context->smarty->assign(array('reference_order' => Order::getUniqReferenceOf($paypal_order['id_order'])));
     }
     if ($this->context->customer->is_guest || $this->context->customer->id == false) {
         $this->context->smarty->assign(array('id_order' => (int) $this->id_order, 'id_order_formatted' => sprintf('#%06d', (int) $this->id_order), 'order_reference' => $order->reference));
         /* If guest we clear the cookie for security reason */
         $this->context->customer->mylogout();
     }
     if ($this->context->getMobileDevice() == true) {
         $this->setTemplate('order-confirmation-mobile.tpl');
     } else {
         $this->setTemplate('order-confirmation.tpl');
     }
 }
开发者ID:tomideru,项目名称:PrestaShop-modules,代码行数:32,代码来源:submit.php

示例3: displayContent

 public function displayContent()
 {
     $id_order = (int) Tools::getValue('id_order');
     $order = PayPalOrder::getOrderById($id_order);
     $price = Tools::displayPrice($order['total_paid'], $this->context->currency);
     $this->context->smarty->assign(array('order' => $order, 'price' => $price));
     if (version_compare(_PS_VERSION_, '1.5', '>')) {
         $this->context->smarty->assign(array('reference_order' => Order::getUniqReferenceOf($id_order)));
     }
     echo $this->context->smarty->fetch(_PS_MODULE_DIR_ . '/paypal/views/templates/front/order-confirmation.tpl');
 }
开发者ID:tomideru,项目名称:PrestaShop-modules,代码行数:11,代码来源:submit.php

示例4: content_56fb07cfb00857_87035871


//.........这里部分代码省略.........
                    ?>
alternate_item<?php 
                }
                ?>
">
						<td class="history_link bold">
							<?php 
                if (isset($_smarty_tpl->tpl_vars['order']->value['invoice']) && $_smarty_tpl->tpl_vars['order']->value['invoice'] && isset($_smarty_tpl->tpl_vars['order']->value['virtual']) && $_smarty_tpl->tpl_vars['order']->value['virtual']) {
                    ?>
								<img class="icon" src="<?php 
                    echo $_smarty_tpl->tpl_vars['img_dir']->value;
                    ?>
icon/download_product.gif"	alt="<?php 
                    echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl);
                    ?>
" title="<?php 
                    echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl);
                    ?>
" />
							<?php 
                }
                ?>
							<a class="color-myaccount" href="javascript:showOrder(1, <?php 
                echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);
                ?>
, '<?php 
                ob_start();
                echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);
                $_tmp5 = ob_get_clean();
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail', true, null, "id_order=" . $_tmp5), ENT_QUOTES, 'UTF-8', true);
                ?>
');">
								<?php 
                echo Order::getUniqReferenceOf($_smarty_tpl->tpl_vars['order']->value['id_order']);
                ?>

							</a>
						</td>
						<td data-value="<?php 
                echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['order']->value['date_add'], "/[\\-\\:\\ ]/", '');
                ?>
" class="history_date bold">
							<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['order']->value['date_add'], 'full' => 0), $_smarty_tpl);
                ?>

						</td>
						<td class="history_price" data-value="<?php 
                echo $_smarty_tpl->tpl_vars['order']->value['total_paid'];
                ?>
">
							<span class="price">
								<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['order']->value['total_paid'], 'currency' => $_smarty_tpl->tpl_vars['order']->value['id_currency'], 'no_utf8' => false, 'convert' => false), $_smarty_tpl);
                ?>

							</span>
						</td>
						<td class="history_method"><?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['order']->value['payment'], ENT_QUOTES, 'UTF-8', true);
                ?>
</td>
						<td<?php 
                if (isset($_smarty_tpl->tpl_vars['order']->value['order_state'])) {
                    ?>
 data-value="<?php 
开发者ID:edilsonribeiro,项目名称:ETEC,代码行数:67,代码来源:8bc30e6cf5c281d503ab69c6443da183bff00824.file.history.tpl.php

示例5: content_560ec47a259684_22515537


//.........这里部分代码省略.........
item<?php 
                }
                ?>
 <?php 
                if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index'] % 2) {
                    ?>
alternate_item<?php 
                }
                ?>
">
				<td class="history_link bold">
					<?php 
                if (isset($_smarty_tpl->tpl_vars['order']->value['invoice']) && $_smarty_tpl->tpl_vars['order']->value['invoice'] && isset($_smarty_tpl->tpl_vars['order']->value['virtual']) && $_smarty_tpl->tpl_vars['order']->value['virtual']) {
                    ?>
<img src="<?php 
                    echo $_smarty_tpl->tpl_vars['img_dir']->value;
                    ?>
icon/download_product.gif" class="icon" alt="<?php 
                    echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl);
                    ?>
" title="<?php 
                    echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl);
                    ?>
" /><?php 
                }
                ?>
					<a class="color-myaccount" href="javascript:showOrder(1, <?php 
                echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);
                ?>
, '<?php 
                echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail', true), ENT_QUOTES, 'UTF-8', true);
                ?>
');"><?php 
                echo Order::getUniqReferenceOf($_smarty_tpl->tpl_vars['order']->value['id_order']);
                ?>
</a>
				</td>
				<td class="history_date bold"><?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['order']->value['date_add'], 'full' => 0), $_smarty_tpl);
                ?>
</td>
				<td class="history_price"><span class="price"><?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['order']->value['total_paid'], 'currency' => $_smarty_tpl->tpl_vars['order']->value['id_currency'], 'no_utf8' => false, 'convert' => false), $_smarty_tpl);
                ?>
</span></td>
				<td class="history_method"><?php 
                echo smarty_modifier_escape($_smarty_tpl->tpl_vars['order']->value['payment'], 'htmlall', 'UTF-8');
                ?>
</td>
				<td class="history_state"><?php 
                if (isset($_smarty_tpl->tpl_vars['order']->value['order_state'])) {
                    echo smarty_modifier_escape($_smarty_tpl->tpl_vars['order']->value['order_state'], 'htmlall', 'UTF-8');
                }
                ?>
</td>
				<td class="history_invoice">
				<?php 
                if (isset($_smarty_tpl->tpl_vars['order']->value['invoice']) && $_smarty_tpl->tpl_vars['order']->value['invoice'] && isset($_smarty_tpl->tpl_vars['order']->value['invoice_number']) && $_smarty_tpl->tpl_vars['order']->value['invoice_number'] && isset($_smarty_tpl->tpl_vars['invoiceAllowed']->value) && $_smarty_tpl->tpl_vars['invoiceAllowed']->value == true) {
                    ?>
					<a href="<?php 
                    echo htmlspecialchars($_smarty_tpl->tpl_vars['link']->value->getPageLink('pdf-invoice', true, null, "id_order=" . (string) $_smarty_tpl->tpl_vars['order']->value['id_order']), ENT_QUOTES, 'UTF-8', true);
                    ?>
" title="<?php 
                    echo smartyTranslate(array('s' => 'Invoice'), $_smarty_tpl);
                    ?>
" class="_blank"><img src="<?php 
开发者ID:jep004,项目名称:prestashop,代码行数:67,代码来源:d019f10be4779b0a6db2e4ac1d61ffb8fa893252.file.history.tpl.php

示例6: getOrdersReturn

    public static function getOrdersReturn($customer_id, $order_id = false, $no_denied = false, Context $context = null)
    {
        if (!$context) {
            $context = Context::getContext();
        }
        $data = Db::getInstance()->executeS('
		SELECT *
		FROM `' . _DB_PREFIX_ . 'order_return`
		WHERE `id_customer` = ' . (int) $customer_id . ($order_id ? ' AND `id_order` = ' . (int) $order_id : '') . ($no_denied ? ' AND `state` != 4' : '') . '
		ORDER BY `date_add` DESC');
        foreach ($data as $k => $or) {
            $state = new OrderReturnState($or['state']);
            $data[$k]['state_name'] = $state->name[$context->language->id];
            $data[$k]['type'] = 'Return';
            $data[$k]['tracking_number'] = $or['id_order_return'];
            $data[$k]['can_edit'] = false;
            $data[$k]['reference'] = Order::getUniqReferenceOf($or['id_order']);
        }
        return $data;
    }
开发者ID:zangles,项目名称:lennyba,代码行数:20,代码来源:OrderReturn.php

示例7: content_566719ab5152a4_13849677


//.........这里部分代码省略.........
item<?php 
                    }
                    ?>
 <?php 
                    if ($_smarty_tpl->getVariable('smarty')->value['foreach']['myLoop']['index'] % 2) {
                        ?>
alternate_item<?php 
                    }
                    ?>
">
				<td class="history_link bold">
					<?php 
                    if (isset($_smarty_tpl->tpl_vars['order']->value['invoice']) && $_smarty_tpl->tpl_vars['order']->value['invoice'] && isset($_smarty_tpl->tpl_vars['order']->value['virtual']) && $_smarty_tpl->tpl_vars['order']->value['virtual']) {
                        ?>
<img src="<?php 
                        echo $_smarty_tpl->tpl_vars['img_dir']->value;
                        ?>
icon/download_product.gif" class="icon" alt="<?php 
                        echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl);
                        ?>
" title="<?php 
                        echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl);
                        ?>
" /><?php 
                    }
                    ?>
					<a class="color-myaccount" href="javascript:showOrder(1, <?php 
                    echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);
                    ?>
, '<?php 
                    echo $_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail', true);
                    ?>
');"><?php 
                    echo Order::getUniqReferenceOf($_smarty_tpl->tpl_vars['order']->value['id_order']);
                    ?>
</a>
				</td>
				<td class="history_date bold"><?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['order']->value['date_add'], 'full' => 0), $_smarty_tpl);
                    ?>
</td>
				<td class="history_price"><span class="price"><?php 
                    echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => round($_smarty_tpl->tpl_vars['order']->value['total_paid']), 'currency' => $_smarty_tpl->tpl_vars['order']->value['id_currency'], 'no_utf8' => false, 'convert' => false), $_smarty_tpl);
                    ?>
</span></td>
				<td class="history_method"><?php 
                    echo smarty_modifier_escape($_smarty_tpl->tpl_vars['order']->value['payment'], 'htmlall', 'UTF-8');
                    ?>
</td>
				<td class="history_state">
                	<?php 
                    if (isset($_smarty_tpl->tpl_vars['order']->value['order_state'])) {
                        echo smarty_modifier_escape($_smarty_tpl->tpl_vars['order']->value['order_state'], 'htmlall', 'UTF-8');
                    }
                    ?>
					<?php 
                    if ($_smarty_tpl->tpl_vars['order']->value['module'] == $_smarty_tpl->tpl_vars['name_gopay']->value && ($_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['ADD_GOPAY_STATUS_']->value || $_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['ADD_GOPAY_STATUS_CHOSEN_']->value || $_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['ADD_GOPAY_STATUS_TIMEOUT_']->value || $_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['_PS_OS_ERROR_']->value || $_smarty_tpl->tpl_vars['order']->value['current_state'] == $_smarty_tpl->tpl_vars['ADD_GOPAY_STATUS_CANCELED_']->value)) {
                        ?>
						<p style="margin-top:10px;">
							<a  href="<?php 
                        ob_start();
                        echo $_smarty_tpl->tpl_vars['order']->value['id_order'];
                        $_tmp1 = ob_get_clean();
                        echo $_smarty_tpl->tpl_vars['link']->value->getModuleLink('add_gopay_new', 'repeatPayment', array('orderId' => $_tmp1, 'paymentChannel' => 'ACCOUNT'), true);
                        ?>
"
开发者ID:h0n24,项目名称:leodig,代码行数:67,代码来源:c8d6ff54efab832f920de2331df9da6d9fda3ac6.file.history.tpl.php

示例8: Order

                break;
            }
            $id_order = Db::getInstance()->getValue('SELECT o.id_order
						FROM ' . _DB_PREFIX_ . 'orders o
						LEFT JOIN ' . _DB_PREFIX_ . 'syspay_payment sp ON o.id_cart=sp.id_cart
						WHERE sp.id_syspay_payment=' . (int) $event->getPayment()->getId());
            $order = new Order($id_order);
            if (!$order) {
                break;
            }
            if (!Validate::isLoadedObject($order)) {
                return false;
            }
            $res = Db::getInstance()->execute('INSERT INTO ' . _DB_PREFIX_ . 'syspay_refund VALUES(' . (int) $event->getId() . ', ' . (int) $id_order . ')');
            if (version_compare(_PS_VERSION_, '1.5', '>=')) {
                $order_reference = Order::getUniqReferenceOf($id_order);
                $order_values = Db::getInstance()->getRow('SELECT op.*
							FROM ' . _DB_PREFIX_ . 'order_payment op
							WHERE op.order_reference LIKE "' . $order_reference . '" ORDER BY id_order_payment ASC');
                $order_has_invoice = $order->hasInvoice();
                if ($order_has_invoice) {
                    $id_order_invoice = Db::getInstance()->getValue('SELECT id_order_invoice 
								FROM ' . _DB_PREFIX_ . 'order_invoice WHERE id_order=' . (int) $id_order . ' ORDER BY date_add ASC');
                    $order_invoice = new OrderInvoice($id_order_invoice);
                } else {
                    $order_invoice = null;
                }
                if (!$order->addOrderPayment($event->getAmount() / 100 * -1, $order_values['payment_method'], $order_values['transaction_id'], null, null, $order_invoice)) {
                    return false;
                }
            }
开发者ID:antho-girard,项目名称:syspay,代码行数:31,代码来源:ems.php

示例9: initContent

 /**
  * @see FrontController::initContent()
  */
 public function initContent()
 {
     parent::initContent();
     $data = array();
     /**
      * Set ref is indicative of a payment that is tied to an order instead of a cart, which
      * we still support for transitional reasons.
      */
     if (isset($_GET['ref'])) {
         $order_id = (int) $_GET['id'];
         // Check if user is allowed to be on the return page
         $data['auth'] = Order::getUniqReferenceOf($order_id) === $_GET['ref'];
         if ($data['auth']) {
             $data['mollie_info'] = $this->module->getPaymentBy('order_id', (int) $order_id);
         }
     } elseif (isset($_GET['cart_id'])) {
         $cart_id = (int) $_GET['cart_id'];
         // Check if user that's seeing this is the cart-owner
         $cart = new Cart($cart_id);
         $data['auth'] = (int) $cart->id_customer === $this->context->customer->id;
         if ($data['auth']) {
             $data['mollie_info'] = $this->module->getPaymentBy('cart_id', (int) $cart_id);
         }
     }
     if (isset($data['auth']) && $data['auth']) {
         // any paid payments for this cart?
         if ($data['mollie_info'] === FALSE) {
             $data['mollie_info'] = array();
             $data['msg_details'] = $this->module->lang('The order with this id does not exist.');
         } else {
             switch ($data['mollie_info']['bank_status']) {
                 case Mollie_API_Object_Payment::STATUS_OPEN:
                     $data['msg_details'] = $this->module->lang('We have not received a definite payment status. You will be notified as soon as we receive a confirmation of the bank/merchant.');
                     break;
                 case Mollie_API_Object_Payment::STATUS_CANCELLED:
                     Tools::redirect('order&step=3');
                     break;
                 case Mollie_API_Object_Payment::STATUS_EXPIRED:
                     $data['msg_details'] = $this->module->lang('Unfortunately your order was expired.');
                     break;
                 case Mollie_API_Object_Payment::STATUS_PAID:
                     if (isset($cart_id)) {
                         Tools::redirectLink(__PS_BASE_URI__ . 'index.php?controller=order-confirmation&id_cart=' . $cart_id . '&id_module=' . $this->module->id . '&id_order=' . Order::getOrderByCartId(intval($cart_id)) . '&key=' . $this->context->customer->secure_key);
                     }
                     $data['msg_details'] = $this->module->lang('Thank you. Your order has been received.');
                     break;
                 default:
                     $data['msg_details'] = $this->module->lang('The transaction has an unexpected status.');
                     if (Configuration::get('MOLLIE_DEBUG_LOG') == Mollie::DEBUG_LOG_ERRORS) {
                         Logger::addLog(__METHOD__ . 'said: The transaction has an unexpected status (' . $data['mollie_info']['bank_status'] . ')', Mollie::WARNING);
                     }
             }
         }
     } else {
         $data['mollie_info'] = array();
         $data['msg_details'] = $this->module->lang('You are not authorised to see this page.');
         Tools::redirect(_PS_BASE_URL_ . __PS_BASE_URI__);
     }
     $data['msg_continue'] = '<a href="' . _PS_BASE_URL_ . __PS_BASE_URI__ . '">' . $this->module->lang('Continue shopping') . '</a>';
     $data['msg_welcome'] = $this->module->lang('Welcome back');
     $this->context->smarty->assign($data);
     $this->setTemplate('mollie_return.tpl');
 }
开发者ID:javolero,项目名称:Prestashop,代码行数:66,代码来源:return.php

示例10: orderConfirmationClassic

 /**
  * Trusted Shops Buyer Protection is integrated at the end of the checkout
  * as a form on the order confirmation page.
  * At the moment the customer clicks the registration button,
  * the order data is processed to Trusted Shops.
  * The customer confirms the Buyer Protection on the Trusted Shops site.
  * The guarantee is then booked and the customer receives an email by Trusted Shops.
  *
  * @param array $params
  * @param string $lang
  * @return string tpl content
  */
 private function orderConfirmationClassic($params, $lang)
 {
     $payment_type = 'OTHER';
     // Payment type for native module list
     /*
     DIRECT_DEBIT                               Lastschrift / Bankeinzug
     CREDIT_CARD                                Kreditkarte
     INVOICE                                    Rechnung
     CASH_ON_DELIVERY                           Nachnahme
     PREPAYMENT                                 Vorauskasse / Überweisung
     CHEQUE                                     Verrechnungsscheck
     PAYBOX                                     Paybox Integrationshandbuch Shopbetreiber
     PAYPAL                                     PayPal
     AMAZON_PAYMENTS                            Amazon Payments
     CASH_ON_PICKUP                             Zahlung bei Abholung
     FINANCING                                 Finanzierung
     LEASING                                   Leasing
     T_PAY                                     T-Pay
     CLICKANDBUY                               Click&Buy
     GIROPAY                                   Giropay
     GOOGLE_CHECKOUT                           Checkout
     SHOP_CARD                                 Zahlungskarte des Online Shops
     DIRECT_E_BANKING                          SOFORT Überweisung
     MONEYBOOKERS                              moneybookers.com
     DOTPAY                                    Dotpay
     PLATNOSCI                                 Płatności
     PRZELEWY24                                Przelewy24
     OTHER                                     Andere Zahlungsart
     */
     $payment_type_list = array('bankwire' => 'PREPAYMENT', 'authorizeaim' => 'CREDIT_CARD', 'buyster' => 'CREDIT_CARD', 'cashondelivery' => 'CASH_ON_DELIVERY', 'dibs' => 'CREDIT_CARD', 'cheque' => 'CHEQUE', 'gcheckout' => 'GOOGLE_CHECKOUT', 'hipay' => 'CREDIT_CARD', 'moneybookers' => 'MONEYBOOKERS', 'kwixo' => 'CREDIT_CARD', 'paypal' => 'CREDIT_CARD', 'paysafecard' => 'CREDIT_CARD', 'wexpay' => 'CREDIT_CARD', 'banktransfert' => 'DIRECT DEBIT');
     if (array_key_exists($params['objOrder']->module, $payment_type_list)) {
         $payment_type = $payment_type_list[$params['objOrder']->module];
     }
     $customer = new Customer($params['objOrder']->id_customer);
     $currency = new Currency((int) $params['objOrder']->id_currency);
     $arr_params = array('amount' => $params['total_to_pay'], 'buyer_email' => $customer->email, 'charset' => 'UTF-8', 'currency' => $currency->iso_code, 'customer_id' => $customer->id, 'order_id' => $params['objOrder']->id, 'order_reference' => Order::getUniqReferenceOf($params['objOrder']->id), 'payment_type' => $payment_type, 'shop_id' => TSCommon::$certificates[$lang]['tsID']);
     TSCommon::$smarty->assign(array('tax_label' => 'TTC', 'buyer_protection' => $arr_params));
     return $this->display(TSCommon::$module_name, '/views/templates/front/' . self::getTemplateByVersion('order-confirmation-tsbp-classic'));
 }
开发者ID:alexsimple,项目名称:trustedshops,代码行数:51,代码来源:TSCommon.php

示例11: content_530ff8eb9e0790_67346110


//.........这里部分代码省略.........
                ?>
">
						<td class="history_link bold">
							<?php 
                if (isset($_smarty_tpl->tpl_vars['order']->value['invoice']) && $_smarty_tpl->tpl_vars['order']->value['invoice'] && isset($_smarty_tpl->tpl_vars['order']->value['virtual']) && $_smarty_tpl->tpl_vars['order']->value['virtual']) {
                    ?>
								<img
								class="icon" 
								src="<?php 
                    echo $_smarty_tpl->tpl_vars['img_dir']->value;
                    ?>
icon/download_product.gif" 
								alt="<?php 
                    echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl);
                    ?>
" 
								title="<?php 
                    echo smartyTranslate(array('s' => 'Products to download'), $_smarty_tpl);
                    ?>
" />
							<?php 
                }
                ?>
							<a 
							class="color-myaccount" 
							href="javascript:showOrder(1, <?php 
                echo intval($_smarty_tpl->tpl_vars['order']->value['id_order']);
                ?>
, '<?php 
                echo smarty_modifier_escape($_smarty_tpl->tpl_vars['link']->value->getPageLink('order-detail', true), 'html', 'UTF-8');
                ?>
');">
								<?php 
                echo Order::getUniqReferenceOf($_smarty_tpl->tpl_vars['order']->value['id_order']);
                ?>

							</a>
						</td>
						<td data-value="<?php 
                echo smarty_modifier_regex_replace($_smarty_tpl->tpl_vars['order']->value['date_add'], "/[\\-\\:\\ ]/", '');
                ?>
" class="history_date bold">
							<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['dateFormat'][0][0]->dateFormat(array('date' => $_smarty_tpl->tpl_vars['order']->value['date_add'], 'full' => 0), $_smarty_tpl);
                ?>

						</td>
						<td class="history_price" data-value="<?php 
                echo $_smarty_tpl->tpl_vars['order']->value['total_paid'];
                ?>
">
							<span class="price">
								<?php 
                echo $_smarty_tpl->smarty->registered_plugins[Smarty::PLUGIN_FUNCTION]['displayPrice'][0][0]->displayPriceSmarty(array('price' => $_smarty_tpl->tpl_vars['order']->value['total_paid'], 'currency' => $_smarty_tpl->tpl_vars['order']->value['id_currency'], 'no_utf8' => false, 'convert' => false), $_smarty_tpl);
                ?>

							</span>
						</td>
						<td class="history_method"><?php 
                echo smarty_modifier_escape($_smarty_tpl->tpl_vars['order']->value['payment'], 'html', 'UTF-8');
                ?>
</td>
						<td data-value="<?php 
                echo $_smarty_tpl->tpl_vars['order']->value['id_order_state'];
                ?>
" class="history_state">
开发者ID:dev-lav,项目名称:htdocs,代码行数:67,代码来源:ff5f8faba5e019d210cfc8d3786046ea981164ea.file.history.tpl.php


注:本文中的Order::getUniqReferenceOf方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。