From 1f030e613943565b0836ab2313a89cbff2f38b24 Mon Sep 17 00:00:00 2001 From: Daniel Hlavacek Date: Wed, 18 Jan 2023 12:42:00 +0100 Subject: [PATCH 1/8] Update phpstan-latest.neon --- tests/phpstan/phpstan-latest.neon | 4 ---- 1 file changed, 4 deletions(-) diff --git a/tests/phpstan/phpstan-latest.neon b/tests/phpstan/phpstan-latest.neon index 6b992b4..c604f7c 100644 --- a/tests/phpstan/phpstan-latest.neon +++ b/tests/phpstan/phpstan-latest.neon @@ -1,6 +1,2 @@ includes: - %currentWorkingDirectory%/tests/phpstan/phpstan.neon - -parameters: - ignoreErrors: - - '#Parameter \#1 \$share of static method ShopCore::addSqlRestriction\(\) expects int, string given.#' From 183c95a512469194ff70ca3fbd481dc317b19b4f Mon Sep 17 00:00:00 2001 From: Daniel Hlavacek Date: Tue, 17 Jan 2023 18:33:57 +0100 Subject: [PATCH 2/8] Delete logo.gif --- logo.gif | Bin 936 -> 0 bytes 1 file changed, 0 insertions(+), 0 deletions(-) delete mode 100644 logo.gif diff --git a/logo.gif b/logo.gif deleted file mode 100644 index 4364683de6324868dac3cb86c247291b1ec0f391..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 936 zcmZ?wbhEHb6krfw_|5ZhLQo{ew03_qMs*-Q{v`pVxym4iDBjJlNv)V3*f}-QJIP z`9Ij>^I)Iv<2`{-cLhD&7xv(Q|DywekB>$^J|6Y-V8qkIkx!3AKRy}v;$Ym<?#t78uTB=eJYDeeRMCsG1uxDNzBpg_;#|?obH%UE zl)pS*`r;xGmA|}D@$zETi%XTSFV?@hRQu|3-K$IWFR#?Ty4v{qO7rV0EpIM0y}8i? z_UI@v8UpAcp!k!8k%8eqgAPanlqVQCS{eRx%6M#8;K-rb!ooP|aHC@*f1kod#U>U3 zC1tsP8bOHNJ}3|2ZYcd4oyc}VjxY#5c+S8k Nt|zj<%0z*|8UPvr%S`|P From a21c1e18901b12c71bced064c09b243143526c93 Mon Sep 17 00:00:00 2001 From: leemyongpakvn <3759923+leemyongpakvn@users.noreply.github.com> Date: Tue, 20 Jun 2023 18:04:57 +0700 Subject: [PATCH 3/8] Update build-release.yml with Organization config --- .github/workflows/build-release.yml | 61 ++--------------------------- 1 file changed, 3 insertions(+), 58 deletions(-) diff --git a/.github/workflows/build-release.yml b/.github/workflows/build-release.yml index 2e1697a..28ba23f 100644 --- a/.github/workflows/build-release.yml +++ b/.github/workflows/build-release.yml @@ -2,61 +2,6 @@ name: Build on: [push, pull_request] jobs: - deploy: - name: build dependencies & create artifact - runs-on: ubuntu-latest - steps: - - name: Checkout - uses: actions/checkout@v2.0.0 - - name: Install composer dependencies - run: composer install --no-dev -o - - name: Clean-up project - uses: PrestaShopCorp/github-action-clean-before-deploy@v1.0 - - name: Prepare auto-index tool - run: | - composer global require prestashop/autoindex - - name: Generate index.php - run: | - ~/.composer/vendor/bin/autoindex - - name: Create & upload artifact - uses: actions/upload-artifact@v1 - with: - name: ${{ github.event.repository.name }} - path: ../ - update_release_draft: - runs-on: ubuntu-latest - needs: [deploy] - if: github.event_name == 'push' && github.event.ref == 'refs/heads/master' - steps: - - name: Download artifact - uses: actions/download-artifact@v1 - with: - name: ${{ github.event.repository.name }} - - id: release_info - uses: toolmantim/release-drafter@v5 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Prepare for Release - run: | - cd ${{ github.event.repository.name }} - zip -r ${{ github.event.repository.name }}.zip ${{ github.event.repository.name }} - - name: Clean existing assets - shell: bash - run: | - curl -fsSL https://github.com/github/hub/raw/master/script/get | bash -s 2.14.1 - assets=`bin/hub api -t repos/${{ github.repository }}/releases/${{ steps.release_info.outputs.id }}/assets | awk '/\].url/ { print $2 }'` - for asset in $assets - do - bin/hub api -X DELETE $asset - done - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Publish to GitHub Release - uses: actions/upload-release-asset@v1.0.1 - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - with: - upload_url: ${{ steps.release_info.outputs.upload_url }} - asset_path: ./${{ github.event.repository.name }}/${{ github.event.repository.name }}.zip - asset_name: ${{ github.event.repository.name }}.zip - asset_content_type: application/zip \ No newline at end of file + build-and-release-draft: + name: Build & Release draft + uses: PrestaShop/.github/.github/workflows/build-release.yml@master From 9b1f8c96b328fc2c84b909c6ea8d9ddfebce1182 Mon Sep 17 00:00:00 2001 From: florine2623 <16019289+florine2623@users.noreply.github.com> Date: Thu, 6 Jul 2023 15:58:10 +0200 Subject: [PATCH 4/8] Update README.md --- README.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/README.md b/README.md index 8d917e2..1579d12 100644 --- a/README.md +++ b/README.md @@ -4,6 +4,10 @@ Enrich your stats, add graphics presenting the evolution of your sales and orders. +## Compatibility + +PrestaShop: `1.7.6.0` or later + ## Reporting issues You can report issues with this module in the main PrestaShop repository. [Click here to report an issue][report-issue]. From bfe71826e9d3eca45dd816d96d536e4b8c7016dd Mon Sep 17 00:00:00 2001 From: Thomas Nabord Date: Mon, 27 Oct 2025 15:06:58 +0000 Subject: [PATCH 5/8] Remove space before PHP tag --- upgrade/upgrade-2.1.0.php | 1 - 1 file changed, 1 deletion(-) diff --git a/upgrade/upgrade-2.1.0.php b/upgrade/upgrade-2.1.0.php index 98caa50..43c27d9 100644 --- a/upgrade/upgrade-2.1.0.php +++ b/upgrade/upgrade-2.1.0.php @@ -1,4 +1,3 @@ - Date: Fri, 31 Oct 2025 15:04:45 +0100 Subject: [PATCH 6/8] Update statssales.php --- statssales.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/statssales.php b/statssales.php index 303e49a..aa09ab7 100644 --- a/statssales.php +++ b/statssales.php @@ -54,7 +54,7 @@ public function __construct() { $this->name = 'statssales'; $this->tab = 'administration'; - $this->version = '2.1.0'; + $this->version = '2.1.1'; $this->author = 'PrestaShop'; $this->need_instance = 0; From 1030f63d2d366f37a4a8fb285b2fa6d77cae1ad4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Hlav=C3=A1=C4=8Dek?= Date: Fri, 31 Oct 2025 15:05:38 +0100 Subject: [PATCH 7/8] Update config.xml --- config.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/config.xml b/config.xml index b5e1d31..0fb7dfa 100644 --- a/config.xml +++ b/config.xml @@ -2,7 +2,7 @@ statssales - + From 261ba745b441227026edfd9c8772962876722014 Mon Sep 17 00:00:00 2001 From: Thomas Nabord Date: Fri, 31 Oct 2025 15:57:21 +0000 Subject: [PATCH 8/8] Bump version of actions in CI --- .github/workflows/php.yml | 27 ++++----------------------- 1 file changed, 4 insertions(+), 23 deletions(-) diff --git a/.github/workflows/php.yml b/.github/workflows/php.yml index c19bfb3..6912ea8 100644 --- a/.github/workflows/php.yml +++ b/.github/workflows/php.yml @@ -8,7 +8,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout - uses: actions/checkout@v2.0.0 + uses: actions/checkout@v5 - name: PHP syntax checker 5.6 uses: prestashop/github-action-php-lint/5.6@master @@ -39,13 +39,7 @@ jobs: php-version: '7.4' - name: Checkout - uses: actions/checkout@v2.0.0 - - - name: Cache dependencies - uses: actions/cache@v2 - with: - path: vendor - key: php-${{ hashFiles('composer.lock') }} + uses: actions/checkout@v5 - name: Install dependencies run: composer install @@ -58,6 +52,7 @@ jobs: name: PHPStan runs-on: ubuntu-latest strategy: + fail-fast: false matrix: presta-versions: ['1.7.6', '1.7.7', '1.7.8', 'latest'] steps: @@ -67,21 +62,7 @@ jobs: php-version: '7.4' - name: Checkout - uses: actions/checkout@v2.0.0 - - # Add vendor folder in cache to make next builds faster - - name: Cache vendor folder - uses: actions/cache@v1 - with: - path: vendor - key: php-${{ hashFiles('composer.lock') }} - - # Add composer local folder in cache to make next builds faster - - name: Cache composer folder - uses: actions/cache@v1 - with: - path: ~/.composer/cache - key: php-composer-cache + uses: actions/checkout@v5 - run: composer install