How to add custom benefit in django-oscar?
问题 Django-oscar provides multibuy benefit type. class MultibuyDiscountBenefit(Benefit): _description = _("Cheapest product from %(range)s is free") Now, I can add Buy 1 get 1 free offer with this benefit. I have a little custom requirement here. I want to add 'Buy 1 get 50% off on second' offer. To do so, I need to add custom benefit. I checked docs for adding custom benefit. And as per doc says.. A custom benefit can be used by creating a benefit class and registering it so it is available to