allinking Posted February 18, 2008 Share 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 Link to comment Share on other sites More sharing options...
satish Posted February 18, 2008 Share 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. Link to comment Share on other sites More sharing options...
allinking Posted February 28, 2008 Author Share 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 Link to comment Share on other sites More sharing options...
allinking Posted March 13, 2008 Author Share Posted March 13, 2008 Sorted and small contrib made for anyone else Quote Link to comment Share on other sites More sharing options...
phantz Posted April 19, 2008 Share 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 Link to comment Share on other sites More sharing options...
phantz Posted April 20, 2008 Share Posted April 20, 2008 I added if ( ($this->enabled == true) && ($order->info['total'] <= 100) ) on the payment module. And it works.... Quote Link to comment Share on other sites More sharing options...
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.