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...
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...
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
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
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!!
Do you have somewhere some samples/demo that I can have a look?
Thank you!!
This topic is locked and no more replies can be posted.