BV Commerce Forum
»
BV Commerce Support
»
General Support
»
How to exclude the telephone number from [[Order.BillingAddress]]
Rank: Member
Joined: 2/7/2006(UTC) Posts: 66
|
I'm making some changes to the Customer Invoice print template and need to remove the phone number from the bottom of [[Order.BillingAddress]] so that it's suitable for use in a window envelope (don't think customers would like to see their phone number displayed in the envelope's window) but I can't find where to do this. I know that I could use all the individual fields: Code: [[Order.BillingAddress.First Name]][[Order.BillingAddress.LastName]<br /> [[Order.BillingAddress.Company]]<br/> [[Order.BillingAddress.Line1]]<br />
etc. etc... But this creates lots of ugly spaces for every field that the customer has not filled out. By far the best way will be to fix [[Order.BillingAddress]] so that it is just that, the billing address (and not a phone number too). Any help would be appreciated, as ever. Matt |
|
|
|
|
Rank: Member
Joined: 3/3/2006(UTC) Posts: 1,737
|
The "Country" line isn't really necessary either if the store is located in the same country, right?
I know... picky, picky. |
Optimists invent airplanes, Pessimists buy parachutes. |
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
Try wrapping each field in a <div> instead of appending a <br />. The <div> is self collapsing (will have 0 height) if it is empty. For example,
<div>[[Order.BillingAddress.Company]]</div> |
|
|
|
|
Rank: Member
Joined: 2/7/2006(UTC) Posts: 66
|
Mitch, correct, I probably wouldn't bother with that one either. All orders will be from the UK. Andy, interesting suggestion, I'll give it a whirl. Thanks. I was trying to think if I could do it with a CSS workaround but for some reason it didn't occur to me that an empty div would self collapse. [UPDATE: Tried Andy's collapsing DIVs and they worked like a charm. If anyone wants to implement this I just wrapped a div round each line: Code: <div class="addressRow">[[Order.BillingAddress.FirstName]] [[Order.BillingAddress.LastName]]</div> <div class="addressRow">[[Order.BillingAddress.Company]]</div>
etc. etc. ...then added: Code: .addressRow {float:left; clear:left}
to the styles at the top. |
|
|
|
|
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.