Jump to content

[Free Module] No Update Please !


coeos.pro
 Share

Recommended Posts

You want to use your shop and prestashop modules without being forced to do the updates of the latter? You want to avoid at all costs the problems resulting from these update? This module is for you!


 


post-95593-0-19789100-1438722620_thumb.jpg

 

 
Installing the module immediately removes any constraints that prevent them from using a module due to an update:
 


post-95593-0-89175400-1438722630_thumb.jpg
 

The configuration of the module gives you the list of modules that should be updated:
 

post-95593-0-50608400-1440510482_thumb.jpg

 
 
 
A simple disabling (or uninstall) the module enables return to normal


 
It is here, and it's free: noupdateplease.zip
 
Tested on 1.6.0.5 and 1.6.1
 
 
Update :
 
Version 1.1.0 v1.1.0.noupdateplease.zip
lets not display PrestaShop modules that are not present on the server, including modules that must be paid
 
Version 1.2.0 v.1.2.0.noupdateplease.zip
 
- removed bug that would not display a module not yet installed or uninstalled
- added 2 options in the configuration of the module ("do not show modules that require an update" and "do not show the server missing modules")
- addition of the logos of the modules in the summary table of the modules to be updated
- added a table listing the modules present on the server and normally present in the list of modules
 
Version 1.3.0 : v.1.3.0.noupdateplease.zip
- Ability to select the modules you want to see the updates (eg payment modules)

Edited by coeos.pro (see edit history)
  • Like 5

Share this post


Link to post
Share on other sites

Update : 

 

-removed bug that would not display a module not yet installed or uninstalled
-added 2 options in the configuration of the module ("do not show modules that require an update" and "do not show the server missing modules")
-addition of the logos of the modules in the summary table of the modules to be updated
-added a table listing the modules present on the server and normally present in the list of modules

 

If you have an older version you must uninstall it and delete it before install this new version.
  • Like 1

Share this post


Link to post
Share on other sites

  • 2 weeks later...

Hi,
 
(end of the holidays... :( )


 

Hi,
Works fine, but... should it be possible to leave some essential modules activated for update (Paypal for example, as security issues need to be resolved) ??
Thanks

 
 I'll think about it and add it (as soon as I have time)
 
 
 

in PS 1.6 are modules and default theme auto updated silently ?


No, in fact the updates on prestashop 1.6 blocks access to the configuration and unfortunately updates can change the appearance of the module on the shop, and this forces you to re-edit certain files manually in an emergency as soon as you did a module update.

My module removes the obligation to update, you can still access the module configuration.

Share this post


Link to post
Share on other sites

After installation of ver. 1.3.0 no possibility of configuration.

Uninstalled and get the following message in the new installation

"This module is already installed: noupdateplease"

Have tried to emty casche and compile in the smarty directory

My shop PS 1.6.0.14

Share this post


Link to post
Share on other sites

No previous installation,

it was my first installation of the module. 

After the installation was only elections to install or remove,  no option to configure or uninstall. 

I choose to remove, and perform a clean installation, and then get the message

"This module is already installed: noupdateplease"

Share this post


Link to post
Share on other sites

Have you installed the module via FTP or via the back office?

from the back office:
- uninstall the module,
- remove the module

Make sure you have the override override/classes/Module/module.php and check in this file you have the function getModulesOnDisk:
 

public static function getModulesOnDisk($useConfig = false, $loggedOnAddons = false, $id_employee = false, $parent = false)

 
whether the delete function.

retest with an installation by the back office

Share this post


Link to post
Share on other sites

I have installed the module via  the back office.

 

I have no choice to uninstall, tried again to remove the module, and installed again, and receive the same error message

Is uncertain but maybe  I had v. 1.0.0 previously installed.

 

My module.php:

<?php

class Module extends ModuleCore
{
    /*
    * module: noupdateplease
    * date: 2015-08-25 18:26:25
    * version: 1.3.0
    */
    public static function getModulesOnDisk($useConfig = false, $loggedOnAddons = false, $id_employee = false, $parent = false)
    {
        $module_list = parent::getModulesOnDisk($useConfig, $loggedOnAddons, $id_employee);
        if ($parent || !Module::isEnabled('noupdateplease'))
            return $module_list;
        $config = Configuration::get('nup_config');
        $datas = unserialize($config);
        foreach ($module_list as $key => $module)
            if (!in_array($module->name, $datas['display_modules']))
            {
                unset($module->version_addons);
                if ((int)$datas['nup_not_on_disk'] == 1 && isset($module->not_on_disk))
                    unset($module_list[$key]);
            }
        return $module_list;
    }
}

Share this post


Link to post
Share on other sites

Thank you for your support, I can now use your module fully functional.

I removed the module and emptied casce files and removed the module from the database.

Did a fresh install in BO, and now it works.

Thanks for a great module  :)
  • Like 1

Share this post


Link to post
Share on other sites

  • 2 weeks later...

You can display module name with $module->name

example, change
  

<td>'.$module->displayName.'</td>

by

<td>'.$module->name.' - '.$module->displayName.'</td>

 
 
For each modules you can have a lot of informations (with $module->...) , example with blockcategories (in French) :
 

[22] => stdClass Object
(
[id] => 7
[warning] =>
[name] => blockcategories
[version] => 2.9.0
[tab] => front_office_features
[displayName] => Bloc catégories
[description] => Ajoute un bloc proposant une navigation au sein de vos catégories de produits
[author] => PrestaShop
[author_uri] =>
[limited_countries] => Array
(
)

[parent_class] => Module
[is_configurable] => 1
[need_instance] => 1
[active] => 1
[trusted] => 1
[currencies] =>
[currencies_mode] =>
[confirmUninstall] =>
[description_full] =>
[additional_description] =>
[compatibility] =>
[nb_rates] =>
[avg_rate] =>
[badges] =>
=>
[onclick_option] =>
[version_addons] => SimpleXMLElement Object
(
[0] => 2.9.1
)

[installed] => 1
[database_version] => 2.9.0
[interest] =>
[enable_device] => 7
)

  • Like 2

Share this post


Link to post
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
 Share

×
×
  • Create New...

Important Information

Cookies ensure the smooth running of our services. Using these, you accept the use of cookies. Learn More