Jump to content

Custom hooks not showing in module page


Recommended Posts

  • 2 weeks later...

I added some lines at FrontController.php:

class FrontController extends FrontControllerCore {
public function initContent()
{
 $this->process();
 if (!isset($this->context->cart))
  $this->context->cart = new Cart();
				    $this->context->smarty->assign(array(
  'HOOK_HEADER' => Hook::exec('displayHeader'),
  'HOOK_TOP' => Hook::exec('displayTop'),
  // Pridėti Hook'ai:
	    'HOOK_CART' => Hook::exec('displayCart'),
	    'HOOK_TOP_MENU' => Hook::exec('displayMeniu'),
	    'HOOK_FB_LIKE' => Hook::exec ('displayFB_LIKE'),

  // Iki čia...
  'HOOK_LEFT_COLUMN' => ($this->display_column_left ? Hook::exec('displayLeftColumn') : ''),
  'HOOK_RIGHT_COLUMN' => ($this->display_column_right ? Hook::exec('displayRightColumn', array('cart' => $this->context->cart)) : '')

 ));
}
}

 

HOOK_TOP, HOOK_HEADER, HOOK_LEFT_COLUMN are working and showing everything correctly.

HOOK_CART and HOOK_TOP_MENIU not working only in my custom module page...

Link to comment
Share on other sites

×
×
  • Create New...