Try using:
Code:
// bof: must have 6 130 or 1 129, 131, 132 if 1+ 130
$valid_products_checkout = false;
$chk_cat130 = 0;
// 134,135,136,137,138,139,140,141,142
$chk_cat130 += $_SESSION['cart']->in_cart_check('master_categories_id','134');
$chk_cat130 += $_SESSION['cart']->in_cart_check('master_categories_id','135');
$chk_cat130 += $_SESSION['cart']->in_cart_check('master_categories_id','136');
$chk_cat130 += $_SESSION['cart']->in_cart_check('master_categories_id','137');
$chk_cat130 += $_SESSION['cart']->in_cart_check('master_categories_id','138');
$chk_cat130 += $_SESSION['cart']->in_cart_check('master_categories_id','139');
$chk_cat130 += $_SESSION['cart']->in_cart_check('master_categories_id','140');
$chk_cat130 += $_SESSION['cart']->in_cart_check('master_categories_id','141');
$chk_cat130 += $_SESSION['cart']->in_cart_check('master_categories_id','142');
if ($chk_cat130 >= 6 || $chk_cat130 == 0) {
$valid_products_checkout = true;
} else {
$chk_cat_other += $_SESSION['cart']->in_cart_check('master_categories_id','129');
$chk_cat_other += $_SESSION['cart']->in_cart_check('master_categories_id','131');
$chk_cat_other += $_SESSION['cart']->in_cart_check('master_categories_id','132');
if ($chk_cat_other > 0) {
$valid_products_checkout = true;
}
if ($valid_products_checkout == false) {
$messageStack->add_session('header', 'Add more products', 'caution');
zen_redirect(zen_href_link(FILENAME_SHOPPING_CART));
}
}
// eof: must have 6 130 or 1 129, 131, 132 if 1+ 130
You still need to look in the:
/cache
directory for debug logs to see what they say ... somewhere you have missing files or errors in the file(s) ...
What TEXT editor are you using?