This project is not covered by Drupal’s security advisory policy.

Commerce Customer Part Number will let each B2B customer of a Drupal Commerce store use its own part numbers for product variations: shown on product pages, carts, orders and emails, found by search, and usable to add items to the cart.

Status: No release yet. The module is under active development; the first beta follows once its automated test suite and an independent review pass.

This module is developed with AI assistance. The maintainer reviews and tests every release before publishing it.

Planned for 1.0

None of this is released yet. The first release will provide:

Part numbers

  • A content entity that maps a customer and a product variation to the customer's part number, unique for each customer, with an optional description.
  • Customers as user accounts, with a design ready for the organizations being built for Commerce 4.
  • An access control handler, so that one customer never sees another's part numbers.

Where they appear

  • Product pages, cart and order lines, and order emails.
  • A copy on the order item when the order is placed, so later edits never change a past order.

Finding and ordering

  • A lookup service.
  • Search integration: when the search keys match one of the current customer's part numbers, that variation is surfaced.
  • Quick add to cart by part number.

Managing them

  • A self-service page where customers manage their own part numbers, and an admin interface.
  • CSV import and export in batches, with a validation report.

Requirements

Planned for the first release:

  • Drupal 11.3 or later. Drupal 12 needs a Drupal Commerce release that supports it; Commerce 3.3 supports Drupal 10.3 and 11.
  • PHP 8.3 or later.
  • Drupal Commerce 3, with its Cart, Order, Product and Store modules.

Installation

Installation instructions arrive with the first release. For the first beta, the commands will be:

composer require 'drupal/commerce_customer_part_number:^1.0@beta'
drush en commerce_customer_part_number

Configuration and permissions

Not final yet. This section will list each settings page and each permission, by its real label, with the first release.

Customers will be able to see and manage only their own part numbers.

Similar projects

Checked on drupal.org in November 2026.

  • We found no drupal.org project for customer part numbers. A plain field on the variation holds one value for every customer, which is the gap this module fills.
  • Commerce B2B's development branch adds organization accounts on Commerce 4; it has no release yet. This module's design is ready for organizations to own part numbers.

Support and maintenance

Report bugs, ask for features and comment on the planned scope in the issue queue. Each release will have notes describing what changed.

This project is not covered by Drupal's security advisory policy. Until it is, security issues are handled in the public issue queue and fixed in ordinary releases.

A read-only mirror is on GitHub at DanePete/drupal-commerce-customer-part-number. It will mirror the drupal.org repository once code is published there; development and issues stay on drupal.org.

Maintainer

Created and maintained by deadnorth (Dead North).

Project information

Releases