![]() |
Welcome FirstName instead of UserName
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. |
Re: Welcome FirstName instead of UserName
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. |
Re: Welcome FirstName instead of UserName
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. |
Re: Welcome FirstName instead of UserName
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.)
|
Re: Welcome FirstName instead of UserName
No link to the thread and the thread # does not exist
|
Re: Welcome FirstName instead of UserName
|
Re: Welcome FirstName instead of UserName
Fixed it already...I used {$userinfo.firstname} {$userinfo.lastname} instead of {$login)
|
All times are GMT -8. The time now is 06:53 AM. |
Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.