Jump to content

Extra order/cart fees dependant on payment method


tarek.fellah
 Share

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)

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More