Skip to content
Back to skills

Prestashop Upgrade Toolbox Modules

ASecurity

Carry a legacy PrestaShop shop's modules and overrides onto PrestaShop 9 — inventory every installed module and every leftover module folder, write a decision per module (keep, update, rewrite as a module + hook, replace, drop), port them on the target, and prove that every module is decided and every module that encashes, writes or notifies works by its effect. Payment and shipping modules are always kept, updated or replaced from the PrestaShop Marketplace, never rewritten; the rewrites the...

  • 6 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 1, 2026
developmentgophpdatabase

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add PrestaShopCorp/PrestaShop-Upgrade-Toolbox --skill prestashop-upgrade-toolbox-modules --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Prestashop Upgrade Toolbox Modules?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Prestashop Upgrade Toolbox Modules
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/prestashopcorp-prestashop-upgrade-toolbox-modules/badge)](https://www.skillsdirectory.com/skills/prestashopcorp-prestashop-upgrade-toolbox-modules)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: prestashop-upgrade-toolbox-modules
description: >
  Carry a legacy PrestaShop shop's modules and overrides onto PrestaShop 9 — inventory every
  installed module and every leftover module folder, write a decision per module (keep, update,
  rewrite as a module + hook, replace, drop), port them on the target, and prove that every
  module is decided and every module that encashes, writes or notifies works by its effect.
  Payment and shipping modules are always kept, updated or replaced from the PrestaShop
  Marketplace, never rewritten; the rewrites themselves are done with
  prestashop-upgrade-toolbox-module-rewrite. Use when the audit has listed the modules and the data has landed
  on the target; when the upgrade tool uninstalled or replaced a module silently; when a payment
  or carrier module is missing or unexpected; when legacy behaviour in an override must become a
  module. Covers phase 5. NOT for the audit itself (see prestashop-upgrade-toolbox-audit), NOT for the
  data (see prestashop-upgrade-toolbox-data).
---

# Modules and overrides (phase 5)

Shared context, topology and conventions: **`prestashop-upgrade-toolbox-core`**. Read it first.

**Dossier:** write as you go in `migration/02-modules.md`, and what a reader must know in `migration/page/02-modules.html` (`prestashop-upgrade-toolbox-core`, "The migration dossier").

Every module of the old shop ends with a written decision — **keep, update, rewrite, replace or
drop** — and dropping is a decision like the others.

**Payment and shipping modules are never rewritten.** Their decision is keep, update to the
vendor's version for the target, or replace with a module from the PrestaShop Marketplace or the
provider's official module. When none exists for the target, the merchant chooses another provider
or an integrator. The same default holds for anything the Marketplace already sells (connectors,
tracking): buying comes first, a rewrite needs a written reason. Nothing is replaced implicitly, and a module
that encashes, writes somewhere or notifies someone is proven by its effect, not by its presence.

## 1. The inventory — measured, then decided

Start from the audit's cards (`prestashop-upgrade-toolbox-audit`, workstream C, and the modules of
production's served fingerprint). The inventory has two parts:

- **every installed module** (`<prefix>module`), with what it touches: hooks it is attached to
  and on which shop, its own tables and their most recent rows, its configuration keys, the
  scheduled jobs or URLs that call it, the third parties it talks to and the settings held on
  their side;
- **every folder of `modules/` that is not installed** — the leftovers of years of trials. Each
  one gets a decision too (usually: dropped, not carried), because a folder copied over is code
  served from the new shop.

The decisions are written in `02-modules.md` (one row per module and per leftover folder: role,
decision, who decided and when) and, for the control, in `module-decisions.tsv` in the
`state_diff.py` decisions format — one line per module of the source:

```
modules	-	<name>|*	<decision in words: kept as …, replaced by …, rewritten as …, dropped because …>	<who, date>
modules	+	<name>|*	<why it is on the target: the kept module's new version, the replacement…>	<who, date>
```

The gate compares the source's module list with the new shop's (`state_diff.py compare --only
modules`): every module that changed — and between 1.6 and 9 every kept module changes version —
needs its line, and a line that matches nothing is refused as stale. `STATUS: decided` means
100 % of the modules decided.

How to decide each one — the five decisions, the questions to ask in order, the leftover folders
and the common traps: [references/module-decision-playbook.md](references/module-decision-playbook.md).

## 2. The port

- **Keep or update** an existing module: the target-compatible version from its vendor,
  installed with `php bin/console prestashop:module install|enable|disable|uninstall <name>` or the
  back-office module manager.
- **Rewrite** legacy behaviour (an override, a script outside the dispatcher, a 1.6-only module, a
  custom integration): with **`prestashop-upgrade-toolbox-module-rewrite`** — a specification taken from
  the old shop's behaviour, a module of your own built from its skeleton, **never a core
  override**, the module's own data carried by a day-J script, the proof by effect. Never for a
  payment or shipping module.
- **Replace** with another module: the replacement is named in the decision, and its settings
  are checked against what the old module did, journey by journey.
- **Hooks that no longer exist.** Before porting, list the hooks each kept or rewritten module was
  attached to on the source and look each one up on a vanilla target: in `<prefix>hook`, or as an
  alias in `<prefix>hook_alias`, which the core resolves on its own. A hook in neither has no
  equivalent by name: pick the replacement and write it in the decision. The method and the
  queries: `prestashop-upgrade-toolbox-module-rewrite`, references/porting-legacy.md, "Hooks: which still
  exist".
- Integrations that write to third parties (ERP, feeds, SaaS) stay **disabled** until the
  cutover. Ask the provider for a test environment; when there is none, the integration runs in
  dry-run — no write sent — and its proof is the payloads it would have sent and its log.

On the first build of the target, install modules **after** the transplant: the imported
database replaces every module row, hook and setting an earlier install wrote.

**Removing the dropped modules is a script too.** A module whose folder is gone cannot be
uninstalled from the console: its rows (module, per-shop rows, hooks, tab, configuration keys)
are detached by a script, after a backup of what it removes, and replayed after every import. A
console uninstall can report a failure after doing its job, or succeed and leave orphan keys:
check the rows, not the message. A module kept but awaiting its vendor's version for the target
stays as rows and tables until it is installed, and its decision line says so — the gate reads
`stale` for it until then, which is the reminder, not a defect.

## 3. The proof — by effect

Two kinds, both in `02-modules.md`:

- **the perimeter**: modules on the payment hook and carriers offered are exactly the expected
  lists, written in advance from the source (`state_diff.py expect`, gate rows);
- **the effect**: each module that **encashes, writes somewhere or notifies** has a journey played
  to its end, with the log as proof — a real order reaching the right status with each payment
  method, the e-mail actually received, the export file actually produced, the dry-run payload of
  an integration. Presence in the module list proves nothing about any of these.
- **the prices**: the reference carts the audit computed on the source (`prestashop-upgrade-toolbox-audit`,
  business workstream) are computed again on the staging, product by product and in total. A rule a
  dropped module applied — a discount above an amount, a fee, a restriction — disappears with it
  and raises no error; only a cart whose total changed shows it. Every difference is re-created
  natively or decided.

## 4. On the day of the cutover

**No module is reinstalled on the day.** The target's database is reloaded from a fresh dump, and
the modules' state — rows, hooks, settings — comes back with the staging carry-over
(`prestashop-upgrade-toolbox-integrity`, cutover runbook). Three cases need more, and the rehearsal at
J-2 is where they show up; each one found there becomes a line of the runbook, so the day holds
no surprise:

1. **a table written on both sides** — a module whose settings changed in staging while production
   kept writing customer data into the same table: the carry-over stops on it, and a person
   decides;
2. **a data conversion of the module's own** — a script that moves reviews, points or wish lists
   from the old module to the new one: the fresh database has not run it, so it is replayed on the
   day. The decisions table says which modules have one ("day-J script" column);
3. **a module updated during acceptance** whose update changed its tables: the fresh database
   still has the old structure, so the update is replayed — and the table structure of the staging
   and of the new production is compared on the day, expected identical, because a forgotten
   update raises no error until the module breaks later.

## Controls

This skill has no script of its own. The gate rows of `02-modules.md` are carried by scripts
from other skills:

- `state_diff.py compare --only modules` → `decided` (every module of the source has a decision)
- `state_diff.py expect` on `paymentOptions` and `carriers` → `as-expected`

Both live in `prestashop-upgrade-toolbox-integrity/scripts/`. The metric declarations and expected
lists are written per project during the inventory (section 1 above).

## Done

- `dossier.py check` at `STATUS: consistent`, with `02-modules` marked done and every gate row
  proven;
- every installed module and every leftover folder of the source with its written decision,
  `state_diff.py compare --only modules` at `STATUS: decided`;
- no payment or shipping module rewritten; every rewrite done with
  `prestashop-upgrade-toolbox-module-rewrite`, with no core override;
- every hook of a kept or rewritten module found on the target, by name or alias, or replaced in
  writing;
- every module that encashes, writes or notifies proven by a journey played to its effect, log
  cited;
- the modules with a day-J script listed, and the script replayed once on a freshly reloaded
  database.

Files in this skill

  • SKILL.md9.5 KB
  • references/module-decision-playbook.md5.2 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.