SCH_001 Posted May 27, 2019 Share Posted May 27, 2019 Hi all what file and then what string do I need to edit to move this section on payment to the other side before the module name So the "please select" will appear before the " Please select the preferred payment method to use on this order. " Link to comment Share on other sites More sharing options...
SCH_001 Posted May 27, 2019 Author Share Posted May 27, 2019 Anyone? Link to comment Share on other sites More sharing options...
Hotclutch Posted May 27, 2019 Share Posted May 27, 2019 i don't know what you are trying to do, but it will be in the checkout_payment.php Link to comment Share on other sites More sharing options...
SCH_001 Posted May 27, 2019 Author Share Posted May 27, 2019 @Hotclutch What I am trying to do is move the words "Please Select" to the left of "Please select the ......" and the radio button to the left of "Cash on Delivery" Link to comment Share on other sites More sharing options...
Hotclutch Posted May 27, 2019 Share Posted May 27, 2019 Approx line 147 you should have something like: <div class="contentText"> <div class="alert alert-warning"> <div class="row"> <div class="col-xs-8"> <?php echo TEXT_SELECT_PAYMENT_METHOD; ?> </div> <div class="col-xs-4 text-right"> <?php echo '<strong>' . TITLE_PLEASE_SELECT . '</strong>'; ?> </div> </div> </div> </div> That's what you need to edit for the Please select part. For the cash on delivery, you would need to edit that payment module. Link to comment Share on other sites More sharing options...
SCH_001 Posted May 27, 2019 Author Share Posted May 27, 2019 @Hotclutch Silly questions which area will I find the correct cod.php to edit? Link to comment Share on other sites More sharing options...
241 Posted May 27, 2019 Share Posted May 27, 2019 3 hours ago, Hotclutch said: For the cash on delivery, you would need to edit that payment module. you would need to edit the code further down the checkout_payment.php which covers the radio buttons and other fields for all the payment modules No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
♥raiwa Posted May 27, 2019 Share Posted May 27, 2019 You have to do the second part also in checkout_shipping.php. You need to invert the order of shipping method /icon and the radio button in this part of the code <tr class="table-selection"> <td> <strong><?php echo $quotes[$i]['module']; ?></strong> <?php if (isset($quotes[$i]['icon']) && tep_not_null($quotes[$i]['icon'])) echo ' ' . $quotes[$i]['icon']; ?> <?php if (isset($quotes[$i]['error'])) { echo '<div class="help-block">' . $quotes[$i]['error'] . '</div>'; } ?> <?php if (tep_not_null($quotes[$i]['methods'][$j]['title'])) echo '<div class="help-block">' . $quotes[$i]['methods'][$j]['title'] . '</div>'; ?> </td> <?php if ( ($n > 1) || ($n2 > 1) ) { ?> <td align="right"> <?php if (isset($quotes[$i]['error'])) { // nothing echo ' '; } else { echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?> <?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked, 'required aria-required="true"'); } ?> </td> About Me: http://www.oscommerce.com/forums/user/249059-raiwa/ Need help? How To Get The Help You Need Is your version of osC up to date? You'll find the latest osC community version CE Phoenix here. Public Phoenix Change Log Cheat Set on Google Sheets Link to comment Share on other sites More sharing options...
SCH_001 Posted May 28, 2019 Author Share Posted May 28, 2019 I found this which appears to be the buttons <?php if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment), 'required aria-required="true"'); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } ?> But I can't seem to get it to go where I want Link to comment Share on other sites More sharing options...
241 Posted May 28, 2019 Share Posted May 28, 2019 3 hours ago, supercheaphobb said: But I can't seem to get it to go where I want You need to look at the entire section of code <div class="contentText"> <table class="table table-striped table-condensed table-hover"> <tbody> <?php $radio_buttons = 0; for ($i=0, $n=sizeof($selection); $i<$n; $i++) { ?> <tr class="table-selection"> <td><strong><?php echo $selection[$i]['module']; ?></strong></td> <td align="right"> <?php if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment), 'required aria-required="true"'); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } ?> </td> </tr> <?php if (isset($selection[$i]['error'])) { ?> <tr> <td colspan="2"><?php echo $selection[$i]['error']; ?></td> </tr> <?php } elseif (isset($selection[$i]['fields']) && is_array($selection[$i]['fields'])) { ?> <tr> <td colspan="2"><table border="0" cellspacing="0" cellpadding="2"> <?php for ($j=0, $n2=sizeof($selection[$i]['fields']); $j<$n2; $j++) { ?> <tr> <td><?php echo $selection[$i]['fields'][$j]['title']; ?></td> <td><?php echo $selection[$i]['fields'][$j]['field']; ?></td> </tr> <?php } ?> </table></td> </tr> <?php } ?> <?php $radio_buttons++; } ?> </tbody> </table> </div> No longer giving free advice. Please place deposit in meter slot provided. Individual: [=] SME: [==] Corporation: [===] If deposit does not fit one of the slots provided then you are asking too much! Is your Osc dated try Phoenix raising oscommerce from the ashes. Link to comment Share on other sites More sharing options...
SCH_001 Posted June 6, 2019 Author Share Posted June 6, 2019 Finally had time to re-address this. To move the radio buttons to before the modules name the file to edit is public_html/checkout_payment.php at around line 200 change from this <tr class="table-selection"> <td><strong><?php echo $selection[$i]['module']; ?></strong></td> <td align="right"> <?php if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment), 'required aria-required="true"'); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } ?> </td> </tr> to this. So you are only moving <td><strong><?php echo $selection[$i]['module']; ?></strong></td> down to under the the bottom </td> <tr class="table-selection"> <td align="left"> <?php if (sizeof($selection) > 1) { echo tep_draw_radio_field('payment', $selection[$i]['id'], ($selection[$i]['id'] == $payment), 'required aria-required="true"'); } else { echo tep_draw_hidden_field('payment', $selection[$i]['id']); } ?> </td> <td><strong><?php echo $selection[$i]['module']; ?></strong></td> </tr> Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.