adressopost Posted March 16, 2016 Share Posted March 16, 2016 Hi, if the customer is logged in on our site we want to display the customer id somting like: contacts us | Logout | My name | customer id(556) | se attached image is there any way to do this thanks Link to comment Share on other sites More sharing options...
NemoPS Posted March 16, 2016 Share Posted March 16, 2016 I think you will have to assign the id in the blockuserinfo module, hookDisplayNav method. something like$this->context->smarty->assign('customerID', $this->context->customer->id}Then in the template, nav.tpl (theme folder, modules, blockuserinfo) have it check if the id is > 0. If so, display it. 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