ot_total.php
来自「Zen Cart是真正的电子商务艺术」· PHP 代码 · 共 46 行
PHP
46 行
<?php
/**
* ot_total order-total module
*
* @package orderTotal
* @copyright Copyright 2003-2007 Zen Cart Development Team
* @copyright Portions Copyright 2003 osCommerce
* @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
* @version $Id: ot_total.php 6725 2007-08-19 03:48:28Z drbyte $
*/
class ot_total {
var $title, $output;
function ot_total() {
$this->code = 'ot_total';
$this->title = MODULE_ORDER_TOTAL_TOTAL_TITLE;
$this->description = MODULE_ORDER_TOTAL_TOTAL_DESCRIPTION;
$this->sort_order = MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER;
$this->output = array();
}
function process() {
global $order, $currencies;
$this->output[] = array('title' => $this->title . ':',
'text' => $currencies->format($order->info['total'], true, $order->info['currency'], $order->info['currency_value']),
'value' => $order->info['total']);
}
function check() {
global $db;
if (!isset($this->_check)) {
$check_query = $db->Execute("select configuration_value from " . TABLE_CONFIGURATION . " where configuration_key = 'MODULE_ORDER_TOTAL_TOTAL_STATUS'");
$this->_check = $check_query->RecordCount();
}
return $this->_check;
}
function keys() {
return array('MODULE_ORDER_TOTAL_TOTAL_STATUS', 'MODULE_ORDER_TOTAL_TOTAL_SORT_ORDER');
}
function install() {
global $db;
$db->Execute("insert into " . TABLE_CONFIGURATION . " (configuration_title, configuration_key, configuration_value, configuration_description, configuration_group_id, sort_order, set_function, date_added) values ('璇ユā鍧楀凡瀹夎
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?