Post by mybaysix » Fri Dec 09, 2011 11:33 pm

For our b2b store, we are trying to setup different customer groups-credit card orders, and net 30.

For net 30, I know that there is an extension that I can purchase to create PO #s but I not finding how I can have only net 30 customers have the option of putting in a PO rather than their credit card info-we want this option available for certain customers only

Does anybody know how I can set this up???

Thank you!!

Newbie

Posts

Joined
Fri Nov 11, 2011 1:35 am

Post by kedgetech » Sun Dec 11, 2011 1:15 pm

Payment options are available to all customers. There is no current flags or something that you can simply setup. There may be modules available to choose payment options based on product but not sure with customer groups. You might need to do some custom code and trigger payment method only when the customer belongs to a particular group.

User avatar
Active Member

Posts

Joined
Mon Mar 22, 2010 5:20 pm
Location - USA, Australia, India

Post by mybaysix » Fri Dec 16, 2011 3:52 am

ok, because i dont know code i think this is something we will have to work around! thanks for the tip!

Newbie

Posts

Joined
Fri Nov 11, 2011 1:35 am

Post by OpenCart Addons » Fri Dec 16, 2011 4:19 am

You could use the function

Code: Select all

$customer_group_id = $this->customer->getCustomerGroupId();
and add it to the status check like this

Code: Select all

if (!$customer_group_id == 'id') {
$status = false;
}
Change "id" to the customer group id that you wish to use.
If you want to have more than one customer group be able to use it, simply add an or to the if statement between id and the bracket:

Code: Select all

|| !$customer_group_id == 'id2'
Joel

Canada's Leading Expert In OpenCart Development & Certified OpenCart Development Partner Image


User avatar
Active Member

Posts

Joined
Thu Nov 24, 2011 10:51 am
Location - Canada

Post by mybaysix » Fri Dec 16, 2011 11:07 pm

thank you i will try this now and see how it works!!

Newbie

Posts

Joined
Fri Nov 11, 2011 1:35 am

Post by shiokguy » Tue Mar 06, 2012 11:52 am

Any luck with this?
I am looking for the same..
I have 7 customer groups but I want customer group 3-7 to use only Free Check Out (Hence Store Credit)
Regards
Mike

P/S: which file are we modifying?

New member

Posts

Joined
Wed Jul 13, 2011 3:28 pm
Who is online

Users browsing this forum: No registered users and 391 guests