I believe that if anyone still wants to maintain this module, refactoring the code of get_discounts_for_order should be a priority. I began to do that to tackle an issue with several discounts on the same product, and I even saw a variable that was not used anymore.
It would sure help to solve other issues in the issue queue as well.

Comments

hles’s picture

I've tried to do that, but failed because everything is so much interdependent. If anybody is interested to tackle that, I can help. I think this will help a lot in getting issues fixed. I even saw a few variables that were probably added previously and are not even used anymore.