PHP_CGI: 2007年10月アーカイブ
catalog/includes/modules/shipping/table.php
変更前:
// class constructor
function table() {
global $order;
$this->code = 'table';
$this->title = MODULE_SHIPPING_TABLE_TEXT_TITLE;
$this->description = MODULE_SHIPPING_TABLE_TEXT_DESCRIPTION;
$this->sort_order = MODULE_SHIPPING_TABLE_SORT_ORDER;
$this->icon = '';
$this->tax_class = MODULE_SHIPPING_TABLE_TAX_CLASS;
$this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
変更後:
// class constructor
function table() {
global $order;
global $total_weight;
$this->code = 'table';
$this->title = MODULE_SHIPPING_TABLE_TEXT_TITLE;
$this->description = MODULE_SHIPPING_TABLE_TEXT_DESCRIPTION;
$this->sort_order = MODULE_SHIPPING_TABLE_SORT_ORDER;
$this->icon = '';
$this->tax_class = MODULE_SHIPPING_TABLE_TAX_CLASS;
$this->enabled = ((MODULE_SHIPPING_TABLE_STATUS == 'True') ? true : false);
if ( $total_weight > 0.1 ) {
$this->enabled = false;
}
catalog/includes/modules/payment/cod_table.php の26行目あたりを
[変更前]
------------------------------------------------------------
$this->enabled = ((MODULE_PAYMENT_COD_TABLE_STATUS == 'True')
? true : false);
------------------------------------------------------------
変更後]
------------------------------------------------------------
$this->enabled = (MODULE_PAYMENT_COD_TABLE_STATUS == 'True') && in_array($GLOBALS['shipping']['id'], array('yamato_yamato','sagawaex_sagawaex'));
------------------------------------------------------------