Post by xsteved » Sun Mar 22, 2015 10:44 am

In each country, one may specify an address format, like this--

Code: Select all

{firstname} {lastname}{company}{address_1}{address_2}{city}, {zone_code} {postcode}
Does anyone know how to include a return (a newline) in the address, so that in invoices and shipping lists (packing slips) it is not printed like this--

John Smith20 Main Street Apt. 14Chico, CA 95928

?

Will literal line breaks work?--

Code: Select all

{firstname} {lastname}
{company}
{address_1}
{address_2}
{city}, {zone_code} {postcode}
Or should "\n" be used?

Code: Select all

{firstname} {lastname}\n{company}\n{address_1}\n{address_2}\n{city}, {zone_code} {postcode}

New member

Posts

Joined
Tue Dec 24, 2013 4:47 am

Post by viethemes » Sun Mar 22, 2015 11:34 pm

You should use literal line breaks work for the address format.

http://www.viethemes.com - OpenCart turtorials, news, tips and stricks, extension

Our extensions:
Visual Theme Editor - Powerful tool for customizing style of any theme visually
Live Theme Editor - Customize layout, colors, backgrounds, fonts of the default theme
Theme Animation - Animation Editor for any theme

Extra Positions PRO, Custom JavaScript, Custom CSS and others


User avatar
Active Member

Posts

Joined
Thu Jan 08, 2015 12:17 pm


Post by xsteved » Mon Mar 23, 2015 7:52 am

Thank you very much, viethemes. I have reformatted the address for the particular country I sell to (the U.S.) using actual (literal) Returns (linebreaks). I can confirm the changes by looking at the next order I receive. :) Thank you.

New member

Posts

Joined
Tue Dec 24, 2013 4:47 am
Who is online

Users browsing this forum: No registered users and 6 guests