Jump to content

Welcome, Guest!

By registering with us, you'll be able to discuss, share and private message with other members of our community.

  • 0
ssimard

How can I remove the module update warnings/possibility ?

Question

Hi everyone, I am now using TB on a production site and would like to keep it as-is, without updating the modules since I have a lot of overrides.

Is there a way to turn the module update warnings OFF ? Especially for the non-admin employees.

Right-now I have permissions restricted for a few people but they should be able to update some modules configs and therefore, they are seing the modules lists. I don't want them to click on update buttons thou !

Any ideas ?

Thanks. Sylvain

Share this post


Link to post
Share on other sites

8 answers to this question

Recommended Posts

  • 0

To nevertheless help a bit on this one: one can easily check whether a module uses overrides: if there's no directory override inside the folder of a module, it doesn't. If you have a shell, list them like this: ls -d modules/*/override.

And if you really want to avoid upgrades, you can edit the modules' main class, in the PHP file with the same name as the module directory. Watch out for a line like $this->version = '1.3.4'; and change this version to a larger one. Then delete files like config.xml and config_XX.xml to get them re-created automatically. This should avoid upgrade attempts until the edited, larger version is reached.

Share this post


Link to post
Share on other sites
  • 0

I made in Prestools a function for listing the overrides of a shop. When I researched it I found a wide variety of ways in which modules store their overrides. So Traumflugs method for detecting modules with overrides will detect many of them but certainly not all.

Share this post


Link to post
Share on other sites
  • 0

You should be able to just uninstall the tb updater module, then remove the condfix/xml directory that should do it.

Share this post


Link to post
Share on other sites
  • 0

Thanks Lesley, I understand the reason behind updating things but sometimes I just can't do it blindly.

Btw, the modules controllers can't be override (or maybe I just never understood how to properly do it), you can just override the root php file if I remember well. In some cases, I had to do some fixes in classes directly in the modules folder.

Share this post


Link to post
Share on other sites
  • 0

@ssimard you can override module core files, see this http://nemops.com/override-prestashop-modules-core/

Share this post


Link to post
Share on other sites
  • 0

I guess what I was saying is updates are triggered by that module, removing that module and those files takes away the module update capability

Share this post


Link to post
Share on other sites
  • 0

In some cases, I had to do some fixes in classes directly in the modules folder.

Well, if you provide these fixes to the community, they'll get added to official sources. Which allows you to upgrade and benefits everybody. Can be a pull request, a link to a commit, a patch by email, whatever is convenient for you.

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

×
×
  • Create New...