Follow this pattern and add as many as you need:
Code:
// bof: only show if all Products are from master_categories_id 409, 7, 103, 104
if (!IS_ADMIN_FLAG) {
// check the count of a specific field
$chk_catAll = 0;
$chk_cats = 0;
$chk_catAll = $_SESSION['cart']->count_contents();
// check how many Products are in the cart for master_categories_id 409
$chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','409');
$chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','7');
$chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','103');
$chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','104');
// if any are found turn off the shipping module
if ($chk_cats != $chk_catAll) {
$this->enabled = false;
}
}
// eof: only show if all Products are from master_categories_id 409, 7, 103, 104
Bookmarks