Guest Posted May 19, 2013 Share Posted May 19, 2013 Hey guys, Is there any code available to insert the person's first name for a greeting that I can insert into text on a tpl document? Thanks in advance! eggo Link to comment Share on other sites More sharing options...
vekia Posted May 19, 2013 Share Posted May 19, 2013 You can use customer first name only when the customer is logged in your store. to achieve this you have to use context object. {assign var=context value=Context::getContext()} Hi {$context->customer->firstname} ! Now you've got access to other context variables like customer email, lastname, language etc. awesome, don't you think? 2 Link to comment Share on other sites More sharing options...
Guest Posted May 20, 2013 Share Posted May 20, 2013 Hey vekia, Always appreciate your answers. Thank you, worked perfectly. Best, Carl Link to comment Share on other sites More sharing options...
vekia Posted May 20, 2013 Share Posted May 20, 2013 you're welcome i marked this thread as solved regards Link to comment Share on other sites More sharing options...
yaniv14 Posted May 22, 2013 Share Posted May 22, 2013 Hi Vekia, Maybe you can help me with something similar http://www.prestashop.com/forums/topic/244923-product-category-in-home-featured-module/page__p__1213504?do=findComment&comment=1213504 I know its not proper to post it here, but I didn't get any answer yet. Thanks, Yaniv M Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now