View Single Post
  #1  
Old 07-03-2009, 04:57 AM
 
info@mea.li info@mea.li is offline
 

Member
  
Join Date: Apr 2009
Location: Switzerland
Posts: 13
 

Default Address 2 on Invoice

Hi together

I did customize my invoice a lil bit so it fits my needs (see attached printscreen). There is now only one problem with {$order.s_address_2}.

Now there is an empty line on the invoice if ther is no address-2. How can i edit the template that this empty line is gone if there is none address-2 and only shows if there is a address-2?

See here code for this address:

{if $_userinfo.default_fields.title}
<strong>{$order.title}</strong>
{/if}<br />
{if $_userinfo.default_fields.lastname}
{if $is_nomail eq 'Y'}{/if}<strong>{$order.lastname} </strong>{/if}
{if $_userinfo.default_fields.firstname}
{if $is_nomail ne 'Y'}{/if}<strong>{$order.firstname}</strong>
{/if}<br />
{if $_userinfo.default_fields.s_address}
<strong>{$order.s_address}<br />{$order.s_address_2}</strong>
{/if}<br />
{if $_userinfo.default_fields.s_zipcode}
<strong>{$order.s_zipcode} </strong>{/if}
{if $_userinfo.default_fields.s_city}
<strong>{$order.s_city}</strong>
{/if}<br />
{if $_userinfo.default_fields.b_country}
<strong>{$order.b_countryname}</strong>
{/if}<br />

Thanks for your replys.

Regards
Manuel
Attached Thumbnails
Click image for larger version

Name:	ScreenShot075.jpg
Views:	165
Size:	99.8 KB
ID:	1578  
__________________
X-Cart Gold 4.2.1

Add-on: X-Affiliate
Add-on: X-FancyCategories
Add-on: X-SpecialOffers
Add-on: X-Survey
Add-on: X-AOM (Advanced Order Management)

Newest Added products list by BCS Engineering
X-Cart Multiple Manufacturers v4.x by X-CartMods
Reply With Quote