Jump to content

Uninstall inside the configure


MackStores.Com

Recommended Posts

30 minutes ago, Knowband Plugins said:

No. Create your own control & use the following code the uninstall the module.


$module_name = 'MODULE_NAME';
$module = Module::getInstanceByName($module_name);
if (Module::isInstalled($module)) {
     $module->uninstall();
}

I hope it will help.

 

Thanks i know this but i was asking got prestashop as a whole for not so code friendly people. The uninstall should on the top bar of the configure section  by default in every module. 

Link to comment
Share on other sites

15 hours ago, PrestaRalph said:

That sounds like a terrible idea!

Users would accidentally be uninstalling their modules from a mobile device all the time!

i am talking about the back end top bar and besides if this was the issue then users using android and ios will be uninstall accidentally all the time. with ios  clicking the wrong x button and in andrioid  clinking the wrong uninstall button. besides i was talking about back end access to the app and then on the top bar uninstall with confirmation. its easier more efficient when you are setting up new shop and trying out a lot of apps.

Link to comment
Share on other sites

Read my post again.

It would clog the top bar and mobile users will accidentally click the button because there is not enough spacing.

Besides, adding single use buttons to a menu that is meant for every day use is a terrible idea as well. I think the current design is fine as it is. Just my $.02

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