This edition of the Core Weekly report highlights changes in PrestaShop’s core codebase from Monday 20th to Sunday 26th of December 2021.
General messages
Dear all, the PrestaShop maintainer team hopes that you are having a good time as the end of the year gets closer! The next Core Weekly will be published in 2022. We would like to thank you once again for being part of this community in 2021. One small step for each of you, one giant leap for the project!
This year has featured many important changes in PrestaShop and PHP.
PHP 8.0.0 was released at the end of 2020 and we have seen it slowly being adopted everywhere during 2021. The same happened for PrestaShop 1.7.7. We launched the public demos, we released PrestaShop 1.7.8 and finally we announced what we expect to happen for the future of PrestaShop. We do not forget the birth of the PHP foundation that we hope will improve greatly how the language evolves.
We hope to see more great news in 2022…
Releases
A quick update about PrestaShop’s GitHub issues and pull requests:
- 51 new issues have been created in the project repositories;
- 36 issues have been closed, including 17 fixed issues on the core;
- 64 pull requests have been opened in the project repositories;
- 80 pull requests have been closed, including 66 merged pull requests.
Code changes in the ‘develop’ branch
Core
- #27092: Deprecate stripslashes, by @kpodemski
- #27082: Fix wording about footer display in Controller class. Thank you @PrestaEdit
- #27057: Add missing smarty variable, by @atomiix
- #27004: PHPStan (Level 3) on controllers/, by @Progi1984
- #26947: Removed PrestaShop API Calls (install-modules & check-customer), by @Progi1984
- #26874: Simplify huge IF-ELSE blocks in validateOrder. Thank you @pnucci
- #26682: Remove Combination::location and quantity, by @PierreRambaud
- #26662: Remove code linked to
trackingfront
&watermark
Modules, by @Progi1984
Back office
- #27091: Return integer instead of bool into checkModulesNames(). Thank you @PrestaEdit
- #27066: Allow null for ip maintenance and maintenance message fields, by @matthieu-rolland
- #27006: Update node-sass in order to be compatible with Node 16, by @NeOMakinG
- #26994: Multistore: fix configuration value not saved for current context, by @matthieu-rolland
- #26475: Fix Combination::getIdByReference returns wrong id. Thank you @alexandrebrubeyonds
- #26024: New add product modal, by @jolelievre
- #26022: Add some more precises TypeScript interfaces, by @NeOMakinG
- #22520: Update HookRepository.php. Thank you @Prestaworks
Front office
- #27022: Do not autohook ps_featuredproducts on displayCrossSellingShoppingCart. Thank you @Hlavtox
- #26898: Display fixed index in profiling for easier navigation. Thank you @unlocomqx
- #26663: Fix position of cart crosselling hook. Thank you @Hlavtox
Tests
- #27067: Do not trust the new composer binary mode for CI, by @PierreRambaud
- #27053: Fix script to run tests. Thank you @nesrineabdmouleh
- #27046: Fix behat configuration, by @matks
- #27002: Improve exception checking in Behat tests, by @jolelievre
- #26592: PHPStan (Level 1) on tests/, by @Progi1984
Code changes in the ‘1.7.8.x’ branch
Core
- #27083: add allow-plugins entry for composer 2.2.x, by @atomiix
- #27035: Let Symfony handle kernel reboot, by @atomiix
Back office
- #27011: Use reverse translation for Tabs with no wording and domain, by @eternoendless
- #26839: Exclude directories when extracting module wordings, by @sowbiba
Front office
- #26995: Add IE11 support to FO webpack, by @NeOMakinG
Tests
Code changes in modules, themes & tools
Google Analytics module
- #107: Check if array key products exists before using it, by @atomiix
- #106: Make sure autoload file exists before loading it, by @PierreRambaud
- #104: Update sent transaction date with type sql NOW(). Thank you @gadnis
- #99: Prevent error when GoogleAnalyticEnhancedECommerce is not set. Thank you @camlafit
Dashboard Activity module
- #28: The next verison is 2.1.0 not 2.1.1, by @PierreRambaud
- #27: Remove code related to live update (
push
), by @atomiix
User documentation landing page
- #171: fix(deps): bump core-js from 3.20.0 to 3.20.1. Built by @dependabot[bot]
- #170: chore(deps-dev): bump sass from 1.45.0 to 1.45.1. Built by @dependabot[bot]
Changes in developer documentation sources
- #1259: Add Module dependencies attribute. Thank you @jf-viguier
- #1258: Add displayAdminOrderCreateExtraButtons hook 1.7.x. Thank you @jf-viguier
- #1257: Add displayAdminOrderCreateExtraButtons hook 8.x. Thank you @jf-viguier
- #1255: Update product_suppliers.md. Thank you @mullerpetr76
- #1251: Improved behat docs for new optimizations, by @jolelievre
- #1245: Adds an example to override a front/admin controller inside a module. Thank you @WebHelpersPau
Dashboard Trends module
Dashboard Products module
LocalizationFiles
- #25: Added states (regions) in gy.xml according to ISO 3166-2 and updated …. Thank you @rickygzz
- #24: Added states in ve.xml according to ISO 3166-2 and updated distance u…. Thank you @rickygzz
- #23: Added states (departments) in uy.xml according to ISO 3166-2 and upda…. Thank you @rickygzz
- #21: Added states (departments) in py.xml according to ISO 3166-2, updated…. Thank you @rickygzz
- #20: Added states (provinces) in ec.xml according to ISO 3166-2.. Thank you @rickygzz
- #18: Added states (regions) to cl.xml according to ISO 3166-2.. Thank you @rickygzz
- #15: Added NY, moved DC, added outlying areas AS, GU, MP and UM.. Thank you @rickygzz
MJML Theme Converter
Customer reassurance block module
- #329: Bump eslint from 8.4.1 to 8.5.0. Built by @dependabot[bot]
Faceted search module
- #575: Bump eslint from 8.4.1 to 8.5.0. Built by @dependabot[bot]
Featured products module
Traces
- #19: Fix notices for each non listed project. Thank you @intraordinaire
PrestaShop Specifications
- #281: Update multistore specs share orders, by @marionf
- #269: Create search-listing.md. Thank you @Saimis777
Auto Upgrade module
- #439: Fix untranslatable Tabs for shops upgraded to 1.7.8.0. Thank you @Prestaworks
- #437: Drop column id_tax_rules_group in carrier table. Thank you @jf-viguier
Modules Distribution API
Product Comments module
- #115: Remove addons suggestion in module configuration. Thank you @PrestaEdit
Wishlist block module
Thank you to the contributors whose pull requests were merged since the last Core Weekly Report: @kpodemski, @PrestaEdit, @atomiix, @PierreRambaud, @dependabot[bot], @jf-viguier, @rickygzz, @matthieu-rolland, @nesrineabdmouleh, @matks, @lmeyer1, @mullerpetr76, @Hlavtox, @eternoendless, @intraordinaire, @NeOMakinG, @Progi1984, @jolelievre, @marionf, @WebHelpersPau, @Prestaworks, @unlocomqx, @pnucci, @sowbiba, @Saimis777, @gadnis, @alexandrebrubeyonds, @mleczakm, @camlafit!
Thank you to the contributors whose PRs haven’t been merged yet! And of course, a big thank you to all those who contribute with issues and comments on GitHub!
If you want to contribute to PrestaShop with code, please read these pages first:
…and if you do not know how to fix an issue but wish to report it, please read this: How to use GitHub to report an issue. Thank you!
Happy contributin’ everyone!
Read more https://build.prestashop.com/news/coreweekly-51-2021/