I thought I had it figured out....
I created functions/extra_functions/reduce_free_shipping.php
Code:
<?php
// calculate amount not to be used for Products 144, 443, 148, 473 if all items in cart are from category 93
function reduce_free_shipping() {
global $cart;
$how_many_items = $_SESSION['cart']->count_contents();
$how_many_oils = $_SESSION['cart']->in_cart_check('master_categories_id', '93');
if ($how_many_items == $how_many_oils) {
$exclude_products = "144, 443, 148, 473";
$products = $_SESSION['cart']->get_products();
$chk_price = 0;
for ($i=0, $n=sizeof($products); $i<$n; $i++) {
if (in_array((int)$products[$i]['id'], explode(",", $exclude_products))) {
$chk_price += $products[$i]['final_price'] * $products[$i]['quantity'];
}
} // end FOR loop
return $chk_price;
}
}
?>
and added to freeoptions.php:
Code:
if (($_SESSION['cart']->show_total() - reduce_free_shipping()) >= MODULE_SHIPPING_FREEOPTIONS_TOTAL_MIN
Nothing happened!?!?!
Thumb twiddling continues!