<?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; notifications</title>
	<atom:link href="https://nemops.com/tag/notifications/feed/" rel="self" type="application/rss+xml" />
	<link>https://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>How to disable top notifications in the Prestashop back office</title>
		<link>https://nemops.com/disable-notifications-prestashop-back-office/</link>
		<comments>https://nemops.com/disable-notifications-prestashop-back-office/#comments</comments>
		<pubDate>Mon, 08 Jun 2015 10:06:10 +0000</pubDate>
		<dc:creator><![CDATA[Nemo]]></dc:creator>
				<category><![CDATA[Tips n Tricks]]></category>
		<category><![CDATA[back office]]></category>
		<category><![CDATA[notifications]]></category>
		<category><![CDATA[prestashop]]></category>

		<guid isPermaLink="false">http://nemops.com/?p=2441</guid>
		<description><![CDATA[<p>If your back office is hanging without apparent reason, it might be because of these notifications. Let&#8217;s get rid of them. Watch the Screencast Text version Open up classes/Notification.php, and locate the getLastElements method: Modify as follows This way, we are effectively saving lots of resources as we don&#8217;t query the database for new items.</p>
<p>The post <a rel="nofollow" href="https://nemops.com/disable-notifications-prestashop-back-office/">How to disable top notifications in the Prestashop back office</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></description>
				<content:encoded><![CDATA[<p>If your back office is hanging without apparent reason, it might be because of these notifications. Let&#8217;s get rid of them.<br />
<span id="more-2441"></span></p>
<h2>Watch the Screencast</h2>

	<div class="video-embed">
		<iframe width="640" height="360" src="http://www.youtube.com/embed/Rn0kNszfA9s" 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>
<h2>Text version</h2>
<p>Open up classes/Notification.php, and locate the getLastElements method:</p>
<pre class="brush: php; title: ; notranslate">
	public function getLastElements()
	{
		global $cookie;

		$notifications = array();

		$employee_infos = Db::getInstance(_PS_USE_SQL_SLAVE_)-&gt;getRow('
		SELECT id_last_order, id_last_customer_message, id_last_customer
		FROM `'._DB_PREFIX_.'employee`
		WHERE `id_employee` = '.(int)$cookie-&gt;id_employee);

		foreach ($this-&gt;types as $type)
			$notifications[$type] = Notification::getLastElementsIdsByType($type, $employee_infos['id_last_'.$type]);

		return $notifications;
	}
</pre>
<p>Modify as follows</p>
<pre class="brush: php; title: ; notranslate">
	public function getLastElements()
	{
		global $cookie;

		$notifications = array();

		foreach($this-&gt;types as $type)
			$notifications[$type] = array();

		return $notifications;

		$employee_infos = Db::getInstance(_PS_USE_SQL_SLAVE_)-&gt;getRow('
		SELECT id_last_order, id_last_customer_message, id_last_customer
		FROM `'._DB_PREFIX_.'employee`
		WHERE `id_employee` = '.(int)$cookie-&gt;id_employee);

		foreach ($this-&gt;types as $type)
			$notifications[$type] = Notification::getLastElementsIdsByType($type, $employee_infos['id_last_'.$type]);

		return $notifications;
	}
</pre>
<p>This way, we are effectively saving lots of resources as we don&#8217;t query the database for new items.</p>
<p>The post <a rel="nofollow" href="https://nemops.com/disable-notifications-prestashop-back-office/">How to disable top notifications in the Prestashop back office</a> appeared first on <a rel="nofollow" href="https://nemops.com">NemoPS</a>.</p>
]]></content:encoded>
			<wfw:commentRss>https://nemops.com/disable-notifications-prestashop-back-office/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
