Commerce Views Pane
Categories
Component ID
1941442
Component name
Commerce Views Pane
Component type
module
Maintenance status
Development status
Component security advisory coverage
covered
Downloads
5392
Component created
Component changed
Component body
Commerce Views Pane provides a Views display plugin to embed a view in a Drupal Commerce checkout pane. This plugin is similar to the Views block display, except it is for Drupal Commerce checkout panes instead of blocks.
Why use Commerce Views Pane?
- You want to display a view during checkout and optionally pass any order data as a view's contextual argument.
- You want to display order information on the checkout complete page.
Examples:- Download links to files purchased.
- Shipping information - addresses, tracking numbers, estimated delivery.
- Payment transaction information
Just getting started?
- Install the dependencies:
- Download & install Commerce Views Pane
- Create a new View
- Add a new display and select "Commerce checkout pane"
- Optionally, add a contextual filter. The view is passed the Order context.
The most common use case is an argument of "Commerce Order: Order ID". - Build the view - fields, relationships, etc
- Save the view
- Visit "admin/commerce/config/checkout" and enable the new checkout pane.
Example: "View: Test Order", where "Test Order" is the human-readable name of the view - Configure argument values in pane configuration. You can use replacement patterns from Commerce Order entity.
Example: Mapping to an Order state views argument use token "[commerce-order:state]"
