webplus Posted March 14, 2016 Share Posted March 14, 2016 (edited) 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 March 14, 2016 by webplus (see edit history) Link to comment Share on other sites More sharing options...
NemoPS Posted March 16, 2016 Share Posted March 16, 2016 I don't think there is another way, apart from the one you mentioned. Change the core methods to protected and extend them. 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