I must be doing something wrong. Knowing me, it's probably something really stupid but I've cloned the table.php by following this thread:
http://www.zen-cart.com/showthread.p...hipping-module
I've called the file table409.php and created a corresponding language file. I've change all instances of "table" or "table2" to "table409" and all instances of "TABLE" or "TABLE2" to "TABLE409". Uploaded and voila, the shipping module appears as it should in admin.
When I install it in admin and enter the shipping rates for the products in category 409, it seems to completely disable both table.php shipping modules. Tha is to say, the flat rate UK shipping option just completely disappears from the checkout confirmation page, no matter what is in the cart.
Here is the code that I inserted in /includes/modules/shipping/table409.php, but I don' think the problem is caused by this:
PHP Code:
// bof: only show if all Products are from master_categories_id 409
if (!IS_ADMIN_FLAG) {
// check the count of a specific field
$chk_catAll = 0;
$chk_cat409 = 0;
$chk_catAll = $_SESSION['cart']->count_contents();
// check how many Products are in the cart for master_categories_id 409
$chk_cat15 = $_SESSION['cart']->in_cart_check('master_categories_id','409');
// if any are found turn off the shipping module
if ($chk_cat409 != $chk_catAll) {
$this->enabled = false;
}
}
// eof: only show if all Products are from master_categories_id 409
Here is a screenshot of the admin settings for both table.php and table409.php:
