Developer forum

Forum » Ecommerce - Standard features » Voucher code makes the order total amount under 0kr.

Voucher code makes the order total amount under 0kr.

Jon Persson
Reply
Hey Guys,

We have a little problem with a voucher field on one of our customers websites.
We have installed a voucher field on the checkout flow, so the customers can get a sertan discount on their order.

Lets say that the customer's basket has the total amount of 80kr.
The customer then enters a voucher code with the value of 100kr.
This makes the total amount of the basket -20kr.

When the customer then goes to the payment step, an error apears instead of just goind to the order confirm page.
How can I make the customers go direcly to the order confirm page, when the amount is under 0kr?

Thanks for your help!

image002.jpg

Replies

 
Merethe Nielsen
Reply
Hi

Read this tread about negative prices:
http://developer.dynamicweb-cms.com/forum/development/negative-productprices-when-using-discount.aspx?PID=48

A feature request about adding an option to make sure a discount will not result in negative prices is created and has number 7147 as mentioned in the above thread. I have added your thread question to the feature request.

You could make a notification subscriber that checks if the order is less than 0, and if it is, then it removes the PaymentMethod, so that theu are sent directly to a reciept instead of Quickpay.

If you want help about making a notification subscriber, then create a thread in the Development thread.

Kind regards,
Merethe

 

You must be logged in to post in the forum