Hi Tim,

Originally Posted by
TPHoare
Re pre-selecting payment option.
That's a decent enough way for that to work... simple and easy. Just in case anyone has a slightly updated template, as we do, the operative lines in the version of the template that comes with that module are:
PHP Code:
// Edited by Mike Barkdoll.
if(isset($_SESSION['payment'])) {
echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false ), 'id="pmt-'.$selection[$i]['id'].'"');
} else {
echo zen_draw_radio_field('payment', $selection[$i]['id'], ($i == 0 ? true : false ), 'id="pmt-'.$selection[$i]['id'].'"');
}
// End of changes.
They should replace the following line in the tpl_checkout_payment_default.php template:
PHP Code:
<?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?>
Hope that helps anyone who's interested in this!
All the best...
Conor
Bookmarks