on virtuemart checkout process, on choosing the payment method, when click on the radio button, page reloads.

i have wrote a function that does something when page reloads or refreshes.

but the function doesn't work on reloading caused by choosing the payment method.

same thing happens when clicking on confirm checkbox at the end of checkout process.

this is the function that i wrote:

jQuery(document).ready(function() {
    if (sessionStorage.checkoutstepHolder > 0) {

i can't find the event listener that is listening to them, cause i don't know java script.

the question is, why the function gets called on reloads caused by refreshing, but not on reloads caused by choosing the radio buttons?

Your Answer

By clicking "Post Your Answer", you acknowledge that you have read our updated terms of service, privacy policy and cookie policy, and that your continued use of the website is subject to these policies.

Browse other questions tagged or ask your own question.