| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Putting the Username on Invoices? Anyone? | ||||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() Hi,
Anyone know how to put the username on the invoice, I'm stumped. It's for a 4.4.3 cart, thanks heaps Spence
__________________
------------------- 4.2.2 4.1.9 |
|||||||
#2
|
|||||||||
|
|||||||||
![]() You must edit the /mail/html/order_invoice.tpl file (which will be either in skin/common_files dir or skin/<skin_used> dir if you have done any modifications already to that template).
Find the following code (around line 77 in 4.4.2 version): Code:
and wherever you want to display the username field, among the <tr> tags, insert an additional table row: Code:
__________________
Vasilis Vrontisis X-Cart Development, Maintenance & Customization https://[URL="http://www.craftforweb.com"]craftforweb.com[/url] vasilis@craftforweb.com |
|||||||||
#3
|
|||||||
|
|||||||
![]() thanks a lot mate, I'll give it a ago.
__________________
------------------- 4.2.2 4.1.9 |
|||||||
#4
|
|||||||
|
|||||||
![]() Eventhough my site is login via username not password, {$userinfo.username} returns the email address not the username.
__________________
------------------- 4.2.2 4.1.9 |
|||||||
#5
|
|||||||||
|
|||||||||
![]() could it be that the email address has been used for a username ?
__________________
Vasilis Vrontisis X-Cart Development, Maintenance & Customization https://[URL="http://www.craftforweb.com"]craftforweb.com[/url] vasilis@craftforweb.com |
|||||||||
#6
|
|||||||
|
|||||||
![]() That's what I thought but no it's not I have it set for login via username not email. the call I have found through webmaster mode in admin is 'uname'. So I tried {$userinfo.uname} but it displays nothing. Thanks for looking though.
__________________
------------------- 4.2.2 4.1.9 |
|||||||
#7
|
|||||||||
|
|||||||||
![]() order_invoice.tpl is called by main/order_message.tpl so you might want to take a look in the calling line - some smarty variables are assigned there which pass on to order_invoice.tpl
__________________
Vasilis Vrontisis X-Cart Development, Maintenance & Customization https://[URL="http://www.craftforweb.com"]craftforweb.com[/url] vasilis@craftforweb.com |
|||||||||
#8
|
|||||||
|
|||||||
![]() thanks buddy will do
__________________
------------------- 4.2.2 4.1.9 |
|||||||
#9
|
|||||||
|
|||||||
![]() ended up being {$userinfo.login}, works a charm, thanks for you help!
__________________
------------------- 4.2.2 4.1.9 |
|||||||
#10
|
|||||||
|
|||||||
![]() I found that to get a username to show up on an Invoice I had to use this:{$_userinfo.login}
Worked using Pro 4.4.4. Hope that helps anyone else looking to put a user name on an invoice. I would think that would be a given. Maybe QT can build that one in next build??? SGS
__________________
Currently Using: For X-cart v5.2.0 1 Business v5.2.6 license <Getting Better>! 1 Banner Mod 5.2.7 license 1 #28 iGoods Template For X-cart v4.7.0 1 GoldPlus v4 license unused 3 Gold v4 license Unused A wise man once said it is best to fix the cart instead of trying to use a broken cart. The horse has a very hard time pushing a broken cart!! |
|||||||
|
|||
X-Cart forums © 2001-2020
|