• Toll-free  888-665-8637
  • International  +1 717-220-0012
Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Surfscience
#1 Posted : Tuesday, October 28, 2008 3:54:34 PM(UTC)
Surfscience

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
MitchA
#2 Posted : Tuesday, October 28, 2008 11:03:56 PM(UTC)
MitchA

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.
Andy Miller
#3 Posted : Tuesday, October 28, 2008 11:20:15 PM(UTC)
Andy Miller

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>
Andy Miller
Structured Solutions

Shipper 3 - High Velocity Shipment Processing
Surfscience
#4 Posted : Friday, October 31, 2008 5:23:05 AM(UTC)
Surfscience

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.

©2024 Develisys. All rights reserved.
  • Toll-free  888-665-8637
  • International  +1 717-220-0012