BV Commerce Forum
»
BV Commerce Support
»
General Support
»
Problems with Templates and Tags in particular ShipAddress
Rank: Member
Joined: 7/17/2007(UTC) Posts: 24
|
The standard [[Order.ShippingAddress]] tag that's included in BVC5 SP2 templates doesn't work for address labels because it includes a phone number ! It also puts the Post Code (Zip) to the right of the city. In the UK we need the postcode underneath the City.
I have tried to build an address block of my own using the discrete address tags but when the customer doesn't provide content for all the fields you end up with blank lines in the address block which looks rubbish.
Can you use script within the templates e.g. ASP <% %> If ... Then ... Else ... End If etc ?
How do i get rid of the blank lines ? Am i being a wally ?
Please help.
Richard
|
|
|
|
Rank: Member
Joined: 7/17/2007(UTC) Posts: 24
|
Its ok - i solved it by wrapping each line in a DIV tag. The top DIV increases the font size which gives a better label.
<div style="font-size:12pt"> <div>[[Order.ShippingAddress.FirstName]] [[Order.ShippingAddress.LastName]]</div> <div>[[Order.ShippingAddress.Company]]</div> <div>[[Order.ShippingAddress.Line1]]</div> <div>[[Order.ShippingAddress.Line2]]</div> <div>[[Order.ShippingAddress.Line3]]</div> <div>[[Order.ShippingAddress.City]]</div> <div>[[Order.ShippingAddress.PostalCode]]</div> </div> <div align="right">[[Order.OrderNumber]]</div>
|
|
|
|
Rank: Member
Joined: 8/17/2006(UTC) Posts: 681
|
The problem with this is that you will have empty lines for Line2, Line3 if they are empty. Not good. |
|
|
|
|
Rank: Member
Joined: 7/17/2007(UTC) Posts: 24
|
don't seem to get the blank lines. That's why i did it.
|
|
|
|
Rank: Member
Joined: 11/5/2003(UTC) Posts: 2,136
Was thanked: 1 time(s) in 1 post(s)
|
empty div's collapse to nothing unless you have added a CSS style to add padding. |
|
|
|
|
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.