allinking Posted February 18, 2008 Posted February 18, 2008 I have two payment methods but I want to only enable paypal when the order is over £100 and the other module for all other orders. How can i do this? Quote
satish Posted February 18, 2008 Posted February 18, 2008 In all payment class YOu can access $cart.So using this chek the total. And then there are some enable,disable code within a class.Dependig on what YOu expect for a cart value set it enabled or disabled. Satish Quote Ask/Skype for Free osCommerce value addon/SEO suggestion tips for your site. Check My About US For who am I and what My company does.
allinking Posted February 28, 2008 Author Posted February 28, 2008 In all payment class YOu can access $cart.So using this chek the total. And then there are some enable,disable code within a class.Dependig on what YOu expect for a cart value set it enabled or disabled. Satish Sorry I really dont understand this I assume you mean i can edit the paypal.php with some sort of if statement to do with $cart only to enable if cart value is > than 100 but dont know how to do this thats why I'm asking for help. Quote
allinking Posted March 13, 2008 Author Posted March 13, 2008 Sorted and small contrib made for anyone else Quote
phantz Posted April 19, 2008 Posted April 19, 2008 Sorted and small contrib made for anyone else Hello Everybody, I have same problem like this, is there any contribution for this? Thanks Quote
phantz Posted April 20, 2008 Posted April 20, 2008 I added if ( ($this->enabled == true) && ($order->info['total'] <= 100) ) on the payment module. And it works.... Quote
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.