PrestaShop Core Weekly - Week 43 of 2021
An inside look at the PrestaShop codebase
This edition of the Core Weekly report highlights changes in PrestaShop’s core codebase from Monday 25th to Sunday 31th of October 2021.
Releases
- Autoupgrade module: v4.13.0
- Customtext module: v4.2.0
- Statsproduct module: v2.1.0
- Mainmenu module: v2.3.1
- Searchbar module: v2.1.2
- Viewedproduct module: v1.2.2
- Psssst: 1.2
A quick update about PrestaShop’s GitHub issues and pull requests:
- 49 new issues have been created in the project repositories;
- 86 issues have been closed, including 30 fixed issues on the core;
- 101 pull requests have been opened in the project repositories;
- 210 pull requests have been closed, including 129 merged pull requests.
Code changes in the ‘develop’ branch
Core
- #26408: Use
_PS_PRODUCT_IMG_DIR_
instead of_PS_PROD_IMG_DIR_
to avoid confusion withprod
anddev
env. Thank you @PululuK - #26395: PaymentModule: an array is only updated, but never queried, by @Matt75
- #26312: Remove isPresent() in PrestaShopLogger. Thank you @PrestaEdit
- #26310: Remove getJqueryPath() method. Thank you @PrestaEdit
- #26292: Remove deprecated admin/ajax.php and js/admin-categories-tree.js, by @eternoendless
- #26268: Deleting extra parameter. Thank you @christophe-rouille
- #26164: PHPStan (Level 2) on classes/, by @Progi1984
- #25794: Remove upgrade scripts in favor of autoupgrade process, by @PierreRambaud
- #25406: Add doc block and improve readability of HistoryController::getUrlToInvoice & HistoryController::getUrlToReorder. Thank you @Sinepel
- #24707: PrestashopLogger should save object type, even if object id is not set. Thank you @lmeyer1
Back office
- #26464: Use latest npm version on JS routing GA, by @NeOMakinG
- #26372: Dashboard - Correct display of the titles with panel-heading when the screen is reduced, by @khouloudbelguith
- #26353: Fix display edit country. Thank you @okom3pom
- #26241: Disable sorting on customer discount vouchers. Thank you @tegbessou
- #26215: Checked select all checkboxes if all options are checked. Thank you @tegbessou
- #26068: Fix footer from next invoice shown on invoice when exporting multiple invoices. Thank you @Ashley-Butcher
- #26060: Clean Back-office templates, part 1 - common. Thank you @Hlavtox
- #26021: Update every package-lock with npm 7, by @NeOMakinG
- #25265: Add employee in mobile menu and quickaccess on search bar on mobile migrated pages, by @NeOMakinG
- #21420: Set filters placeholder for Yes/NO & Fix bug when filters are emptied, by @Progi1984
Front office
- #26414: Use proper variable for checking category active. Thank you @Hlavtox
- #26394: Customization product text fix display. Thank you @marwachelly
- #26393: Show breadcrumbs on mobile. Thank you @alexandrebrubeyonds
- #26392: Fix Gift message bug if clicking fast. Thank you @alexandrebrubeyonds
- #26380: Fix Simple anchors do not work. Thank you @alexandrebrubeyonds
- #26347: Fix for issue with customizable products returns. Thank you @Prestaworks
- #26285: Unify reporting of query types. Thank you @Hlavtox
- #26242: Respect display_taxes_label in ps_shoppingcart classic theme template. Thank you @tswfi
- #25972: Do not reject cart creation if no cookie, only exclude bots. Thank you @psyray
Tests
- #26473: Fix PHPStan because of GDImage, by @jolelievre
- #26443: Fix categories and cart rules tests, by @boubkerbribri
- #26437: Refactor controller tests, by @jolelievre
- #26416: Not using href as a selector on order history page, by @boubkerbribri
- #26362: Added Behat Tests for Language Domain, by @Progi1984
- #26295: Functional tests - Fix and add some steps to ’ Customer block & Product block’ on create order page BO. Thank you @nesrineabdmouleh
- #24162: Added Behat Tests for WebService, by @Progi1984
Code changes in the ‘1.7.8.x’ branch
Core
Back office
- #26447: Fix Attributes with comma not displayed in Stock management. Thank you @alexandrebrubeyonds
- #26365: Fix display of address format in Countries page. Thank you @marwachelly
- #26227: BO: Fix badly displayed buttons. Thank you @hibatallahAouadni
- #26145: [BO] Fix time-val input buttons to change calendar date-range. Thank you @mparvazi
- #25046: In MultiShop, In new Category, display the top category if there are more one root category, by @Progi1984
Front office
- #26434: Fix adding to cart with the click on the icon, by @kpodemski
- #26410: Backport Fix Simple anchors do not work #26380. Thank you @alexandrebrubeyonds
- #26289: Fix disabled attribute on checkout on classic, by @NeOMakinG
Code changes in modules, themes & tools
GDPR module
- #149: Bump to 1.3.0. Thank you @okom3pom
- #148: Fix getAdminLink 3rd argument, by @atomiix
- #145: Add breadcrumb link. Thank you @PululuK
- #122: Correct the customer details page link - PS 1.7.7.0. Thank you @moncef-essid
Psssst Module analyzer
Changes in developer documentation sources
- #1202: Fix assign custom slip vars. Thank you @alexandrebrubeyonds
- #1201: Redirect maintainer’s guide to the project’s site, by @eternoendless
- #1199: Remove addons advertising in themes introduction in 1.7. Thank you @jf-viguier
- #1198: Making directions more clear for 8. Thank you @Wrenbjor
- #1181: Update hook component documentation, by @eternoendless
- #1176: Fix Strategy page, by @matks
- #1137: Update URL of author inside the author configuration. Thank you @PrestaEdit
Search Bar module
- #41: Fix missing parameter for upgrade, by @PierreRambaud
- #40: Release 2.1.2, by @PierreRambaud
- #39: Do not use hooks top and header, use displayTop and displayHeader instead, by @PierreRambaud
Customer reassurance block module
- #302: Bump sass-loader from 12.2.0 to 12.3.0. Built by @dependabot[bot]
- #300: Bump css-loader from 6.4.0 to 6.5.0. Built by @dependabot[bot]
- #299: Bump webpack from 5.59.1 to 5.60.0. Built by @dependabot[bot]
Faceted search module
- #540: Bump sass-loader from 12.2.0 to 12.3.0. Built by @dependabot[bot]
- #539: Bump css-loader from 6.4.0 to 6.5.0. Built by @dependabot[bot]
- #538: Bump webpack from 5.59.1 to 5.60.0. Built by @dependabot[bot]
- #537: Fix Wrong count of products with price search. Thank you @alexandrebrubeyonds
- #532: Replace deprecated displayPrice methods. Thank you @Hlavtox
Sales and orders statistics module
- #23: Merge master, by @Progi1984
- #21: Bump version to 2.1.0, by @Progi1984
- #20: Update compatibility. Thank you @Hlavtox
- #18: Fixed Refunds in Total Sales Calculation, by @Progi1984
presthubot
- #39: Command
slack:notifier
: Remove modules with PR release from modules which need release, by @Progi1984 - #38: Remove command
github:review:report
, by @Progi1984
PrestaShop Specifications
- #256: Disabled Algolia Search, by @Progi1984
- #255: Bump Theme to the last version, by @Progi1984
- #254: Create specs for attributes. Thank you @Saimis777
- #253: Add files via upload. Thank you @Saimis777
PrestaShop test scenarios
- #7: Disabled Algolia Search, by @Progi1984
- #6: Bump Theme to the last version, by @Progi1984
Auto Upgrade module
- #432: Release 4.13.0, by @PierreRambaud
- #431: Bump to 4.13.0, by @PierreRambaud
- #429: Add hook regarding #26239 on PrestaShop (dashboardZoneThree). Thank you @intraordinaire
- #426: Add SQL query regarding #26259 on PrestaShop. Thank you @PrestaEdit
User documentation landing page
- #147: chore(deps-dev): bump sass from 1.43.3 to 1.43.4. Built by @dependabot[bot]
- #146: fix(deps): bump core-js from 3.18.3 to 3.19.0. Built by @dependabot[bot]
- #145: chore(deps-dev): bump eslint-plugin-nuxt from 1.0.0 to 3.0.0. Built by @dependabot[bot]
Wishlist block module
- #138: FO: Fix the container issue. Thank you @hibatallahAouadni
- #136: Fix wrong class naming in Share.vue. Thank you @a-pare
New 8.0.0 Front-office theme
- #95: Add number input and product thumbnail slider behavior, by @NeOMakinG
- #94: Do not display unnecessary li tag ( ps_categorytree ). Thank you @okom3pom
- #93: Fix working HMR for not vhost local environment . Thank you @Oksydan
Main menu module
- #57: Release 2.3.1, by @PierreRambaud
- #56: Do not use hook alias and bump version to 2.3.1, by @PierreRambaud
Viewed products block module
- #22: Release 1.2.2, by @PierreRambaud
- #21: Bump to 1.2.2, by @PierreRambaud
- #20: Do not use hook alias, by @PierreRambaud
The PrestaShop open source project
- #70: Update style & add Maintainer’s guide, by @eternoendless
- #69: Fix usergroup ressources . Thank you @okom3pom
Available quantities statistics module
Product Comments module
Contact Form module
Custom text module
- #65: Adds PHPDoc and refactor bitwise usage, by @Matt75
- #64: Release 4.2.0, by @PierreRambaud
Product details statistics module
- #26: Release 2.1.0, by @PierreRambaud
Category tree links module
Best-selling products statistics module
Best categories statistics module
Best vouchers statistics module
Stats Dashboard module
Wire payment module
Check payment module
- #52: Replace deprecated displayPrice methods. Thank you @Hlavtox
- #51: Respect display_taxes_label setting when showing amount. Thank you @tswfi
Cash on delivery module
Dashboard Trends module
- #46: Replace deprecated displayPrice methods. Thank you @Hlavtox
- #34: Fixed Refunds in Total Sales Calculation, by @Progi1984
Dashboard Products module
- #35: Replace deprecated displayPrice methods. Thank you @Hlavtox
- #34: Fix bad display in the Dashboard page, by @khouloudbelguith
Email Alerts module
Pages not found module
- #16: Do not use hook top alias, use displayTop, by @PierreRambaud
Shopping cart module
- #79: Do not use legacy hook header alias , use displayHeader instead, by @PierreRambaud
Issues Bot
- #27: Update kanban workflow, by @matthieu-rolland
Architecture Decision Records repository
- #22: Update 0014-drop-the-no-use-of-legacy-in-new-code-restriction.md, by @kpodemski
Catalog statistics module
- #17: Release 2.0.2, by @Progi1984
Paymentexample module
- #11: Do not set use statement, by @Quetzacoalt91
Webservices PHP Client
- #43: Allow price parameter in request URL for price management. Thank you @matthieume
Thank you to the contributors whose pull requests were merged since the last Core Weekly Report: @jolelievre, @okom3pom, @atomiix, @alexandrebrubeyonds, @NeOMakinG, @PierreRambaud, @dependabot[bot], @eternoendless, @Progi1984, @boubkerbribri, @Saimis777, @hibatallahAouadni, @kpodemski, @Hlavtox, @jf-viguier, @PululuK, @intraordinaire, @Wrenbjor, @Matt75, @marwachelly, @Oksydan, @khouloudbelguith, @a-pare, @Prestaworks, @PrestaEdit, @nesrineabdmouleh, @christophe-rouille, @tswfi, @tegbessou, @matthieu-rolland, @matks, @mparvazi, @Ashley-Butcher, @psyray, @Sinepel, @lmeyer1, @moncef-essid, @Quetzacoalt91, @matthieume!
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!