本文整理汇总了PHP中order_total::output方法的典型用法代码示例。如果您正苦于以下问题:PHP order_total::output方法的具体用法?PHP order_total::output怎么用?PHP order_total::output使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类order_total
的用法示例。
在下文中一共展示了order_total::output方法的7个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1:
echo '<strong>' . HEADING_PAYMENT_METHOD . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>';
?>
</td>
</tr>
<tr>
<td><?php
echo $order->info['payment_method'];
?>
</td>
</tr>
</table></td>
<td width="70%" valign="top" align="right"><table border="0" cellspacing="0" cellpadding="2">
<?php
if (MODULE_ORDER_TOTAL_INSTALLED) {
echo $order_total_modules->output();
}
?>
</table></td>
</tr>
</table>
</div>
<?php
if (is_array($payment_modules->modules)) {
if ($confirmation = $payment_modules->confirmation()) {
?>
<h2><?php
echo HEADING_PAYMENT_INFORMATION;
示例2: array
// assign Smarty variables;
$oSmarty->assign(
array(
'pagetitle' => htmlspecialchars($oos_pagetitle),
'meta_description' => htmlspecialchars($oos_meta_description),
'meta_keywords' => htmlspecialchars($oos_meta_keywords),
'oos_breadcrumb' => $oBreadcrumb->trail(BREADCRUMB_SEPARATOR),
'oos_heading_title' => $aLang['heading_title'],
'oos_heading_image' => 'confirmation.gif'
)
);
if (MODULE_ORDER_TOTAL_INSTALLED) {
$oOrderTotalModules->process();
$order_total_output = $oOrderTotalModules->output();
$oSmarty->assign('order_total_output', $order_total_output);
}
if (is_array($oPaymentModules->modules)) {
if ($confirmation = $oPaymentModules->confirmation()) {
$oSmarty->assign('confirmation', $confirmation);
}
}
if (is_array($oPaymentModules->modules)) {
$oPaymentModules_process_button = $oPaymentModules->process_button();
}
$oSmarty->assign('payment_modules_process_button', $oPaymentModules_process_button);
示例3:
$taxgroups = $order->info['tax_groups'];
if (sizeof($order->info['tax_groups']) > 1) {
$products[$i]['stax'] = 1;
$products[$i]['taxd'] = tep_display_tax_value($order->products[$i]['tax']);
}
$products[$i]['final_price'] = $currencies->display_price($order->products[$i]['final_price'], $order->products[$i]['tax'], $order->products[$i]['qty']);
}
$xoopsTpl->assign("fcpa_link", tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL'));
$xoopsTpl->assign("bad", tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br>'));
$xoopsTpl->assign("fcp_link", tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL'));
$xoopsTpl->assign("cos_link", tep_href_link(FILENAME_CHECKOUT_SHIPPING, '', 'SSL'));
$xoopsTpl->assign("omt", $order->info['payment_method']);
if (MODULE_ORDER_TOTAL_INSTALLED) {
$xoopsTpl->assign("mot", 1);
$order_total_modules->process();
$xoopsTpl->assign("motc", $order_total_modules->output());
}
if (is_array($payment_modules->modules)) {
if ($confirmation = $payment_modules->confirmation()) {
$xoopsTpl->assign("pmods", 1);
$conffields = $confirmation['fields'];
for ($i = 0, $n = sizeof($confirmation['fields']); $i < $n; $i++) {
$r = $i;
}
}
}
if (tep_not_null($order->info['comments'])) {
$xoopsTpl->assign("comment", 1);
$xoopsTpl->assign("comments", nl2br(tep_output_string_protected($order->info['comments'])));
$xoopsTpl->assign("commentfield", tep_draw_hidden_field('comments', $order->info['comments']));
}
示例4:
}
}
}
}
}
}
if ($any_out_of_stock == 1) {
xtc_redirect(xtc_href_link(FILENAME_SHOPPING_CART));
}
}
// BOF GM_MOD saferpay
if (strpos($_SESSION['payment'], 'saferpaygw') !== false) {
$total_block = '<table id="total_block_table">';
if (MODULE_ORDER_TOTAL_INSTALLED) {
$order_total_modules->process();
$total_block .= $order_total_modules->output();
$t_total_block_array = $order_total_modules->output_array();
}
$total_block .= '</table>';
if (is_array($payment_modules->modules)) {
$payment_modules->pre_confirmation_check();
}
}
// EOF GM_MOD saferpay
require DIR_WS_INCLUDES . 'header.php';
/* bof gm*/
if (gm_get_conf("GM_LOG_IP") == '1') {
$smarty->assign('GM_LOG_IP', '1');
if ($_SERVER["HTTP_X_FORWARDED_FOR"]) {
$customers_ip = $_SERVER["HTTP_X_FORWARDED_FOR"];
} else {
示例5: array
}
$order->info['tax'] += $tax_val;
$order->info['tax_groups']["{$products_tax_description}"] += $tax_val;
// Modified by Strider 42 to correct the order total figure when shop displays prices with tax
if (DISPLAY_PRICE_WITH_TAX == 'true') {
$order->info['total'];
} else {
$order->info['total'] += $tax_val;
}
}
}
// EOF get taxes if not logged in (seems like less code than in order class)
require DIR_WS_CLASSES . 'order_total.php';
$order_total_modules = new order_total();
//echo '</td><td align="right">';
// order total code
$order_total_modules->process();
$info_box_contents = array();
$info_box_contents[] = array('text' => '<b>' . CART_OT . '</b>');
//azer version 2.20
new infoBoxHeading($info_box_contents, false, false);
$otTxt = '<table border="0" align="right">';
$otTxt .= $order_total_modules->output() . '</table>';
$info_box_contents = array();
$info_box_contents[] = array('text' => $otTxt);
new infoBox($info_box_contents);
}
}
// Use only when cart_contents > 0
?>
</td></tr></table>
示例6: array
$attributes_options_values_price = true;
$options_values_price = $order->products[$i]['attributes'][$j]['price_formated'];
}
$order_attributes_array[] = array('option_name' => $order->products[$i]['attributes'][$j]['option'], 'option_value_name' => $order->products[$i]['attributes'][$j]['value'], 'option_price' => $options_values_price, 'option_price_prefix' => $order->products[$i]['attributes'][$j]['prefix']);
}
}
$tax_rate = xos_display_tax_value($order->products[$i]['tax']);
$popup_content_id = xos_get_delivery_times_values($order->products[$i]['delivery_time_id'], 'popup_content_id');
$order_products_array[] = array('qty' => $order->products[$i]['qty'], 'model' => $order->products[$i]['model'], 'name' => $order->products[$i]['name'], 'packaging_unit' => $order->products[$i]['packaging_unit'], 'delivery_time' => xos_get_delivery_times_values($order->products[$i]['delivery_time_id']), 'link_filename_popup_content_delivery_time' => $popup_content_id > 0 ? xos_href_link(FILENAME_POPUP_CONTENT, 'co=' . $popup_content_id . '&p=' . $order->products[$i]['id'], $request_type) : '', 'tax' => $tax_rate, 'price' => $order->products[$i]['price_formated'], 'final_single_price' => $order->products[$i]['final_price_formated'], 'final_price' => $order->products[$i]['total_price_formated'], 'products_attributes_option_price' => $attributes_options_values_price, 'product_attributes' => $order_attributes_array);
if (isset($tax_rate)) {
$tax_rates[$tax_rate] = '1';
}
unset($order_attributes_array);
}
if (MODULE_ORDER_TOTAL_INSTALLED) {
$order_totals = $order_total_modules->output();
$order_totals_array = array();
for ($i = 0, $n = sizeof($order_totals); $i < $n; $i++) {
$order_totals_array[] = array('totals_title' => $order_totals[$i]['title'], 'totals_text' => $order_totals[$i]['text'], 'totals_tax' => $order_totals[$i]['tax']);
if ($order_totals[$i]['tax'] > -1) {
$tax_rates[$order_totals[$i]['tax']] = '1';
}
}
}
if (is_array($payment_modules->modules)) {
if ($confirmation = $payment_modules->confirmation()) {
$confirmation_fields_array = array();
for ($i = 0, $n = sizeof($confirmation['fields']); $i < $n; $i++) {
$confirmation_fields_array[] = array('title' => $confirmation['fields'][$i]['title'], 'field' => $confirmation['fields'][$i]['field']);
}
$smarty->assign(array('confirmation' => true, 'confirmation_title' => $confirmation['title'], 'confirmation_fields' => $confirmation_fields_array));
示例7:
if ($cart->count_contents() == 0) {
echo 'none';
} else {
include DIR_WS_INCLUDES . 'checkout/cart.php';
}
break;
case 'updatePoints':
case 'updateShippingMethods':
include DIR_WS_INCLUDES . 'checkout/shipping_method.php';
break;
case 'updatePaymentMethods':
include DIR_WS_INCLUDES . 'checkout/payment_method.php';
break;
case 'getOrderTotals':
if (MODULE_ORDER_TOTAL_INSTALLED) {
echo '<table cellpadding="2" cellspacing="0" border="0">' . $order_total_modules->output() . '</table>';
}
break;
case 'getProductsFinal':
include DIR_WS_INCLUDES . 'checkout/products_final.php';
break;
case 'getNewAddressForm':
case 'getAddressBook':
$addresses_count = tep_count_customer_address_book_entries();
if ($action == 'getAddressBook') {
$addressType = $_POST['addressType'];
include DIR_WS_INCLUDES . 'checkout/address_book.php';
} else {
include DIR_WS_INCLUDES . 'checkout/new_address.php';
}
break;