Developer forum

Forum » Development » A new salesdiscount

A new salesdiscount

Martin Nielsen
Reply

Hi DW,

 

I'm trying to build a new sales discount provider where i combine the functionality of the "Orderfield discount" and the "Product discount".

And i hope to end out with a provide that can support this scenario:

 

"Get 25% off all Phillips products, use voucher SUMMERSALES13 when checking out"

 

I've look through the DW code base, but i cannot see how you've created the "Orderfield discount", i cannot find it when reflecting.

Can you help me with a code snippet.

 

// Martin

 

 


Replies

 
Nicolai Høeg Pedersen
Reply

I know it is a little late answer. But you can download all our provider source code here:

http://developer.dynamicweb-cms.com/downloads/source-code.aspx

 

Grab the Dynamicweb.eCommerce.Orders.SalesDiscounts.zip file...

 

BR Nicolai

 
Imar Spaanjaars Dynamicweb Employee
Imar Spaanjaars
Reply

And for some background, you may also want to check out his article: http://devierkoeden.com/articles/implementing-a-salesdiscountprovider.aspx

 

Cheers,

 

Imar

 

You must be logged in to post in the forum