0

I need to execute a code once all the payment methods are loaded (rendered) on the checkout (using the onepage solution).

I can't find the way to achieve that.

My final goal is to create a custom "Place Order" button underneath all payment methods that would be enabled only if a payment method is selected (even after a refresh page when the selected option is stored in the local storage).

  • Are you familiar with events/observer ? – Partab Saifuddin Zakir Oct 31 at 17:00
  • @PartabSaifuddinZakir haven't used them yet but understand the concept. Do you know which event is triggered when le payment methods are rendered/loaded? Also, I guess this solution works with PHP, is there a way to retrieve this information with JS? – Dim13i Oct 31 at 17:16

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.