Developer forum

Forum » Ecommerce - Standard features » Voucher
Paul Nilsson
Reply
I have created a voucher in e-com and added a code for the byer to type in.
It works fine but I want to dispaly a text if the code is incorrect.
I have tryed with the built in validation but then I can't do anything if I don't have the correct code.
How can I find out if the code is correct or not?


Replies

 
David Matheson
Reply

Just a suggestion.
Could you not add another field in eCom that contains the correct code and then use an If statement to check whether this field matches the code the customer typed in.
 

<!--@If(ValidCode=CustomerCode)-->
Do nothing
<!--@EndIf-->
<!--@If Not(ValidCode=CustomerCode)-->
Your voucher code is incorrect
<!--@EndIf-->

 

You must be logged in to post in the forum