Jump to content

Override BlockTopMenu to match Customer's preferences


adrien_c

Recommended Posts

Hi everybody

 

I have configured my top menu with main categories. I have overridden Customer class to store category preference. OK

 

Now, I would like to disable, in the top menu, items don't match with category preference of the customer who's logged in...

 

I understand how works overriding in PS but I need some help to do this.

I can't override blocktopmenu.php because makeMenu() is private, and they don't use a loop in their template (blocktopmenu.tpl). The only thing I thought is to override hookDisplayTop() but the whole menu is already assigned to the template !

 

Do you have a way to do this ?

NB : I just need to put a class="menu-disable" on <li> for those don't match customer's category preference

 

Thank you   :)

PS : 1.6.0.8 / zensation theme

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