| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Address 2 on Invoice | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
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
__________________
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 |
|||||||
#2
|
|||||||||
|
|||||||||
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. |
|||||||||
#3
|
|||||||
|
|||||||
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 |
|||||||
|
|||
X-Cart forums © 2001-2020
|