Skip to content

v1.8.1 — PrestaShop 9 area base pages, per-suite version

Latest

Choose a tag to compare

@PrestaEdit PrestaEdit released this 28 Sep 14:27
· 158 commits to main since this release

Fix release for two defects in 1.8.0. Upgrade if you run PrestaShop 9 or pin a version per suite. (#70)

Fixes

  • importPage('FrontOffice') works again on PrestaShop 9. 1.8.0 dropped the area base pages Pages\v9\FrontOffice\Page and Pages\v9\BackOffice\Page. On PS 9 this failed with Class "…\Pages\v9\FrontOffice\Page" not found, which made the new VisualTestsSuite unusable there, and broke every custom page extending either class. Both are back.
  • A suite's own PrestaShop version now applies. The $psVersion property and onVersion() announced in 1.8.0 changed nothing: the suite kept the version from PRESTAFLOW_PS_VERSION. The version is now resolved when the suite loads its globals, and again when onVersion() is called, so the pages imported next come from the pinned namespace. Resolution order: onVersion() > $psVersion > PRESTAFLOW_PS_VERSION > 8.1.0.

Upgrade

composer update prestaflow/php-library:^1.8.1

No API change. Drop-in patch release.