0

I need to add a cash discount for a payment method (called "Vorkasse" in German - advance payment is the word in English I guess). The total cart value (excluding shipping costs) should have a discount of 2%.

I found this already here: how to add fee to order totals in magento2

But it is a fixed rate for all payment methods...

2

So here's what I found out:

It works now. Magento 2 is pretty poor. There are so much bugs and missing features...

  • Thank you for your report! Held us. However we are now getting null returned from $model->getQuote()->getPayment()->getMethod() inside core, so there is no way of actually comparing the condition (returns false). – George May 10 '18 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.