Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Enabling Payment Module Based on Criteria


1Putts

Recommended Posts

I'm working with a Purchase Order payment module and I'd like only show the payment option if the $customer_group_id =='1'

 

I see in the payment module where it determines if the module is enabled from the admin:

$this->enabled = ((MODULE_PAYMENT_PO_STATUS == 'True') ? true : false);

 

Is there a way of expanding this criteria to the customer_group_id

 

Thanks in advance.

Link to comment
Share on other sites

Actually, please disregard my earlier posting.

 

I didn't realize that the SPPC allowed you to define which payment and shipping modules to use for each customer group. Very, very slick. Combine that with the PO module and it makes for a pretty solid little B2B system. Very nice.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...