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.
Avoid repeated database loads for grids with default filters — on GitHub
Every record and count read appended the default filter groups to the same search criteria, which changed the criteria hash and fetched the grid data again, including the count read for pagination. The incoming criteria are now cloned before default bindings are applied and prefetch events are dispatched, so repeated reads share one result.
Fix birthday email copy-to config path and per-recipient BCC — on GitHub
The “Send Email Copy To” setting was read from mfbirthdayemail/email//copy_to, a path with a double slash that never resolves, so no copy was ever sent. The loop over the addresses also passed the whole array to addBcc() instead of the current address. The path now matches system.xml and each trimmed address is added as its own BCC.
Encode current_url in the suggested store request — on GitHub
The suggestion popup appended config.current_url to the REST URL without encoding, so on a page with a query string such as ?color=red&size=m everything after the first & became a separate parameter and the store was resolved for a truncated URL. The value is now wrapped in encodeURIComponent().
Emit currencyCode for the cart and checkout credit widget — on GitHub
The cart and checkout credit widgets read creditWidget.currencyCode from the checkout config, but ConfigProvider emitted the value as currency, so the widget received an undefined currency sign. The provider now emits currencyCode, matching the mini cart config.
Match YouTube URLs with query string, fragment or leading parameters — on GitHub
URLs such as youtu.be/ID?si=..., embed/ID?start=42, watch?feature=share&v=ID and m.youtube.com did not match, so the module silently kept the original youtube.com URL. The pattern now accepts them, and URLs that matched before convert identically.
Contain Google Analytics failures when exporting a processing order — on GitHub
AnalyticsService::handleProcessingOrder() called the analytics caller without a try/catch from the sales_order_save_after observer, so a Google Analytics timeout surfaced as an exception during order save. The call is now wrapped, the failure is logged with the increment id, and the order stays exportable.
Fix Redirect to Success Page showing the popup instead of redirecting — on GitHub
With the success display mode set to “Redirect to Success Page”, a successful submit showed the popup. onSuccess read success_mode and formSuccessUrl from this instead of this.options, so the redirect branch was never taken. The branch now reads both values from this.options, as the form branch already does.
Skip unknown module dependencies and modules with unparsable registration — on GitHub
info:dependencies:show-removable aborted with Module name for composer name "..." not found. when a module required a */module-* package that is not a registered module, and an unparsable registration.php mapped the module to the previously processed name. Unknown packages are now skipped with a verbose notice, and the failed module is skipped.
Stop sending legacy AfterPay shipping costs twice — on GitHub
With the legacy AfterPay method, shipping went out in ShippingCosts and a second time as an extra-fees article, because the grand total reconciliation only summed article lines and read the shipping amount as a gap. The shipping field is now counted in that reconciliation, so no extra article is added.
Only merged work is listed here, and only the parts worth a comment — the full history, including everything still in review, lives on GitHub .
Config::formatPrice()returnedround($amount, 2) * 100as a float, so requests carried amounts such as114.99999999999999for 1.15. The method now rounds to an integer number of cents and declares anintreturn type.