Page 1 of 1

Cash On dilivery for specfic Customer Group

Posted: Tue Nov 19, 2013 3:08 am
by Openmind123
I have a different customer group for special users and i want them to order via cash on delivery but i do not want show cash on delivery to other customers. So, only customer group of ID 2 can view cash on delivery on store. and other customer groups can view paypal and credit card payments.

how that's possible to make payment system visiable to other customer group?

I need a free solution maybe small snippet code ;D

Anyone know how to do this?

Re: Cash On dilivery for specfic Customer Group

Posted: Tue Nov 19, 2013 5:05 am
by Qphoria
1. EDIT: catalog/model/payment/cod.php

2. FIND:

Code: Select all

$method_data = array();
3. AFTER, ADD:

Code: Select all

if ($this->customer->getCustomerGroupId() != '2') {
    $status = false;
}

Change "2" to the id of the customer group you want to allow.