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

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -