<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	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/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>NemoPS &#187; debug</title>
	<atom:link href="http://nemops.com/tag/debug/feed/" rel="self" type="application/rss+xml" />
	<link>http://nemops.com</link>
	<description>Prestashop Tutorials, Modules and More!</description>
	<lastBuildDate>Wed, 05 Dec 2018 13:25:23 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>https://wordpress.org/?v=4.1.35</generator>
	<item>
		<title>PrestaShop Debug tip: display template names and path in the front office</title>
		<link>http://nemops.com/prestashop-debug-display-template-names-and-path/</link>
		<comments>http://nemops.com/prestashop-debug-display-template-names-and-path/#comments</comments>
		<pubDate>Wed, 24 May 2017 12:33:27 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[debug]]></category>
		<category><![CDATA[modules]]></category>
		<category><![CDATA[prestashop]]></category>
		<category><![CDATA[template]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=3026</guid>
		<description><![CDATA[<p>In this video we will see how to save hours of debugging, by displaying the name of each template coming from modules in the front office Watch the screencast Text Version Open up Module.php, located in the classes/module/ folder. Reach the display method, and right at the very end, just before the return statement, add [&#8230;]</p>
<p>The post <a rel="nofollow" href="http://nemops.com/prestashop-debug-display-template-names-and-path/">PrestaShop Debug tip: display template names and path in the front office</a> appeared first on <a rel="nofollow" href="http://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>In this video we will see how to save hours of debugging, by displaying the name of each template coming from modules in the front office<br />
<span id="more-3026"></span></p>
<h2>Watch the screencast</h2>

	<div class="video-embed">
		<iframe width="640" height="360" src="http://www.youtube.com/embed/exCPVrpfWW4#038;lc=z122zleyvxa5dz10f22zwnjjurqyhbtx004" frameborder="0" allowfullscreen></iframe><p><a href="https://www.youtube.com/user/NemoPostScriptum/videos" rel="nofollow" title="Subscribe Post Scriptum's Youtube Channel">Subscribe Post Scriptum's Youtube Channel</a></p>	</div>
<h3>Text Version</h3>
<p>Open up <strong>Module.php</strong>, located in the <em>classes/module/</em> folder. Reach the <strong>display</strong> method, and right at the very end, just before the return statement, add the following:</p>
<pre class="brush: php; title: ; notranslate">
            if($result &amp;&amp; _PS_MODE_DEV_ === true)
            {
                $tpl_path = $this-&gt;getTemplatePath($template);
                $result = '&lt;!-- START ' . $tpl_path .' --&gt;' . $result . '&lt;!-- END ' . $tpl_path .' --&gt;';    
            }
</pre>
<p>Save, make sure dev mode is enabled, then refresh the front office. Open up Chrome developer tools (or equivalent) and inspect the section you need of the template, you will see each module&#8217;s box wrapped with the corresponding template path</p>
<p>The post <a rel="nofollow" href="http://nemops.com/prestashop-debug-display-template-names-and-path/">PrestaShop Debug tip: display template names and path in the front office</a> appeared first on <a rel="nofollow" href="http://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://nemops.com/prestashop-debug-display-template-names-and-path/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
