ok
Win7 / Apache 2.2 / PHP 5.2.17 / MySQL 5.5 / latest version of osCommerce
Everything is working nominally
Hi - yes, I'm new at this - I want to make my own copy of table.php to show up for selection in the
admin -> modules -> shipping -> click '+ Install Module' -> choose form list page.
I've copied the table.php file to table2.php in:
C:\Apache\Apache2.2\htdocs\catalog\includes\languages\english
and
C:\Apache\Apache2.2\htdocs\catalog\includes\modules\shipping
I've updated both to have their own variables:
language:
define('MODULE_SHIPPING_TABLE2_TEXT_TITLE', 'Table Rate 2');
define('MODULE_SHIPPING_TABLE2_TEXT_DESCRIPTION', 'Table Rate 2');
define('MODULE_SHIPPING_TABLE2_TEXT_WAY', 'Best Way');
define('MODULE_SHIPPING_TABLE2_TEXT_WEIGHT', 'Weight');
define('MODULE_SHIPPING_TABLE2_TEXT_AMOUNT', 'Amount');
and modules:
$this->code = 'table2';
$this->title = MODULE_SHIPPING_TABLE2_TEXT_TITLE;
$this->description = MODULE_SHIPPING_TABLE2_TEXT_DESCRIPTION;
$this->sort_order = MODULE_SHIPPING_TABLE2_SORT_ORDER;
$this->icon = '';
$this->tax_class = MODULE_SHIPPING_TABLE2_TAX_CLASS;
$this->enabled = ((MODULE_SHIPPING_TABLE2_STATUS == 'True') ? true : false);
if ( ($this->enabled == true) && ((int)MODULE_SHIPPING_TABLE2_ZONE > 0) ) {
$check_flag = false;
blaw blaw blaw...
$this->quotes = array('id' => $this->code,
'module' => MODULE_SHIPPING_TABLE2_TEXT_TITLE,
'methods' => array(array('id' => $this->code,
'title' => MODULE_SHIPPING_TABLE2_TEXT_WAY,
'cost' => $shipping + MODULE_SHIPPING_TABLE_HANDLING)));
etc, etc..
But my copy doesn't show in the list as
Table Rate 2
How do I get it to show??!?!
Help!