X-Cart: shopping cart software

X-Cart forums (https://forum.x-cart.com/index.php)
-   Changing design (https://forum.x-cart.com/forumdisplay.php?f=51)
-   -   Welcome FirstName instead of UserName (https://forum.x-cart.com/showthread.php?t=39116)

Troy 04-16-2008 12:04 AM

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.

pauldodman 04-16-2008 01:00 AM

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.

Troy 04-16-2008 11:10 AM

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.

Troy 05-10-2008 11:48 PM

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.)

Thedae2k 05-14-2008 10:03 AM

Re: Welcome FirstName instead of UserName
 
No link to the thread and the thread # does not exist

PhilJ 05-14-2008 10:12 AM

Re: Welcome FirstName instead of UserName
 
http://forum.x-cart.com/showthread.php?t=26065

Thedae2k 05-14-2008 11:05 AM

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.