Open Source
Shaping the tools I use every day, one pull request at a time
A hand-picked selection: only the contributions worth reading about, not every merged pull request. Articles about Magento and Adobe Commerce are on the blog.
Return HTTP 429 with Retry-After when a GraphQL request is rate limited — on GitHub
A rate limited request ended with HTTP 500 because Magento’s GraphQL controller picks the status and only 2.4.9 lets an exception choose it. A plugin on GraphQl::dispatch() now sets 429, Retry-After and no-cache headers when the limiter denied the request, on every supported Magento version.
Validate tax:rates:edit input and keep decimals in updated titles — on GitHub
Running tax:rates:edit without --rate cast the missing option to 0.0 and saved it to every given rate, exiting with success. --ids and --rate are now validated before anything is loaded, and --update-titles keeps decimals, so --rate=7.5 no longer produces VAT 7%.
Fix DivisionByZeroError on the cart page without a free shipping minimum — on GitHub
With the core free shipping carrier inactive and the module’s own minimum left empty, the minimum order total resolved to 0 and the completion percentage divided by it, throwing DivisionByZeroError on the cart page. The progress bar now handles an unconfigured minimum instead of calculating a percentage.
Fix swapped created_at and updated_at in the Last order details variable — on GitHub
GetCart\Index::getLastOrderDetails() filled %createdAt% from the order’s updated_at and %updatedAt% from created_at, so the LiveChat widget showed the two times the wrong way round. The replacement values are swapped back and a unit test covers the mapping.
Include store view and customer group in the FAQ ajax cache key — on GitHub
The ajax controller cached the rendered FAQ group HTML under a key that only held the group ID, while the block filters FAQs by store view and customer group. The first render was served to everyone, so restricted FAQs reached other customer groups and translated content showed on the wrong store view. The cache key now also contains the store ID and the customer group ID.
Fall back to auto font size when the configured value is empty — on GitHub
An empty font size field produced font-size: px in the template and px in the GraphQL font_size field. The value was cast to a string before the null check, so the auto fallback could never run. It now compares the trimmed value with an empty string.
Read Postcode.nl API credentials at store scope — on GitHub
The API key and secret are editable at website and store scope, but PostcodeManagement read them without a scope, so per-website values were ignored and the default was always sent to Postcode.nl. They are now read with ScopeInterface::SCOPE_STORE.
Fix undeclared objectManager property in ConflictList block — on GitHub
The block declared $objectmanager but its constructor assigned $this->objectManager, creating a dynamic property that is deprecated since PHP 8.2. In developer mode Magento turns that into an exception and the admin page failed to render. The declaration is renamed to match.
Require PHP 8.3 or newer and reject repeated-digit CNPJ — on GitHub
The module uses typed class constants but declared no PHP requirement, so Composer installed it on PHP versions where the files do not parse. A php constraint is added. The CNPJ validator also accepted 00000000000000, and now rejects numbers made of one repeated digit as the CPF validator already did.
Only merged work is listed here, and only the parts worth a comment — the full history, including everything still in review, lives on GitHub .
The SEPA QR payload always carries the currency
EUR, but the renderer filled the amount from the order grand total in the order currency without checking it. A 100.00 PLN or CHF order showed a code asking the customer to transfer EUR 100.00. The renderer now skips the QR code for orders that are not in EUR.