0
votes

Some modules can be auto-updated in backoffice by clicking the update button. However if the module is from an other source than prestashop itself (e.g. github) the module needs - afaik - to be updated manually.

So how should one handle updates?

Download ZIP and

  1. unzip it over the corresponding modules folder (/modules/acme/)
  2. unzip and rsync it to /modules/acme (rsync -trv /tmp/acme /modules)
  3. Same as 2 but with --delete
  4. Delete the folder completely and unzip the new one in place like rm -rf /modules/acme and cp -a /tmp/acme /modules/acme
  5. Others ...

Side note: what about the config.xml and possibly other generated files?

Same applies for theme updates, how to handle these?

Concerning current version Prestashop 1.7+.

2

2 Answers

1
votes

If the module upgrade is made correctly (you can check if module version is updated in main module class constructor and uses upgrade scripts in upgrades folder and files inside the module) you can unzip over it. Then visit the modules list page in backend and module upgrade will run. config.xml is auto (re)generated and used only for optimizing module list loading in the same backend page - it has no effect on module behaviour itself.

For themes you can also just unzip over the last one.

When I am in doubt with any upgrades I make a development copy of the store and do upgrades there first and see if everything is ok then do upgrades on live instance.