You can test this and see if it works ...
add this code:
Code:
// bof: must have 6 130 or 1 129, 131, 132 if 1+ 130
$valid_products_checkout = false;
$chk_cat130 = $_SESSION['cart']->in_cart_check('master_categories_id','130');
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
above the line that reads:
in the files:
/includes/modules/pages/checkout_shipping/header_php.php
/includes/modules/pages/checkout_payment/header_php.php
/includes/modules/pages/checkout_confirmation/header_php.php