This module integrates Webform with Drupal Commerce to create orders with the submission data of a Webform through a dedicated Webform handler.

Key features

  • Commerce Webform Order Handler— a Webform handler that creates a Commerce order from a submission, with support for creating, updating, and deleting order items.
  • Payment Method element— a Webform element that embeds the Commerce payment method selector directly inside your form.
  • Purchasable Entity element— a Webform element for selecting any entity that implements PurchasableEntityInterface (products, product variations, custom purchasable entities, etc.).
  • Flexible cart behavior— configure redirects, or clear the current cart.

How it works

  1. Build or edit a webform under admin/structure/webform . (See the Webform documentation for details on the form builder itself).
  2. Open the form's handlers screen at admin/structure/webform/manage/`webform_id`/handlers and add the Commerce Webform Order Handler.
  3. In the handler settings, you can customize:
    • The store that sells the purchasable entities.
    • The order item, including overrides for properties like price or currency.
    • The cart behavior— redirection, or emptying the existing cart.

Try it out!

The fastest way to see Commerce Webform Order in action is the Commerce Webform Order Demo recipe, which installs the most common use cases out of the box.

Live examples

Live examples of this module working in the real world:

Awards

Drupal Splash Awards Spain 2025
We're proud to share that the module Commerce Webform Order has been recognized by the Spanish Drupal community in the Drupal Splash Awards Spain 2025 as the winner in the Technology category.

Sponsors

This module exists thanks to the organizations that funded its development:

Similar modules

Webform Product is the closest alternative, but the two modules solve different problems:

  • Webform Product sells webform submissions— the submission itself is the purchasable thing. It currently works best with off-site payment providers.
  • Commerce Webform Order is a thin layer on top of Drupal Commerce that lets you sell any entity implementing PurchasableEntityInterface— products, variations, donations, memberships, or anything else you've defined.

If you need full Commerce flexibility (multiple purchasable entity types, on-site payments, complex pricing) while keeping Webform's UX, Commerce Webform Order is the right fit.

Looking for Drupal support?

Premium support from the project maintainers
Get in touch with us
Supporting organizations: 
Development and maintenance

Project information

Releases