Developer forum

Forum » Ecommerce - Standard features » OrderField voucher reported as Used

OrderField voucher reported as Used

Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi guys,

I am running a solution on DW 9.9.8.

I have configured a discount based on a voucher value on the OrderField.

The discount is supposed to apply once per user.

I have checked the limitation checkbox and now the voucher code is reported as "Used" for all users (even anonymous ones).

The verification code for the voucher status is the standard one from Rapido and it is based on vouch.DateUsed.HasValue.

Am I doing something wrong setting it up or it is a bug in DW?

Thank you,

Adrian


Replies

 
Nicolai Pedersen
Reply

I do not know what the limitation checkbox is...?

You should use "Usage per customer" and set it to 1.

Otherwise show the discount setup for me to see.

Thanks, Nicolai

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

That is the one I meant "Usage per customer"

 

The voucher code was used on an order (for testing). The order has been canceled (Deleted) and any attempt to use the code again receives the message that it was already used:

Adrian

 
Nicolai Pedersen
Reply

And what is in the email field of this cart...?

And what does this query return:

SELECT OrderId, OrderShopId, OrderDate, OrderVoucherCode, OrderCustomerEmail, OrderDeliveryEmail, OrderCustomerAccessUserId, OrderSecondaryUserId
FROM EcomOrders  where OrderVoucherCode = 'MakeUpSeries01'
 
Nicolai Pedersen
Reply

If you submmit "" in email, the check cannot run it for an anonymous user.

 
Adrian Ursu Dynamicweb Employee
Adrian Ursu
Reply

Hi Nicolai,

I have solved the mystery.

The customer has created a Voucher list with one record in it and the same value they have used for the Order field voucher.

That's why it was reported as used.

I have deleted the voucher list and now the voucher code is reported correctly.

Thank you and I apologize for wasting your time.

Adrian

 

You must be logged in to post in the forum