You could customize the COD payment module with something like:
Code:
if ((int)MODULE_PAYMENT_COD_ORDER_STATUS_ID > 0) {
$this->order_status = MODULE_PAYMENT_COD_ORDER_STATUS_ID;
}
// bof: do not show if products_id 1, 2, 6 or 10 are in the cart
if (!IS_ADMIN_FLAG) {
global $cart;
$chk_products_in_cart = $_SESSION['cart']->get_product_id_list();
$chk_products = '1, 2, 6, 10';
$arr1 = explode(", ", $chk_products);
$arr2 = explode(", ", $chk_products_in_cart);
$donotshow = array_intersect($arr1, $arr2);
if ((int)$donotshow) {
$this->enabled = false;
}
}
// eof: do not show if products_id 1, 2, 6 or 10 are in the cart
if (is_object($order)) $this->update_status();
Bookmarks