Jump to content

Uninstall module programatically


boulio971
 Share

Recommended Posts

[PS 1.6.0.14]

 

Hello,

 

I am implementing a module A. I want this module to replace another existing module B already installed on Prestashop

 

So I am looking for a way for module A to uninstall module B while installing module A.

 

How could I do it please ?

 

Thanks

 

 

Share this post


Link to post
Share on other sites

Maybe easiest to look what they call when clicking the uninstall button:

 

Example:

 

http://www.yourdomain.com/<your admin folder>/index.php?controller=AdminModules&token=16edaa36c836a97bd62f7212f54a2d80&uninstall=<your module to uninstall>&tab_module=<tab of module where it's been installed on>&module_name=s<module name>&anchor=<module name>

 

(For more examples, just right click on uninstall menu item of a module in back office->Modules->modules and click 'copy link')

 

 

Give it a try.

 

My 2 cents,

pascal.

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