Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Recommended Posts

Need some help with trying to shorten the way the address is displayed. I have only 5 lines available for print,  

In the database - address_format i tried changing and removing $firstname $lastname$cr$streets$cr$postcode $city$cr$country - gives me same result 

Below prints out 7 lines,

Customer Company Name
Customer Name

Street address 1
Street Address 2
Suburb
City, Post code,
Region, Country

 The last attempt was as follows:

<td width="390" height="155px" valign="top" align="left"><div style="line-height:1.7em; margin-top:10px"><?php 
    $content = tep_address_format($order->delivery['format_id'], $order->delivery, 1);
    $lines = explode(" \t\n\r", $content,1);
    echo $lines[0].'<br>'.$lines[2].'<br>';
 ?></div></td>

I need to display something like this:

Customer Company Name
Customer Name

Street address 1
Street Address 2
Suburb, City, Post code

Getting the Phoenix off the ground

Link to comment
Share on other sites

<?php echo tep_address_format(6, $order->delivery, '', '', "\n"); ?>

database added 6th address format <br />$firstname $lastname<br />$streets<br />$city,$postcode

:thumbsup:

 

Getting the Phoenix off the ground

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...