Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

Address 2 on Invoice

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #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:	108
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
  #2  
Old 07-03-2009, 05:03 AM
  pauldodman's Avatar 
pauldodman pauldodman is offline
 

X-Guru
  
Join Date: Jul 2003
Location: Spain / UK
Posts: 3,054
 

Default Re: Address 2 on Invoice

Try this:

{if $order.s_address_2 ne ""}{$order.s_address_2}{/if}

That should show the line only if there is a value.
__________________
Paul Dodman
e-business & m-commerce consultant
w: www.luminointernet.com
e: xcart@luminointernet.com

Professional X-Cart help, advice, support and services, specialists in Mobile X-Cart.
Reply With Quote
  #3  
Old 07-03-2009, 05:29 AM
 
info@mea.li info@mea.li is offline
 

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

Default Re: Address 2 on Invoice

it's working. thanks a lot paul

regards
manuel
__________________
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
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 07:40 AM.

   

 
X-Cart forums © 2001-2020