thiagorobis Posted July 31, 2010 Share Posted July 31, 2010 [Doubt] Forms of payment according to the value of the cartHello everybody!My question is: I wonder if it is to enable a mode of payment only for orders above a certain value. For example:Purchases over $ 300.00 empower the bank transfer option. Values <$ 300.00 not display bank transfer as option for the client, displaying other options.If anyone knows how to do, then please tell me how. Thanks! Link to comment Share on other sites More sharing options...
rocky Posted August 1, 2010 Share Posted August 1, 2010 There is no option in PrestaShop to do this. Link to comment Share on other sites More sharing options...
tomerg3 Posted August 1, 2010 Share Posted August 1, 2010 [Doubt] Forms of payment according to the value of the cartHello everybody!My question is: I wonder if it is to enable a mode of payment only for orders above a certain value. For example:Purchases over $ 300.00 empower the bank transfer option. Values <$ 300.00 not display bank transfer as option for the client, displaying other options.If anyone knows how to do, then please tell me how. Thanks! You will need to edit /modules/bankwire/bankwire.php, find the function hookPayment() and modify it to add the two new lines below public function hookPayment($params) { if (!$this->active) return ; if ($params['cart']->getOrderTotal() < 300) // Checks that the total of the order is less than 300 return; // stops the module from being displayed 1 Link to comment Share on other sites More sharing options...
thiagorobis Posted August 1, 2010 Author Share Posted August 1, 2010 Very thank you. It's seem that works very well!Thanks! Link to comment Share on other sites More sharing options...
tomerg3 Posted August 1, 2010 Share Posted August 1, 2010 Very thank you. It's seem that works very well!Thanks! No Problem....In the future, please edit your post title and add Solved if the question was answered. Link to comment Share on other sites More sharing options...
Recommended Posts