You could turn off the shipping modules by testing for the Products in the cart ...
Example, on the Flat Rate flat shipping module you could add the code in RED to prevent the module from working for products_id 12, 17 and 18:
Code:
// disable only when entire cart is free shipping
if (zen_get_shipping_enabled($this->code)) {
$this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'True') ? true : false);
}
// bof: turn off for various products in the cart
if (!IS_ADMIN_FLAG) {
global $db, $cart;
// check how many products are in the cart for products_id 12, 17, 18
$chk_products = 0;
$chk_products += $_SESSION['cart']->in_cart_check('products_id', '12');
$chk_products += $_SESSION['cart']->in_cart_check('products_id', '17');
$chk_products += $_SESSION['cart']->in_cart_check('products_id', '18');
if ($chk_products > 0) {
// turn off shipping module
$this->enabled = false;
}
}
// eof: turn off for various products in the cart
Bookmarks