Jump to content

Custom Module Upgrade file not detected in BO / I dont see upgrade button


stifler97
 Share

Recommended Posts

Hi community. I am a prestashop module developer.
I was working on our module and needed to make an upgrade for our module.
I have done this earlier on other modules.
Its like doing these steps:

1- check the current version of module in your module root file. Its like this:

$this->version = '2.4.0';

 

2- Add a new file in this path of module root folder
 

<module-root>/upgrade/Upgrade-2.4.1.php	


3- Add an upgrade function like this:
 

if (!defined('_PS_VERSION_')) {
    exit;
}

function upgrade_module_2_4_1($module)
{
    //my code goes here

    return true;
}


4- Open Module Manager in BO and look up for the module, then click upgrade button.

BUT I DONT SEE ANY UPGRADE BUTTON

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