Another new error on the admin page. This time it was on line 46 which is
Code:
$chk_case += $_SESSION['cart']->in_cart_check('master_categories_id','56');
Here is that whole section
Code:
// class constructor
function flat() {
global $order, $db;
$this->code = 'flat';
$this->title = MODULE_SHIPPING_FLAT_TEXT_TITLE;
$this->description = MODULE_SHIPPING_FLAT_TEXT_DESCRIPTION;
$this->sort_order = MODULE_SHIPPING_FLAT_SORT_ORDER;
$this->icon = '';
$this->tax_class = MODULE_SHIPPING_FLAT_TAX_CLASS;
$this->tax_basis = MODULE_SHIPPING_FLAT_TAX_BASIS;
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
}
// test contents for Cases
global $cart;
$skip_free = false;
$chk_case = 0;
$chk_case += $_SESSION['cart']->in_cart_check('master_categories_id','56');
$chk_case += $_SESSION['cart']->in_cart_check('master_categories_id','60');
if ($chk_case != $_SESSION['cart']->count_contents()) {
$skip_free = true;
}
// disable for above categories
if ((IS_ADMIN_FLAG == false && $skip_free)) {
$this->enabled = false;
}
Also, now when I do a test through my site, flat rate seems to just be gone for all categories. Thanks again for all your help.