Event after filling field

enzo.orsi 11 May, 2016
Hi all,
I am a little bit confused maybe about how to do one thing.

I have a page where user is selecting different products and then a button for redirecting to PayPal.
In the same page I have a text field where user should insert a discount code.

How could I show somewhere the discounted prices in the same page when the user insert the discount code?

I do not know if it is clear...
GreyHead 12 May, 2016
Hi enzo.orsi,

You use JavaScript to check the entry in the discount field, once that is complete use an Ajax call to check if the code is valid and, if it is, recalculate the total.

Bob
enzo.orsi 13 May, 2016
Thank you Bob, it seems easy, but no idea where to start with JS and Ajax😀

Do you have somewhere some samples/demo that I can have a look?

Thank you!!
GreyHead 13 May, 2016
Hi enzo,orsi,

I had a look in my records - I did something similar a year or so ago for a client but it looks as if I haven't kept a copy :-(

You will need some custom code written to do this.

Bob
This topic is locked and no more replies can be posted.