Ajeh:
Silly me, I forgot to put in the safeties for the Admin ... add an IF around each section of the new code for:
if (!IS_ADMIN_FLAG) {
// new code here
}
Did as described - still get a blank page?
HERE IS HOW I HAVE IT:
flat.php
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
}
if (!IS_ADMIN_FLAG) {
// new code here
// bof: only show shipping if all products in the cart are from category 4
$chk_cat = $_SESSION['cart']->in_cart_check('master_categories_id','4');
if ($chk_cat != $_SESSION['cart']->count_contents()) {
$this->enabled = false;
}
// eof: only show shipping if all products in the cart are from category 4
usps.php
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code) == FALSE) $this->enabled = FALSE;
if (!IS_ADMIN_FLAG) {
// new code here
// bof: only show shipping if all products in the cart are not from category 4
$chk_cat = $_SESSION['cart']->in_cart_check('master_categories_id','4');
if ($chk_cat == $_SESSION['cart']->count_contents()) {
$this->enabled = false;
}
// eof: only show shipping if all products in the cart are not from category 4