Developer forum

Forum » Ecommerce - Standard features » Gift card validation

Gift card validation

Alex Guo
Reply

Hi all,

I’ve been experimenting with gift cards and integrating them into templates. I managed to get the basic functionality working, but I currently don’t have any code to handle gift card code validation.

While looking around, I noticed this template:
/Files/Templates/Designs/Swift-v2/eCom7/CartV2/Step/Helpers/VoucherForm.cshtml
It already includes validation logic, but only for vouchers. Also it uses TemplateTags which wont be supported anymore.

What would be the best approach to implement a proper validation flow for gift cards? Best without Template tags
Any tips or examples would be much appreciated!

Thanks in advance.


Replies

 

You must be logged in to post in the forum