-
Notifications
You must be signed in to change notification settings - Fork 63
VariableDiscountHandler #155
Comments
Sure! Don't forget to include tests. FYI I'm in survival mode this week, hope to address most issues next week. |
Thanks @sandervanhooft ! I will try to create a PR for this! I wish you all the best with your housing unit!! 🙏 |
@Paulsky Any progress on this? I need a percentage discount handler for myself, but I don't want to reinvent the wheel ;) |
@GertTimmerman I haven't started to work on this to be honest. But I'm still interested and willing to develop this. However, I don't know when I can start developing.... Do you have time and resources to work on this? Please let me know if you get started |
@Paulsky I am able to take a look at it, but I can't promise anything. I will let you know (in this thread) if I have made some progress. It's not my top prio to have this. |
Alright! Let's keep each other posted. I will get in touch if I am able to start working on this. Maybe we can help each other out. |
Hi @GertTimmerman and @Paulsky , how are you doing on this? Need any help? |
I have created a PercentageDiscountHandler, But I have not been able to test everything because you have to do tests with specific mollie orders, etc. |
Any status update on a variable discount handler? |
I'm sorry @Otto-munch , I still haven't got the change to work on this. Maybe you can help @GertTimmerman out? I do remember that writing test for this was a bit difficult. |
Here's how I created a PercentageDiscountHandler for myself. Just extended the FixedDiscountHandler and changed the calculation logic.
I'm loading coupons from the database. So I added this to my Coupon model to make it work.
I'm grouping coupons by campaigns and have a discount_type assigned to the campaign. |
Also see #291 added by @GertTimmerman |
Does someone already written a VariableDiscountHandler? I mean, instead of coupons with fixed discount, coupons with percentages as discount.
Would you accept a PR if someone writes a VariableDiscountHandler @sandervanhooft ? I think this is a common use case. If someone uses coupons, the options will most of the time be there; fixed or variable discount.
The text was updated successfully, but these errors were encountered: