Install

Works with Drupal: ^10.3 || ^11

Using Composer to manage Drupal site dependencies

Alternative installation files

Download tar.gz 75.67 KB
MD5: 9d7f97351fb8961bbe328b6a01d29c1e
SHA-1: 9f7ad45c26f88ec754dee3d6440112e52ba68070
SHA-256: ccaebd67b6256cabcc244d2af0df9d2619a198fe03c4a7774b5bdf6293c17fb1
Download zip 139.99 KB
MD5: cc5cee172e9978abac2a5a6aad8a2aa0
SHA-1: b75ef69e9a88650094c3407331d7585f9749c4a0
SHA-256: 22b7bc0a52ff095f50a6972770d3490630f9be5a0da208f4101934693dc979ba

Release notes

This release makes it possible to queue invoice confirmation emails, so the invoice PDF is no longer generated and emailed during order placement. It also requires Drupal 10.3 or later and adds a dependency on Advanced Queue.

Important: new dependency on Advanced Queue

  • Commerce Invoice now depends on Advanced Queue (drupal/advancedqueue:^1.4). Composer installs it automatically when you update the module.
  • Run the database updates (drush updb). They enable Advanced Queue and create a Commerce Invoice queue.
  • If you deploy using configuration management, export your configuration after running the updates (drush cex) and commit it. Otherwise the next config import fails, because it tries to uninstall Advanced Queue, which Commerce Invoice now requires.

Queued invoice confirmation emails

  • Invoice types have a new Queue the confirmation email setting. When it is enabled, the invoice PDF is generated and the confirmation email is sent when the queue is processed, rather than during the invoice transition. That transition often runs while an order is being placed. This keeps checkout fast and shortens the window in which off-site payment gateways can place the same order twice.
  • The setting is enabled by default for new invoice types. Existing invoice types are unchanged and keep sending emails immediately. To switch an existing type, enable the setting on its edit form.
  • The queue is processed on cron, so make sure cron runs often enough. You can also process it with drush advancedqueue:queue:process commerce_invoice.
  • A failed send is retried up to 3 times, 10 minutes apart. You can review failed jobs under Configuration > System > Queues.
  • For anonymous customers, queued emails are sent in the site's default language rather than the language active during checkout.

Requirements and developer notes

  • Drupal 10.3 or later is now required.
  • The code was modernized with constructor property promotion and OOP hooks. If you extend Commerce Invoice classes or override their constructors, check your code: some constructor signatures and protected properties have changed.

Contributors (4)

anas_maw, dougiep, jsacksick, nikunjkotecha

Changelog

Issues: 4 issues resolved.

Changes since 8.x-2.2 (compare):

Bug

  • #3523854 by jsacksick, dougiep: Invoice Logo - The "file_validate_extensions" plugin does not exist

Feature

  • feat: #3159771 Improve performance by sending invoice via Queue

Misc

  • Fix CSPELL issues.
  • Fix a phpstan issue.

Task

  • task: #3631708 Fix PHPSTAN issues
  • task: #3631741 Modernize code: constructor property promotion and OOP hooks
Created by: jsacksick
Created on: 19 Oct 2026 at 15:23 UTC
Last updated: 19 Oct 2026 at 15:24 UTC
Bug fixes
New features

Other releases