Jump to content

How to hide the "New Version of PrestaShop is available" nag line?


Recommended Posts

Hi!

This is a piece of cake :)

 

In your prestaroot-->admin-->tabs-->AdminHome.php

look at line: 173, there you find:

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>';

 

Just replace with this:

echo '';

That's it, I tried it and can confirm it work,

Link to comment
Share on other sites

This is how I did this, and was found on another post here in the forum.

 

AdminHome.php

Delete the lines below. 165-182

 

 

echo '<div>

<h1>'.$this->l('Dashboard').'</h1>

<hr style="background-color: #812143;color: #812143;" />

<br />';

 

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>';

}

 

echo '</div>';

Link to comment
Share on other sites

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...