BlueBricks Posted January 14, 2013 Share Posted January 14, 2013 Is it possible to set up two payment modules, such as PayPal and another and then only use PayPal for orders over £200? The reason is that I have a maximum transaction amount on a merchant account but a cheaper transaction fee so for all payments under £200, I would like to use the payment module from my other payment processor. However, I would still like to let customers use PayPal if they wish but MUST use Paypal if the cart total is > £200 Many thanks, Martin Link to comment Share on other sites More sharing options...
bellini13 Posted January 14, 2013 Share Posted January 14, 2013 there is no way to configure this in Prestashop, you have to manually alter the module code. The payment module has a function called hookpayment. This function is used to display the payment on the payment selection screen. you would just add some php code to this hookpayment function, so if the order total > 200, then return false, and it will not show up. 2 Link to comment Share on other sites More sharing options...
BlueBricks Posted January 15, 2013 Author Share Posted January 15, 2013 Thanks very much. I always find 90% of the battle is knowing whether a thing is possible and you've certainly pointed me in the right direction! Link to comment Share on other sites More sharing options...
hobo Posted April 12, 2013 Share Posted April 12, 2013 (edited) I couldn't immediately see how to get the order total (I might have missed something obvious). In case it helps anyone, this answer pointed me in the right direction. In the hookPayment function: $cart_total = $params['cart']->getOrderTotal(true, Cart::BOTH); Edited April 12, 2013 by hobo (see edit history) Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now