Developer forum

Forum » Development »  New discount type with DiscountExtender

New discount type with DiscountExtender

Jonas Krarup Dam
Reply

Hey,

I have a customer that wants custom discounts - specifically, thet want "buy 60 get 10" where both the "buy" amount and the "discount" amount is configurable.

As far as I can tell, DiscountExtenders can only be used to determine if a discount applies to a given order or orderline, not to change what the discount should be. 

Is there any way to do this with discountExtenders, or will I have to use the old discount model?

 

Thanks, Jonas


Replies

 
Nicolai Pedersen
Reply

Hi Jonas

Nice to hear from you!. Hope you are doing well.

I think you might be able to do this using discounts as is. I need a little more clarification. Buy 60 get 10:

Buy 60 of one or more products and get an additional 10 products for free, get 10 of them for free, or get 10% discount on each product, get 10% on the order, or get 10 money (dkk)  in discount each?

An upcoming release have IDiscountExtenderCalculateProductDiscount and IDiscountExtenderCalculateOrderDiscount that can be implemented on a extender, and then you can do whatever you want.

 
Jonas Krarup Dam
Reply

Hi Nicolai,

likewise - I'm doing pretty good :-) 

this specific one is buy 60 of a product, get 10 additional products, and it scales, so buy 120, get 20 extra, etc. 

I considered using "buy 6 get 1", and add a 60 minimum, but that would result in "buy 66 get 11", which is unacceptable for the customer. 

Also, they want a "buy 10 get 1 extra and 1 gift". I think this can be done fairly easily by using two discounts, but the customer wants salespeople to setup discounts, so it has to be as simple as possible, which means I need to be able to set up one discount that gives two products. (silly customers, I know). 

I cannot see a way to meet all the customers demands without being in control over which discount orderlines are added.

Right now, I'm leaning towards using the old discount implementation, as that gives me more control, but I'm guessing that it will probably vanish in DW11, so I would prefer to use the new one, if possible. 

Do you have an ETA on those new interfaces?

/Jonas

 
Jan Sangill
Reply

Hi Nicolai,

That upcomming release. You have a date on that and what dw version you are refering too?

Seems like a lovely addition.

 
Mark Preisler
Reply

Hi Nicolai

+1 for a release date.

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nicolai,

 

Do you have an update on the release date here as we need this functionality in project.

 

Best regards,

Anders

 
Anders Ebdrup
Anders Ebdrup
Reply

Dear Nicolai,

 

Has this been release in 9.12?

 

Best regards, Anders

 

You must be logged in to post in the forum