Can we create module in prestashop 1.6 using modular approach? -
is possible create module follow modular approach? can create custom hook in prestashop 1.6?
in prestashop version 1.6 able create own custom hooks.
in module.php install() function can register new custom hook this: $this->registerhook('nameofhook');
to assign hook e.g. in template file. need add following code: {hook h='nameofhook' mod='yourmodulename'}
note: in version 1.6 not neccessary anymore insert hook hooks table. presta automatically if registered hook doesn't exists now.
for modular approach please have @ following links: http://doc.prestashop.com/display/ps16/creating+a+first+module http://doc.prestashop.com/display/ps16/coding+standards
some other usefull links might be: http://doc.prestashop.com/display/ps16/managing+hooks
Comments
Post a Comment