Jump to content

Get an "Update it!" button next to my module (auto update)


theillo

Recommended Posts

What am I doing wrong?

 

The documentation describes it pretty well:

 

http://doc.prestashop.com/display/PS15/Auto-updating+modules

 

  • My module has a $this->version in the constructor
     $this->version = '1.0'; 
  • I made a subfolder in the folder of my module, called upgrade
  • In the upgrade folder there is a file, called Upgrade-1.1.php
  • The code of the file is as follows:
<?php

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

function upgrade_module_1_1($module)
{
	//making changes to my DB		
				
	return true;
}

Yet, I have no "Update it!" button next to my module. What am I doing wrong? Is this only available to dev's who publish via addons.prestashop? I also tried filename "Install-1.1.php" still didn't work.

 

I need to update my DB without deleting the DB (which is what uninstalling and re-installing would do)

Link to comment
Share on other sites

What am I doing wrong? Is this only available to dev's who publish via addons.prestashop?

Yes, it only applies to modules purchased through the addons store that have valid upgrades available.

 

You can still utilize the upgrade process by creating the appropriate upgrade files, and the module will be upgrade automatically when you upload the new module file using the back office.

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