Jump to content

Extra order/cart fees dependant on payment method


Recommended Posts

Hello Guys,


I would like to add extra fees dependant on payment method used by the client:


Cashondelivery : total cart +1;

card payment : -3%



I find that i should override cart::getTotalOrder() to add the extra fee/discount, but i have problem to find which payment method used by the client in this function,

I find that payment method is passed to PaymentModule::validateOrder, but i didn't find any way to pass it to getTotalOrder function.


Any help please.

Edited by tarek.fellah (see edit history)
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Create New...