Would something like this work:
Code:
// count how many products are in the cart from various categories
// add a new check for each categories_id to match a master_categories_id
global $cart;
$chk_cats = 0;
$chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','4');
$chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','10');
if ( ($pass == true) && ($chk_cats > 0) ) {
$pass = 'true';
}
// if ( ($pass == true) && ( ($order->info['total'] - $order->info['shipping_cost']) < MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER) ) {
if ( ($pass == true) && ( $order->info['subtotal'] < MODULE_ORDER_TOTAL_LOWORDERFEE_ORDER_UNDER) ) {
This example is testing for products in the categories_id 4 and 10 where master_categories_id match these values ...
You can use the code:
Code:
$chk_cats += $_SESSION['cart']->in_cart_check('master_categories_id','10');
for each categories_id you need to check for by just adding them one by one and just change the 10 to the master_categories_id that needs to be checked in the cart ...
Bookmarks