Jump to content

My Account hook after logged in


Recommended Posts

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

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.

  • Like 1
Link to comment
Share on other sites

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

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...