Ferry_01 Posted April 23, 2020 Share Posted April 23, 2020 Hello everyone, My shop always displays the "My Account" block in the footer. I only want to show the "My Account" block when a custommer is logged in. On which hook do I have to position the "My Account" block? Or is there another option? Thanks Link to comment Share on other sites More sharing options...
NemoPS Posted April 27, 2020 Share Posted April 27, 2020 Assuming you are using 1.6, you can edit the .tpl file in the theme folder /modules/blockmyaccountfooter, and add if {$logged}. I think that variable works there too. If not, you can create an override for the module's php file and check for a customer ID there. If it's 0, then return empty rather than the template. 1 Link to comment Share on other sites More sharing options...
Ferry_01 Posted April 28, 2020 Author Share Posted April 28, 2020 I am using version 1.7.6.4 when starting this topic But I am starting over with my webshop because I have a lot of errors and with hooks. Missing hooks, wrong positions, and so on Probbely because I updated from version 1.6 to 1.7. Thank you for your answer. Link to comment Share on other sites More sharing options...
NemoPS Posted April 29, 2020 Share Posted April 29, 2020 Ok, if you updated, then yeah chances are things went wrong during the process. Did you change your theme? 1.6 themes are not compatible with 1.7 at all, so you need a new one. Might be why you are missing the hooks. 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