Post by maema » Fri Apr 23, 2010 2:34 pm

Hello

I have 2 groups : customer and retailers.
I would like to propose TT payment method only for retailers.
How can I do that ?

THX

New member

Posts

Joined
Fri Nov 27, 2009 3:38 am

Post by i2Paq » Fri Apr 23, 2010 3:02 pm

I've looked but I don't think it is there.

Norman in 't Veldt
Moderator OpenCart Forums

_________________ READ and Search BEFORE POSTING _________________

Our FREE search: Find your answer FAST!.

[How to] BTW + Verzend + betaal setup.


User avatar
Global Moderator

Posts

Joined
Mon Nov 09, 2009 7:00 pm
Location - Winkel - The Netherlands

Post by Qphoria » Fri Apr 23, 2010 9:22 pm

I'd like to expand the control of the customer groups to do more than just pricing. Including limiting payment and shipping options, products, etc. But that will take some work. At this time it can be hacked into the individual modules

1. EDIT: catalog/model/payment/xxx.php (any payment module)

2. FIND:

Code: Select all

if ($status) {
3. BEFORE, ADD:

Code: Select all

if ($this->customer->getCustomerGroupId() != 'x') {
    $status = false;
}
Change 'x' to the group id that you want to be allowed

Image


User avatar
Administrator

Posts

Joined
Tue Jul 22, 2008 3:02 am

Post by maema » Fri Apr 23, 2010 10:56 pm

GREAT thanks lot !

but where can I get group ID ?
ok found in the phpmyadmin... thought "x" was the name...
Last edited by maema on Fri Apr 23, 2010 11:12 pm, edited 1 time in total.

New member

Posts

Joined
Fri Nov 27, 2009 3:38 am

Post by Qphoria » Fri Apr 23, 2010 11:04 pm

Goto the admin under Sales->Customer Groups
hover your mouse of the edit link and see the status bar shows the last number (default = 8, wholesale = 6)

Image


User avatar
Administrator

Posts

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

Users browsing this forum: Amazon [Bot] and 14 guests