Recurring Orders not Using Commerce Number Patterns or Initial Numbers

Created on 29 September 2024, 6 months ago

Problem/Motivation

Recurring Orders created by the Recurring module do not use Commerce's Order Number Patterns or Initial Numbers.

Steps to reproduce

Create a custom number pattern and/or initial number at /admin/commerce/config/number-patterns/order_default/edit

Example Pattern: ON-[pattern:number] and initial number "10000"

The first order created at checkout is "ON-10000" but the orders created by Recurring are something like "5817", etc. - (normal incremental numbers)

* See screenshot example.

Proposed resolution

Commerce Recurring should used Commerce Number Patterns and Initial Number settings for its created orders.

NOTE that there was a similar bug reported but never followed up on here:

https://www.drupal.org/project/commerce_recurring/issues/3106705

🐛 Bug report
Status

Active

Component

Code

Created by

🇺🇸United States 3cwebdev

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

Comments & Activities

  • Issue created by @3cwebdev
  • 🇮🇱Israel jsacksick

    Why is this a bug report? Recurring orders are of a different type. If you want to use number patterns for those, you need to configure that... Can you post a screenshot of your number pattern configuration?

  • 🇺🇸United States 3cwebdev

    Thank you for the quick reply. I've attached a screenshot of my Order Number Configuration.

    Sorry if this isn't a bug, I wasn't aware of any other configurations for number patterns. I examined the config at /admin/commerce/config/number-patterns and do not see any options for configuring per order type.

    On the Recurring Order type I see a checkbox for "Generate a sequential order number when the order is placed." but no options for selecting an Order Number type.

    It sounds like I'm just missing an obvious setting somewhere. Could you point me in the correct direction, please? Thank you!

Production build 0.71.5 2024