TerryK Posted January 16, 2004 Share Posted January 16, 2004 I'm trying to change the checkout_shipping_address.php file, where address book entries are displayed. I believe this is the code that calls it: <td class="main"><?php echo tep_address_format($format_id, $addresses, true, ' ', ', '); ?></td> but that returns all of the information on one line, like this: John Doe, 123 Main Street, Seattle, WA 98199, United States Instead, I'd like it to include line breaks, like this: John Doe 123 Main Street Seattle, WA 98199 United States Can anyone tell me how to accomplish that? TIA, Terry Terry Kluytmans Contribs Installed: Purchase Without Account (PWA); Big Images, Product Availability, Description in Product Listing, Graphical Infobox, Header Tags Controller, Login Box, Option Type Feature, plus many layout changes & other mods of my own, like: Add order total to checkout_shipment Add order total to checkout_payment Add radio buttons at checkout_shipping (for backorder options, etc.) Duplicate Table Rate Shipping Module Better Product Review Flow * If at first you don't succeed, find out if there's a prize for the loser. * Link to comment Share on other sites More sharing options...
Guest Posted January 16, 2004 Share Posted January 16, 2004 You could edit the function - look in includes/functions/ and probably in general.php but I'm not sure - but that might screw up other stuff. You should probably just write it out yourself whereever you need it. It would look something like this: echo $customer['firstname'] . ' ' . $customer['lastname'] . '<br>' . $customer['street_address'] . '<br>' . $customer['city'] . ', ' . $customer['state'] . ', ' $customer['postcode']; I'm sure those are not the correct variables...but the key is to put '<br>' where you want a line break. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.