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

Commerce Live Data will let a Drupal Commerce store take each customer's price and per-location stock live from an ERP without making every page uncacheable, and keep the store working when the ERP is slow or down, with hard timeouts, a circuit breaker and a logged fallback to Drupal's own price.

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:

Providers

  • Two plugin types, live price providers and live availability providers. Each comes with a reference provider that calls an HTTP JSON endpoint (the endpoint set in configuration, credentials kept in the Key module) and a fake provider for testing.
  • A price resolver that asks the provider for the current customer and context.

Resilience

  • Hard, short timeouts on every call.
  • Caching per customer, with separate lifetimes for positive results and for zero-stock or negative ones. A short lifetime for positive stock limits how long a cached "in stock" can outlive a real drop to zero.
  • A circuit breaker that stops calling the provider for a set time after a set number of failures.
  • A fallback to Drupal's own price when the provider cannot answer, always logged.

Locations and display

  • Per-location availability, using Commerce Stock's locations when it is installed and a light location entity otherwise, with a formatter that shows availability by location.
  • Price and availability rendered as cache-safe fragments, with core's HTMX (in core since Drupal 11.3) or placeholders, so product pages stay cacheable for anonymous visitors while signed-in customers see their own figures. Fragment responses carry per-customer cache metadata.
  • An admin status page with provider health, circuit-breaker state and hit rates.

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 Order, Price, Product and Store modules.
  • Key, for provider credentials.
  • An ERP or API that answers price and stock requests over HTTP with JSON, or your own provider plugin.
  • Optional: Commerce Stock.

Installation

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

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

Configuration and permissions

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

Similar projects

Checked on drupal.org in November 2026.

  • Commerce Pricelist keeps price lists inside Drupal. Choose it when you can import the ERP's prices on a schedule; this module is for stores whose prices must come from the ERP when the page is requested.
  • Commerce Stock tracks stock by location inside Drupal; its storefront formatter shows a single total. This module plans to use its locations when it is installed.
  • Commerce HTMX Cart uses HTMX for the cart only.

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-live-data. 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