Developer forum

Forum » Development » Coupon discount

Coupon discount


Reply
Hi,

We are adding a coupon discount to our shop. We notice that when the amount off discount from the coupon exceeds the amount off the order you will get a negative sum in your shopping cart subtotal.

In other words we need to pay our client money. Is there a function in DynamicWeb that will maken the amount 0 when the discount exceeds the order?

Replies

 
Reply
Hi Matthijs!
Unfortunately, there is no such function.
Do I understand correctly that you have implemented this discount yourself?
If so, I think the most appropriate solution of this problem is to control the total amount of order in coupon discount - not give discount more then product costs.
If not so, describe please way how did you enable the coupone.

Best regards,
Vladimir
 
Reply
We use the discount function. It is a normal voucher code with a fixed price as a discount.

We give the customer a coupon as a gift. The coupon has more value then most off the products. Looks quite basic to me not to get an negative price. Any way to do this with some custom code?
 
Nicolai Høeg Pedersen
Reply
Hi

You can easily create your own discount provider.

See chapter 4:
http://developer.dynamicweb-cms.com/Files/Filer/Documentation/Development/eCommerce/(en-US)%20eCommerce%20Extensibility%20API,%20%20Dynamicweb%20eCommerce.pdf

Download the source code from all our discounts:
http://developer.dynamicweb-cms.com/Files/Filer/Downloads/SourceCode/Dynamicweb.eCommerce.Orders.SalesDiscounts.zip

Also read Imars article:
http://devierkoeden.com/articles/implementing-a-salesdiscountprovider.aspx

 

You must be logged in to post in the forum