Jump to content

Remove the upgrade to prestashop so doesnt show in back office


Recommended Posts

Hi,

I want to remove the prestashop upgrade from the back office, because right now I dont feel like I need to upgrade has I am happy with my site. *unless of course upgrades help me get more sales ;-)

Since prestashop 1.2.3 was brought out a few weeks ago I understood why i should upgrade here because this version actually helps load my shop faster, and the modz sem to run much more efficiently

But in the version 1.2.4 there isnt really much there to help so I will wait for 1.2.5 and see if this is ok and if so then I will go through every file in my ftp and change all the permissions so i dont overwrite minor site configurations like the logo or needing to remove the "powered by prestashop" again.

So il wait a little while longer to see if there are mods that i will want ;-)

how do i remove this so i dont get reminded all of the time ?

Cheers


Andy.

11965_O4ZRcPZQCUePAPAgfpFx_t

  • Like 1
Link to comment
Share on other sites

You need to /* comment out */ the following section of index.php in your admin directory to remove the update notification:

if (@ini_get('allow_url_fopen') AND $update = checkPSVersion())
   echo ''.translate('New PrestaShop version avalaible').' : '.translate('Download').' '.$update['name'].' !';
elseif (!@ini_get('allow_url_fopen'))
{
   echo '
'.translate('Update notification unavailable').'';
   echo '
 ';
   echo '
'.translate('To receive PrestaShop update warnings, you need to activate the allow_url_fopen command in your php.ini config file.').' ['.translate('more infos').']';
   echo '
'.translate('If you don\'t know how to do that, please contact your host administrator !').'
';
}



To remove the news feed, comment out the following code:

echo '
'.translate('PrestaShop live feed').'';
$isoDefault = Language::getIsoById(intval(Configuration::get('PS_LANG_DEFAULT')));
$isoUser = Language::getIsoById(intval($cookie->id_lang));
echo'<iframe frameborder="no" style="margin: 0px; padding: 0px; width: 780px; height: 380px;" src="http://www.prestashop.com/rss/news.php?v='._PS_VERSION_.'〈='.$isoUser.'"></iframe>';

Link to comment
Share on other sites

  • 1 year later...
  • 1 month later...
  • 7 months later...

For version 1.4 you must go in your [admin directory]/tabs/AdminHome.php and comment out or remove the following lines as below:

 

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

Link to comment
Share on other sites

  • 3 weeks later...

is this correct? /*code*/ ? or {*code*} This didn't work for me the back office went blank. However I did remove the chunk of code from the AdminHome.php from "IF" to "Echo" leaving the <div> tags in place for Dash-Board area and that worked well.

 

Rocky,

I looked in the index.php for the code mentioned above you suggested but didn't find it on that page, did you mean AdminHome.php or am I just missing what you are talking about?

Link to comment
Share on other sites

  • 3 weeks later...
  • 1 year later...
  • 5 weeks later...

ps 1.5.2 change the content.tpl

 

admin/themes/default/template/controllers/home

 

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

 

to

 

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