vnovak Posted July 3, 2016 Share Posted July 3, 2016 Hello! I want to ask you about advice with customer information that is used at identity.tpl in the format: {$smarty.post.firstnanme} {$smarty.post.lastname} etc I need to use it at my-account.tpl, but they dont work there. Maybe I should fix controller or class as well? I need to use exactly {$smarty.post. ....}, because simple $cookies is not allowing me to get all info I need. Looking forward to hear from you. Really need your advice! Link to comment Share on other sites More sharing options...
vnovak Posted July 4, 2016 Author Share Posted July 4, 2016 UP Link to comment Share on other sites More sharing options...
vekia Posted July 4, 2016 Share Posted July 4, 2016 these variables are used once someone "POST" form with account details (firstname, lastname etc.) so, simply saying, variables with $smarty.post in name are available when someone post the form, and these variables are available only on page where they are posted (<form> action param) {$smarty.post.firstnanme} Link to comment Share on other sites More sharing options...
vnovak Posted July 5, 2016 Author Share Posted July 5, 2016 Thank you for answers! I would better explain what I like to achieve, maybe solution is near ) 1. In the customer info we have NOTE 2. It is stored in in the DB (table ps_customer, column note) 3. We need to show this "note" in the my-account.tpl Thank you a lot for your advices! Link to comment Share on other sites More sharing options...
vnovak Posted July 5, 2016 Author Share Posted July 5, 2016 Done! Created this array in MyAccountController.php instead custom module. Thank you! 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