| ||||||||||
Shopping cart software Solutions for online shops and malls | ||||||||||
|
X-Cart Home | FAQ | Forum rules | Calendar | User manuals | Login |
Address Line 2 in Invoice | |||
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
Address Line 2 in Invoice
Hello,
For the shipping and billing address', I get the following shown inside the invoices :- Billing Address David Ullswater, sadfsdfhsdf, , yrewyery, Worcestershire, cfghsfghf, United Kingdom (Great Britain) Shipping Address David Ullswater, sadfsdfhsdf, , yrewyery, Worcestershire, cfghsfghf, United Kingdom (Great Britain) Notice the 3rd line of each is ",". This is where the Address Line 2 should go. How do I get it so if the user doesn't enter an address line 2, it isn't shown on the invoice? My code for each is as follows :- Billing Address Code:
Shipping Address Code:
Best Regards, Craig Brass
__________________
Its Elixir - www.itselixir.com Product: X-Cart Gold Version: 4.0.17 Status: Live Its Elixir Wholesale - www.itselixirwholesale.com Product: X-Cart Gold Version: 4.0.17 Status: In Development Real Champagne - www.realchampagne.com Product: X-Cart Gold Version: 4.0.17 Status: In Development |
|||||||
#2
|
|||||||||
|
|||||||||
You want to enclose the statement in another if statement to check if the field is empty.
e.g. {if $order.b_address_2}{if $_userinfo.default_fields.b_address_2}{$order.b_ad dress_2}, {/if}{/if} Rubyaryat
__________________
Rubymods.com - Your X-Cart services partner for over 9 years. Modules offered: FedEx labels, Live currency rates, GeoIP, Order Audit, Multiple e-goods. X-Cart Store Hosting, project management and affiliates program available. 4.2.3 gold [Unix] |
|||||||||
#3
|
|||||||
|
|||||||
Worked perfectly, thanks!
__________________
Its Elixir - www.itselixir.com Product: X-Cart Gold Version: 4.0.17 Status: Live Its Elixir Wholesale - www.itselixirwholesale.com Product: X-Cart Gold Version: 4.0.17 Status: In Development Real Champagne - www.realchampagne.com Product: X-Cart Gold Version: 4.0.17 Status: In Development |
|||||||
#4
|
|||||||
|
|||||||
Which template can you find the above code in?
__________________
X-Cart Gold Version 4.0.17 |
|||||||
#5
|
|||||||||
|
|||||||||
Quote:
skin1/mail/html/order_invoice.tpl to be edited.
__________________
Dongan MercuryMinds Technologies Professional X-Cart Design, X-Cart Development, X-Cart Customization Services www.mercuryminds.com Follow us at Facebook / Twitter |
|||||||||
|
|||
X-Cart forums © 2001-2020
|