Dynamically Refresh Payment Options
Hey guys - looking for some advice on how to dynamically update/refresh the available payment methods in the One Page Checkout module.
I've edited payment_methods.tpl so that different payment methods are available to customers in different countries. It works just fine, but when the user enters their profile details (address / name etc...) on the checkout page, the payment methods do not update.
Where can I force the code to call payment_methods.tpl again so that it rebuilds the payment methods list. When I manually refresh the page it loads the correct options based on country.
Is there an easy way I can force a refresh? How much additional work would it be to throw in some AJAX so that the payment methods section updates on changes much like the shipping and summary sections do without a full page refresh.
Any advice or direction would be much appreciated. Thanks in advance.
__________________
Version 4.4.2
|