Jump to content

Delete back office message "New Prestashop Update Avaliable"


Recommended Posts

The line numbers are from a crystal ball I keep for such occasions so may differ slightly in whatever version you have :)

 

installroot/renamed-admin-folder/tabs/AdminHome.php, comment out lines 167-179 inclusive

 

/*if (@ini_get('allow_url_fopen')) {
$upgrade = new Upgrader();
if ($update = $upgrade->checkPSVersion())
	echo '<div class="warning warn" style="margin-bottom:30px;"><h3>' . $this->l('New PrestaShop version available') . ' : <a style="text-decoration: underline;" href="' . $update['link'] . '" target="_blank">' . $this->l('Download') . ' ' . $update['name'] . '</a> !</h3></div>';
}
else {
echo '<p>' . $this->l('Update notification unavailable') . '</p>';
echo '<p> </p>';
echo '<p>' . $this->l('To receive PrestaShop update warnings, you need to activate the <b>allow_url_fopen</b> command in your <b>php.ini</b> config file.') . ' [<a href="http://www.php.net/manual/' . $isoUser . '/ref.filesystem.php">' . $this->l('more info') . '</a>]</p>';
echo '<p>' . $this->l('If you don\'t know how to do that, please contact your host administrator !') . '</p><br>';
}*/

  • Like 1
Link to comment
Share on other sites

  • 5 months later...
  • 9 months later...

For version 1.5 you need to edit the file content.tpl. If your PrestaShop is installed directly in the public_html folder on your hosting acccount, the path to the file would be public_html/name_of_admin_directory/themes/default/template/controllers/home/content.tpl. Comment out the following code:

 

<div id="blockNewVersionCheck">
 {if $upgrade->need_upgrade}
  <div class="warning warn" style="margin-bottom:10px;"><h3>{l s='New version of PrestaShop is available'} : <a style="text-decoration: underline;" href="{$upgrade->link}" target="_blank">{l s='Download'} {$upgrade->version_name}</a> !</h3></div>
 {/if}
 </div>

 

To comment it out just put an exclamation mark and two hyphens after the first bracket (e.g. <!--div) and two hyphens before the last one (e.g. </div-->).

  • Like 3
Link to comment
Share on other sites

  • 8 months later...

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...