Pacco Posted May 20, 2015 Share Posted May 20, 2015 Hi, We are using osCommerce v2.3.1. When confirming shipping or payment first you get the descriptions and then the bullet points to choose from. Can anyone explane to me how to change the order? First the bulletpoint and then the description. Sorry for asking. Not a PHP expert. Thanks! Frank Link to comment Share on other sites More sharing options...
clustersolutions Posted May 20, 2015 Share Posted May 20, 2015 Look for these two lines... <td><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td> <td align="right"><?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked); ?></td> Swap them like this... <td align="right"><?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked); ?></td> <td><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td> I think that should do it... Link to comment Share on other sites More sharing options...
Pacco Posted May 21, 2015 Author Share Posted May 21, 2015 Hi Tim, That didn't work. It swapped price and checkbox. Description still first. I would like the checkbox on the left, then the description and then the price. And the same for payment. Checkbox first and then the description of the payment. Regards, Frank Link to comment Share on other sites More sharing options...
MrPhil Posted May 21, 2015 Share Posted May 21, 2015 Try moving the align="right" down to the second line (after the swap). Link to comment Share on other sites More sharing options...
clustersolutions Posted May 22, 2015 Share Posted May 22, 2015 Well Paco...this block of codes... <td width="75%" style="padding-left: 15px;"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td> <?php if ( ($n > 1) || ($n2 > 1) ) { ?> <td><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td> <td align="right"><?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked); ?></td> <?php } else { ?> <td align="right" colspan="2"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))) . tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?></td> <?php } ?> change it to this??? not tested... <?php if ( ($n > 1) || ($n2 > 1) ) { ?> <td align="right"><?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked); ?></td> <td width="75%" style="padding-left: 15px;"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td> <td><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td> <?php } else { ?> <td width="75%" style="padding-left: 15px;"><?php echo $quotes[$i]['methods'][$j]['title']; ?></td> <td align="right" colspan="2"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))) . tep_draw_hidden_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id']); ?></td> <?php } ?> So this is the idea...Is your site still using td? Link to comment Share on other sites More sharing options...
MrPhil Posted May 22, 2015 Share Posted May 22, 2015 Did you try right-aligning the text? <td><?php echo tep_draw_radio_field('shipping', $quotes[$i]['id'] . '_' . $quotes[$i]['methods'][$j]['id'], $checked); ?></td> <td align="right"><?php echo $currencies->format(tep_add_tax($quotes[$i]['methods'][$j]['cost'], (isset($quotes[$i]['tax']) ? $quotes[$i]['tax'] : 0))); ?></td>I'm not sure if that will help, as these are two separate table cells, but you might see if it helps at all. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.