johnator Posted January 12, 2014 Share Posted January 12, 2014 hello, how can i hide the blockbestsellers.tpl when i display my-account.tpl page and where do i change a hook of blockbestsellers.tpl. i wanna change it directly in source code, so describe it in this way, please. Link to comment Share on other sites More sharing options...
limon994 Posted January 12, 2014 Share Posted January 12, 2014 Hello, You can hide the bestseller by simple disable the bestseller module from the back office. Log in to your back-office. Go to "Modules" tab, then "Front office features" sub tab. Then you can see the module named "Top seller block". There You can disable this module. If you want to hide by code then open the following file in a text editor YOUR_ROOT_DIR/modules/blockbestsellers/blockbestsellers.php go to the line public function hookRightColumn($params) { ......... ......... } Then add "return "";" at the begining of this method public function hookRightColumn($params) { return ""; ......... ......... } It will hide your bestsellers block Thanks, Link to comment Share on other sites More sharing options...
vekia Posted January 12, 2014 Share Posted January 12, 2014 well, in fact it's not necessary to modify files. if you want to disable blockbestsellers only on my account page, go to modules > positions and search for "displayRightColumn" module list. click on edit button near blockbestsellers module. You will see a form to modify the module position and specification. there is a field "exception" select "myaccount" there ' then best sellers block will not appear on my account page. 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