X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Dynamically Refresh Payment Options (https://forum.x-cart.com/showthread.php?t=58381)

Bullion Counter Inc. 03-08-2011 05:45 PM

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.

Soft-Reseller.com 03-09-2011 06:35 PM

Re: Dynamically Refresh Payment Options
 
Hello

If you don't mind please give me the link. I am also interested in such option.

Regards
Kashif


All times are GMT -8. The time now is 06:06 PM.

Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.