My goal is to create five Flat Rate shipping modules by copying and editing the appropriate
As a test, I created one new Flat Rate module, using the instructions in Mercer's book (osCommerce:
Beginner's Edition, page 138) to copy and edit the flat.php files that support the Flat Rate module.
Hoeever, when I display the Admin-> Shipping Modules page, I see two Flat Rate shipping modules,
both of which are named "Flat Rate" (not "Flat Rate" and "Flat Rate 2").
When I edit one Flat Rate Module, the changes show up in both modules. The attributes for both of
these modules seem to be from original flat.php file. Not, as I would hope, from the
flat and flat2 files, respectively.
I created copy of "flat.php" in catalog\includes\modules\shipping and
In the new file, I replaced "flat" with "flat2" as described in the Mercer book cited previously.
In order to distinguish flat2.php from flat.php, etc., I customized the strings in . . .
. . . as follows . . .
define('MODULE_SHIPPING_FLAT_TEXT_TITLE', 'Flat Rate 2');
define('MODULE_SHIPPING_FLAT_TEXT_DESCRIPTION', 'Flat Rate 2');
define('MODULE_SHIPPING_FLAT_TEXT_WAY', 'Best Way 2');
I then uploaded all of the files. However, I noticed the problems cited above.
When I look at the HTML/PHP code for the Admin-> Shipping Modules page, I see that the code
is partially correct; that is, the table row for each module (tr class="dataTableRow") specifies
the correct flat rate ID (flat or flat2). However, the table cells for each module (td class="dataTableContent">Flat Rate</td>) seem to be coming from the original
original flat.php file.