Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Reformat output format of Order Total function


icedoutrolla

Recommended Posts

Posted

Does anyone know how to change the output format of this code?

 

if (MODULE_ORDER_TOTAL_INSTALLED) {

$order_total_modules->process();

echo $order_total_modules->output();

 

Currently the totals displayed in the billing information table on my checkout_confirmation.php page is being squashed up by the long shipping description.

 

I want to give this table fixed widths.

post-78246-0-49220400-1387265804_thumb.png

Posted

Would it not be easier to change the text that is causing the problem?

otherwise, in the file checkout_confirmation.php

    <td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">
	  <tr>
	    <td><?php echo '<strong>' . HEADING_BILLING_ADDRESS . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT_ADDRESS, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
	  </tr>
	  <tr>
	    <td><?php echo tep_address_format($order->billing['format_id'], $order->billing, 1, ' ', '<br />'); ?></td>
	  </tr>
	  <tr>
	    <td><?php echo '<strong>' . HEADING_PAYMENT_METHOD . '</strong> <a href="' . tep_href_link(FILENAME_CHECKOUT_PAYMENT, '', 'SSL') . '"><span class="orderEdit">(' . TEXT_EDIT . ')</span></a>'; ?></td>
	  </tr>
	  <tr>
	    <td><?php echo $order->info['payment_method']; ?></td>
	  </tr>
    </table></td>
    <td width="70%" valign="top" align="right"><table border="0" cellspacing="0" cellpadding="2">

 

change the width in this line to, say 20%

<td width="30%" valign="top"><table border="0" width="100%" cellspacing="0" cellpadding="2">

and the width in this line to 80%

    <td width="70%" valign="top" align="right"><table border="0" cellspacing="0" cellpadding="2">

 

Nic

Sometimes you're the dog and sometimes the lamp post

[/url]

My Contributions

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...