<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	
	>
<channel>
	<title>Comments on: Quick Tip: Adding hooks to Prestashop 1.5 (the new way)</title>
	<atom:link href="http://nemops.com/adding-hooks-to-prestashop-1-5/feed/" rel="self" type="application/rss+xml" />
	<link>http://nemops.com/adding-hooks-to-prestashop-1-5/</link>
	<description>Prestashop Tutorials, Modules and More!</description>
	<lastBuildDate>Fri, 10 Mar 2023 23:25:00 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.35</generator>
	<item>
		<title>By: Bara Anton Florian</title>
		<link>http://nemops.com/adding-hooks-to-prestashop-1-5/comment-page-1/#comment-46499</link>
		<dc:creator><![CDATA[Bara Anton Florian]]></dc:creator>
		<pubDate>Thu, 12 Jan 2017 15:07:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1007#comment-46499</guid>
		<description><![CDATA[This was very useful! Thank you for taking your time to share this knowledge.]]></description>
		<content:encoded><![CDATA[<p>This was very useful! Thank you for taking your time to share this knowledge.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Brewal</title>
		<link>http://nemops.com/adding-hooks-to-prestashop-1-5/comment-page-1/#comment-45601</link>
		<dc:creator><![CDATA[Brewal]]></dc:creator>
		<pubDate>Tue, 04 Mar 2014 16:51:00 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1007#comment-45601</guid>
		<description><![CDATA[I recommend using this method in order to override module&#039;s bootstrap php :

https://github.com/FlYos/Prestashop-override-module



way better that directly modifying the php of the module itself.
In my opinion, prestashop positionning system really sucks by the way... We should be able to place any module anywhere directly into the admin, and just create hooks in templates.]]></description>
		<content:encoded><![CDATA[<p>I recommend using this method in order to override module&#8217;s bootstrap php :</p>
<p><a href="https://github.com/FlYos/Prestashop-override-module" rel="nofollow">https://github.com/FlYos/Prestashop-override-module</a></p>
<p>way better that directly modifying the php of the module itself.<br />
In my opinion, prestashop positionning system really sucks by the way&#8230; We should be able to place any module anywhere directly into the admin, and just create hooks in templates.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: lui1969</title>
		<link>http://nemops.com/adding-hooks-to-prestashop-1-5/comment-page-1/#comment-45545</link>
		<dc:creator><![CDATA[lui1969]]></dc:creator>
		<pubDate>Sun, 12 Jan 2014 13:02:08 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1007#comment-45545</guid>
		<description><![CDATA[hello Nemo, do you think it is possible to do such a thing in the top menu?

I&#039;ll leave you the link of the forum prestashop

http://www.prestashop.com/forums/topic/300907-add-new-hook-in-top/


thanks]]></description>
		<content:encoded><![CDATA[<p>hello Nemo, do you think it is possible to do such a thing in the top menu?</p>
<p>I&#8217;ll leave you the link of the forum prestashop</p>
<p><a href="http://www.prestashop.com/forums/topic/300907-add-new-hook-in-top/" rel="nofollow">http://www.prestashop.com/forums/topic/300907-add-new-hook-in-top/</a></p>
<p>thanks</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Baron</title>
		<link>http://nemops.com/adding-hooks-to-prestashop-1-5/comment-page-1/#comment-34107</link>
		<dc:creator><![CDATA[Baron]]></dc:creator>
		<pubDate>Sat, 14 Sep 2013 17:34:49 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1007#comment-34107</guid>
		<description><![CDATA[Hi all!!!!!!
I just change the Homeslider hook.
It return a value, but i can&#039;t see any pics.

Any idea?]]></description>
		<content:encoded><![CDATA[<p>Hi all!!!!!!<br />
I just change the Homeslider hook.<br />
It return a value, but i can&#8217;t see any pics.</p>
<p>Any idea?</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr. V</title>
		<link>http://nemops.com/adding-hooks-to-prestashop-1-5/comment-page-1/#comment-32988</link>
		<dc:creator><![CDATA[Dr. V]]></dc:creator>
		<pubDate>Mon, 02 Sep 2013 14:44:03 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1007#comment-32988</guid>
		<description><![CDATA[By the way, don&#039;t forget to reset the module on the backend, or it won&#039;t work :-)]]></description>
		<content:encoded><![CDATA[<p>By the way, don&#8217;t forget to reset the module on the backend, or it won&#8217;t work <img src="http://nemops.com/wp-includes/images/smilies/icon_smile.gif" alt=":-)" class="wp-smiley" /></p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Dr. V</title>
		<link>http://nemops.com/adding-hooks-to-prestashop-1-5/comment-page-1/#comment-32987</link>
		<dc:creator><![CDATA[Dr. V]]></dc:creator>
		<pubDate>Mon, 02 Sep 2013 14:39:18 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1007#comment-32987</guid>
		<description><![CDATA[Thanks a lot for your tutorial!!!
I went a bit further with this.
You can make it show on the &quot;positions&quot; of your Prestashop, so you can add more modules easily to your hook.
Just add :

	public function install()
	{
		if (!parent::install() &#124;&#124; !$this-&gt;registerHook(&#039;top&#039;) &#124;&#124; !$this-&gt;registerHook(&#039;beforeFooter&#039;) &#124;&#124; !$this-&gt;registerHook(&#039;header&#039;) &#124;&#124; !$this-&gt;registerHook(&#039;displayMobileTopSiteMap&#039;))
			return false;
		

		//register the hook on positions 
		Db::getInstance()-&gt;execute(&#039;UPDATE &#039;._DB_PREFIX_.&#039;hook SET position=&quot;1&quot; WHERE name = &quot;beforeFooter&quot;&#039;); 				
		
		return true; 
	}

This will modify your database and set the &quot;position&quot; value to 1. 
If you want to make it appear on the &quot;live edit&quot; just update &quot;live_edit&quot; to 1 on the same table.

Cheers.]]></description>
		<content:encoded><![CDATA[<p>Thanks a lot for your tutorial!!!<br />
I went a bit further with this.<br />
You can make it show on the &#8220;positions&#8221; of your Prestashop, so you can add more modules easily to your hook.<br />
Just add :</p>
<p>	public function install()<br />
	{<br />
		if (!parent::install() || !$this-&gt;registerHook(&#8216;top&#8217;) || !$this-&gt;registerHook(&#8216;beforeFooter&#8217;) || !$this-&gt;registerHook(&#8216;header&#8217;) || !$this-&gt;registerHook(&#8216;displayMobileTopSiteMap&#8217;))<br />
			return false;</p>
<p>		//register the hook on positions<br />
		Db::getInstance()-&gt;execute(&#8216;UPDATE &#8216;._DB_PREFIX_.&#8217;hook SET position=&#8221;1&#8243; WHERE name = &#8220;beforeFooter&#8221;&#8216;); 				</p>
<p>		return true;<br />
	}</p>
<p>This will modify your database and set the &#8220;position&#8221; value to 1.<br />
If you want to make it appear on the &#8220;live edit&#8221; just update &#8220;live_edit&#8221; to 1 on the same table.</p>
<p>Cheers.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: BigRedRadish</title>
		<link>http://nemops.com/adding-hooks-to-prestashop-1-5/comment-page-1/#comment-32847</link>
		<dc:creator><![CDATA[BigRedRadish]]></dc:creator>
		<pubDate>Fri, 30 Aug 2013 10:33:30 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1007#comment-32847</guid>
		<description><![CDATA[Hi

I&#039;m fairly new to Prestashop.  Thanks for the great tip!  I have successfully created a new hook, but I am not able to transplant modules in to it.  Is there something else I need to do to be able to transplant modules into the hook?

Thanks for all you great tutorials, they have saved me a lot of time!]]></description>
		<content:encoded><![CDATA[<p>Hi</p>
<p>I&#8217;m fairly new to Prestashop.  Thanks for the great tip!  I have successfully created a new hook, but I am not able to transplant modules in to it.  Is there something else I need to do to be able to transplant modules into the hook?</p>
<p>Thanks for all you great tutorials, they have saved me a lot of time!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Nemo</title>
		<link>http://nemops.com/adding-hooks-to-prestashop-1-5/comment-page-1/#comment-31911</link>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
		<pubDate>Mon, 19 Aug 2013 14:05:03 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1007#comment-31911</guid>
		<description><![CDATA[THose functions should only be used in hookHeader actually]]></description>
		<content:encoded><![CDATA[<p>THose functions should only be used in hookHeader actually</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: m.winkler</title>
		<link>http://nemops.com/adding-hooks-to-prestashop-1-5/comment-page-1/#comment-31910</link>
		<dc:creator><![CDATA[m.winkler]]></dc:creator>
		<pubDate>Mon, 19 Aug 2013 13:54:20 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1007#comment-31910</guid>
		<description><![CDATA[adding css or js to the hook is not working;


$this-&gt;context-&gt;controller-&gt;addJS( ... 
$this-&gt;context-&gt;controller-&gt;addCSS(...

doesn&#039;t show up in the page anymore]]></description>
		<content:encoded><![CDATA[<p>adding css or js to the hook is not working;</p>
<p>$this-&gt;context-&gt;controller-&gt;addJS( &#8230;<br />
$this-&gt;context-&gt;controller-&gt;addCSS(&#8230;</p>
<p>doesn&#8217;t show up in the page anymore</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Yasic</title>
		<link>http://nemops.com/adding-hooks-to-prestashop-1-5/comment-page-1/#comment-29826</link>
		<dc:creator><![CDATA[Yasic]]></dc:creator>
		<pubDate>Tue, 23 Jul 2013 09:30:25 +0000</pubDate>
		<guid isPermaLink="false">http://nemops.com/?p=1007#comment-29826</guid>
		<description><![CDATA[Hi, i&#039;ve tried this with the newsletter module and i get the &quot;hi there&quot; message and the module is planted in the hook (i called it before footer too) but i dont see how the newsletter module itself is being loaded. all i have is the &quot;hi there&quot;.
how do i get the newsletter box to show up?

thanks]]></description>
		<content:encoded><![CDATA[<p>Hi, i&#8217;ve tried this with the newsletter module and i get the &#8220;hi there&#8221; message and the module is planted in the hook (i called it before footer too) but i dont see how the newsletter module itself is being loaded. all i have is the &#8220;hi there&#8221;.<br />
how do i get the newsletter box to show up?</p>
<p>thanks</p>
]]></content:encoded>
	</item>
</channel>
</rss>
