I'm sure there are other ways, but if you're wanting to do it exactly like I did with my category, you could do the single item like this. Let's assume the product ID is 12.
That should do the trick. But as noted in earlier posts, that will disable FedEx if that item is added even if there are other items that are eligible for FedEx.PHP Code:if (!IS_ADMIN_FLAG) {
global $cart;
$chk_cat = 0;
$chk_cat += $_SESSION['cart']->in_cart_check('products_id','12');
if ($chk_cat > 0) {
$this->enabled = false;
}
}
EDIT: Sorry for the original crappy PHP code, I posted it from my iPad and it didn't work so well.


Reply With Quote
