![]() |
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:
{if $_userinfo.default_fields.firstname}{$order.b_firstname}{/if} Shipping Address Code:
{if $_userinfo.default_fields.firstname}{$order.s_firstname}{/if} Best Regards, Craig Brass |
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 |
Worked perfectly, thanks!
|
Which template can you find the above code in?
|
Quote:
skin1/mail/html/order_invoice.tpl to be edited. |
All times are GMT -8. The time now is 01:43 PM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.