Jump to content

[SOLVED] Forms of payment according to the value of the cart


Recommended Posts

[Doubt] Forms of payment according to the value of the cart

Hello 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

[Doubt] Forms of payment according to the value of the cart

Hello 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

  • Like 1
Link to comment
Share on other sites

×
×
  • Create New...