Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Posted

Is there a contribution that allows me to control which payment method is shown depending on the order total? For example, I accept Email Money Transfers (EMTs) at my store, but EMTs aren't available for transactions under $10. I have this written in my help file, but I think it'll be better if EMTs are disabled if the order total is less than $10, and enabled if the order total is more than $10.

Posted

In your payment module you need something like

 

if ($this->get_order_total() >= 10) {

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

} else {

$this->enabled = ((MODULE_PAYMENT_EPT == 'False') ? true : false);

}

Reddy to Rumble

 

Thank you osCommerce and all who Contribute to her!

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

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...