From d911199b47be88f4097b480f1cbee29fe86abdc8 Mon Sep 17 00:00:00 2001 From: Progi1984 Date: Wed, 15 Jul 2026 16:28:04 +0200 Subject: [PATCH] Support for PrestaShop 8.2.x, 9.1.x, develop & Cleanup of all dead code --- .github/PULL_REQUEST_TEMPLATE.md | 2 +- README.md | 4 ++-- gsitemap.php | 4 ++-- 3 files changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/PULL_REQUEST_TEMPLATE.md b/.github/PULL_REQUEST_TEMPLATE.md index 4d91805..d8d29fa 100644 --- a/.github/PULL_REQUEST_TEMPLATE.md +++ b/.github/PULL_REQUEST_TEMPLATE.md @@ -4,7 +4,7 @@ Thank you for contributing to the PrestaShop project! Please take the time to edit the "Answers" rows below with the necessary information. Check out our contribution guidelines to find out how to complete it: -https://devdocs.prestashop.com/1.7/contribute/contribution-guidelines/#pull-requests +https://devdocs.prestashop.com/8/contribute/contribution-guidelines/#pull-requests ------------------------------------------------------------------------------> | Questions | Answers diff --git a/README.md b/README.md index e25f603..0c89d33 100644 --- a/README.md +++ b/README.md @@ -11,7 +11,7 @@ Generates an XML sitemap for your shop and keeps it up to date. Compatible with ## Compatibility -PrestaShop: `1.7.1.0` or later +PrestaShop: `8.2.0` or later ## Multistore compatibility @@ -42,5 +42,5 @@ This module is released under the [Academic Free License 3.0][AFL-3.0] [report-issue]: https://github.com/PrestaShop/PrestaShop/issues/new/choose [prestashop]: https://www.prestashop-project.org/ -[contribution-guidelines]: https://devdocs.prestashop-project.org/1.7/contribute/contribution-guidelines/project-modules/ +[contribution-guidelines]: https://devdocs.prestashop-project.org/8/contribute/contribution-guidelines/project-modules/ [AFL-3.0]: https://opensource.org/licenses/AFL-3.0 diff --git a/gsitemap.php b/gsitemap.php index fd6aa32..b558ea7 100755 --- a/gsitemap.php +++ b/gsitemap.php @@ -68,7 +68,7 @@ public function __construct() $this->displayName = $this->trans('Google sitemap', [], 'Modules.Gsitemap.Admin'); $this->description = $this->trans('Generates an XML sitemap for your shop and keeps it up to date. Compatible with all major search engines.', [], 'Modules.Gsitemap.Admin'); $this->ps_versions_compliancy = [ - 'min' => '1.7.1.0', + 'min' => '8.2.0', 'max' => _PS_VERSION_, ]; $this->confirmUninstall = $this->trans('Are you sure you want to uninstall this module?', [], 'Admin.Notifications.Warning'); @@ -91,7 +91,7 @@ public function __construct() */ protected function isManufacturerListingEnabled() { - return (bool) Configuration::get(version_compare(_PS_VERSION_, '1.7.7.0', '>=') ? 'PS_DISPLAY_MANUFACTURERS' : 'PS_DISPLAY_SUPPLIERS'); + return (bool) Configuration::get('PS_DISPLAY_MANUFACTURERS'); } /**