Jump to content

hook of block


johnator

Recommended Posts

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

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

Z9XaMts.png'

then best sellers block will not appear on my account page.

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