This module integrates Webform with Drupal Commerce and it allows creating orders with the submission data of a Webform via a Webform handler.
What does this module provide?
- A Webform element for embedding the payment method selector (Payment Method).
- A Webform handler for creating a commerce order with a webform submission (Commerce Webform Order Handler).
Usage
- Go to admin/structure/webform and create or edit a webform, you can find extensive documentation in the Webform module docs: https://www.drupal.org/docs/8/modules/webform
- In the handlers admin screen (admin/structure/webform/manage/`webform_id`/handlers) you should be able to add a "Commerce Webform Order Handler" one.
- In the handler settings, you can customize:
- The store that sells the purchasable entities.
- Order item (allowing to override certain properties such price or currency).
- Cart behaviours such as redirection or empty the current cart.
Sponsors
- Initial development: Fundación UNICEF Comité Español
- Contrib version: Awakened Heart Sangha
- Update/Delete order items: Mile3 Web Development, Inc.
- Payment method selector/Purchasable Entity: Asociación para la defensa de la naturaleza WWF/ADENA
Try out a demonstration
Check out the Commerce Webform Order Demo recipe that installs the most common use cases for this module.
Live example
Here's a live example of this module working in the real world: https://www.unicef.es/hazte-socio
Similar modules
- Webform Product: Webform Product can create a Commerce order from any Webform submission. The module currently only works well with off-site payment providers.
The main difference between Webform Product (WP) and Commerce Webform Order (CWO) is that WP sells webform subissions and CWO is simply a layer on top of commerce that allows you to sell any entity that implements PurchasableEntityInterface.
Looking for Drupal support?
- Premium support from the project maintainers
- Get in touch with us
Supporting organizations:
Development and maintenance
Project information
- Project categories: E-commerce
- Ecosystem: Webform, Commerce Core
527 sites report using this module
- Created by facine on , updated
Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.



