I am wondering if it is possible to disable the COD Payment method for some customers.
For example, I stand a code at some shipping method so it is not visible when a particular item is in your shopping cart.
I did this with the following code:
Code:
// disable one product for shipping
if ((IS_ADMIN_FLAG == false && $_SESSION['cart']->in_cart_check('products_id','144') > 0)) {
$this->enabled = ((MODULE_SHIPPING_FLAT_STATUS == 'False') ? true : false);
}
Is it possible to use this code in the payment methods?
So that i select on a customers_id.
And I do not want to select a product, but a logged customer.
Is this possible ?
Bookmarks