News:

Support the VirtueMart project and become a member

Main Menu

pop up message after changing the payment method in one page checkout

Started by kiasati, October 10, 2016, 12:20:37 PM

Previous topic - Next topic

kiasati

Hi

i wanna execute the java script code shown below, after user chooses a payment method.

location.reload();

how can i do this?

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kiasati

Quote from: GJC Web Design on October 10, 2016, 13:47:53 PM
add it in the choose template triggered by the submit
i dont get it.. can u explain more?

the radio box have "data-dynamic-update=1" , so when choosing a payment method, some element change in html.
i want to reload the page after the data-dynamic-update is performed.

GJC Web Design

GJC Web Design
VirtueMart and Joomla Developers - php developers https://www.gjcwebdesign.com
VM4 AusPost Shipping Plugin - e-go Shipping Plugin - VM4 Postcode Shipping Plugin - Radius Shipping Plugin - VM4 NZ Post Shipping Plugin - AusPost Estimator
Samport Payment Plugin - EcomMerchant Payment Plugin - ccBill payment Plugin
VM2 Product Lock Extension - VM2 Preconfig Adresses Extension - TaxCloud USA Taxes Plugin - Virtuemart  Product Review Component
https://extensions.joomla.org/profile/profile/details/67210
Contact for any VirtueMart or Joomla development & customisation

kiasati

Quote from: GJC Web Design on October 10, 2016, 13:56:26 PM
then u need to do it in the native js files I guess
i did.. but i didn't find the right place to put "location.reload();"

kiasati

I've made a multi step checkout using js and session storage.
in every step, some element's are shown and some are not.
when a user choose a payment method, the first step pops up.
i want to put the reload code to reload the page and go back to the step that user was on...