Jump to content

Remove hook left in only one category


davidmr92

Recommended Posts

Hi, you need to override the classes/controller/FrontController file.

 

if the init function, you need to add something like that:

$show_left_column = 1;

if (Tools::getIsset('id_product') && $current_category = Tools::getValue('id_product'))
    if ($current_category == your_category_id)
        $show_left_column = 0;
        
$this->context->smarty->assign('show_left_column', $show_left_column);

then in your header.tpl file you can add:

{if $show_left_column}
{$HOOK_LEFT_COLUMN}
{/if}
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...