Jump to content

Block User Info not shown in displayTop


Recommended Posts

Hello,

I'm new in PrestaShop.

 

I'm trying to put the module "Block User Info" (sign in link ecc) in displayTop and displayHeader, near the cart. Now, in the modules position it's before the cart, but in frontoffice nothing appears, but if I put it on displayNav, there it appears.
 

Why? There is something to configure?

Link to comment
Share on other sites

  • 1 month later...

Hi,

I don't know if you're still looking for answer, but I had the same problem and I found your post. I solved it by opening the file "blockuserinfo.php" in the path "[your_root]/modules/ blockuserinfo/" changing the line 58 in:

public function hookDisplayNav($params)

and the line 80 in:

public function hookDisplayTop($params)

practically I reversed the words "HookdisplayNav" and "HookDisplayTop" (because I needed the block in Top and not in Nav).

 

I hope to be helpful!

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...