Compatibility with Commerce 3.x

Created on 12 August 2025, about 1 month ago

Problem/Motivation

The module's composer.json requires commerce ^2.0 and it prevents from upgrading projects to use Commerce 3.x where the commerce_order_document is installed.

Steps to reproduce

Try to upgrade the Commerce Core module to 3.x on a site where the commerce_order_document module is also installed.
You will receive:
- drupal/commerce_order_document 1.0.0 requires drupal/commerce ^2.0 -> found drupal/commerce[dev-2.x, 2.0.0-alpha1, ..., 2.x-dev (alias of dev-2.x)] but it conflicts with your root composer.json require (^3.0).

Proposed resolution

Review code of the module if it doesn't use deprecated and removed code in Commerce Core 3.x.
Fix compatibility if needed.
Update composer.json to use:

 "require": {
    "drupal/commerce": "^2.16 || ^3"
  },

Remaining tasks

User interface changes

API changes

Data model changes

πŸ“Œ Task
Status

Active

Version

1.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine khiminrm

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.71.5 2024