Post by Openmind123 » Tue Nov 19, 2013 3:08 am

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?

Newbie

Posts

Joined
Sun Nov 06, 2011 3:22 am

Post by Qphoria » Tue Nov 19, 2013 5:05 am

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.

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am
Who is online

Users browsing this forum: Majestic-12 [Bot] and 83 guests