| ||||||||||
![]() |
Shopping cart software Solutions for online shops and malls | |||||||||
![]() |
![]() |
|
X-Cart Home | ![]() |
![]() |
![]() |
![]() |
![]() |
![]() |
Welcome FirstName instead of UserName | |||
![]() |
|
|
Thread Tools | Search this Thread |
#1
|
|||||||
|
|||||||
![]() I want to welcome people by their first name, not their login name.
Here is current code from authobox.tpl: <td class="VertMenuItems" valign="top"> <b>Welcome {$login}!</td> This displays "Welcome UserName!". However, simply replacing {$login} with {$firstname} or {$userinfo.firstname} doesn't bring me the first name; it just shows "Welcome !". I tried cloning what I found in 1) Fast_Lane_Checkout/customer_details_html.tpl, where it plugs the first name into an edit field by referencing {$userinfo.firstname}; and 2) Fast_Lane_Checkout/checkout_2_method.tpl, where it displays a number of customer profile fields as text on the page, (I tried {$userinfo.b_zipcode} just to see if another type of field might work) but alas ... in both cases to no avail. I have tried turning on the Greet Visitor module, but that didn't work either. We're using the above code in conjunction with a customized logout routine which evidently overrides the normal GreetVisitor approach. I have also searched the forums about ten ways looking for an answer. (I was optimistic when I saw the GreetVisitor solution offered to someone.) Seems like this should be pretty simple, so I'm probably overlooking an obvious thing. Thank you. |
|||||||
#2
|
|||||||||
|
|||||||||
![]() The welcoming is normally done in skin1/customer/main/welcome.tpl
Have a look at this file to see the code used to welcome by name.
__________________
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
|
|||||||
|
|||||||
![]() Thanks, Paul. Unfortunately, that routine supplies "First Last" as it's found in the cookies file, not "FirstNameOnly" as it's found in the user profile.
Any other ideas out there? Thanks. |
|||||||
#4
|
|||||||
|
|||||||
![]() I found the answer to this in http://forum.x-cart.com/showthread.php?t=26065. (Had originally listed an incorrect link. Sorry, folks. And thanks for pitching in on that, PhilJ.)
|
|||||||
#5
|
|||||||
|
|||||||
![]() No link to the thread and the thread # does not exist
__________________
X-Cart Pro 4.1.9 PHP5.2.5 MySQL 5.0.54 IIS/Apache/NGINX Webservers |
|||||||
#6
|
|||||||
|
|||||||
![]()
__________________
xcartmods.co.uk |
|||||||
#7
|
|||||||
|
|||||||
![]() Fixed it already...I used {$userinfo.firstname} {$userinfo.lastname} instead of {$login)
__________________
X-Cart Pro 4.1.9 PHP5.2.5 MySQL 5.0.54 IIS/Apache/NGINX Webservers |
|||||||
|
|||
X-Cart forums © 2001-2020
|