ZeroAquaduct Posted August 1, 2003 Posted August 1, 2003 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. Quote
Rumble Posted August 1, 2003 Posted August 1, 2003 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); } Quote Reddy to Rumble Thank you osCommerce and all who Contribute to her!
Recommended Posts
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.