Child pages
  • Overriding default behaviors

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 5.3

...

  • /themes/my_theme/modules/my_module/my_module.tpl
  • /themes/my_theme/css/modules/my_modulesmodule/my_module.css
  • /themes/my_theme/js/modules/my_modulesmodule/my_module.js

Since PrestaShop 1.5, the path is slightly longer

  • /themes/my_theme/modules/my_module/views/templates/front/my_module.tpl
  • /themes/my_theme/css/modules/my_modulesmodule/views/templates/front/my_module.css
  • /themes/my_theme/js/modules/my_modulesmodule/views/templates/front/my_module.js

...

Code Block
/*
 * With this override, you have a new Smarty variable called "currentController" available in header.tpl
 * This allows you to use a different header if you are on a product page, category page or home.
 */
class FrontController extends FrontControllerCore {
	public function displayHeaderinitHeader()
	{
		self::$smarty->assign('currentController', get_class($this));
		return parent::displayHeaderinitHeader();
	}
}