Jump to content

Override Blocklayered


Recommended Posts

Hi,

I'm trying to override blocklayered.php to add my own hook into center column. I did this sucesfully but there is this code in other hooks in blocklayered.php which cause that these hooks doesn't work in my theme (because my theme has no left or right column, it has center column only):

if ((isset($this->context->controller->display_column_left) && !$this->context->controller->display_column_left)
            && (isset($this->context->controller->display_column_right) && !$this->context->controller->display_column_right))
            return false;
 

any idea how to eliminate only this part of code in override so it's not valid for these other hooks (hookProductListAssign, hookHeader etc.) Btw, I can't just copy all code in these hooks and remove this problematic part only, because private methods are used in these hooks.

Edited by webplus (see edit history)
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...