Zen Follower
- Join Date:
- Oct 2007
- Location:
- Hong Kong
- Posts:
- 112
- Plugin Contributions:
- 0
Code help, pls - how do I reverse the order of these 2 radio buttons?
These codes are from tpl_checkout_payment_default.php, showing the two radio buttons for the two payment methods.
I would like Paypal to come before credit cards ... but fiddling with these codes have not generated desired result like some other occasions.
Could somebody help me? I have zero php (or any) programming capability. Just doing guess work.
Thank you!
<?php } ?> <?php $radio_buttons = 0; for ($i=0, $n=sizeof($selection); $i<$n; $i++) { ?> <?php if (sizeof($selection) > 1) { if (empty($selection[$i]['noradio'])) { ?> <?php echo zen_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $_SESSION['payment'] ? true : false), 'id="pmt-'.$selection[$i]['id'].'"'); ?> <?php } ?> <?php } else { ?> <?php echo zen_draw_hidden_field('payment', $selection[$i]['id']); ?> <?php } ?><label for="pmt-<?php echo $selection[$i]['id']; ?>" class="radioButtonLabel"><?php echo $selection[$i]['module']; ?></label>