Peper Posted April 12, 2018 Share Posted April 12, 2018 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 More sharing options...
Peper Posted April 12, 2018 Author Share Posted April 12, 2018 <?php echo tep_address_format(6, $order->delivery, '', '', "\n"); ?> database added 6th address format <br />$firstname $lastname<br />$streets<br />$city,$postcode Getting the Phoenix off the ground Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.