Commerce rules pane
Categories
Component ID
Component name
Component type
Maintenance status
Development status
Component security advisory coverage
Downloads
Component created
Component changed
Component body
What is it for?
This is a small module, that provides a new commerce checkout pane, the content of which can be configured via rules. This comes useful for example when you want to display a certain message to the user depending on the payment method. Using the "Set an entity to be displayed as completion message" action you can even display a node, order or commerce_invoice as completion message.
Instalation
Enable the module like any other Drupal module:
http://drupal.org/documentation/install/modules-themes/modules-7
After enabling this module, two new rules actions are available that allow you to set a custom message which is displayed by default in the /complete checkout step.
The checkout pane, that displays the message, should be enabled by default. If it is not, you can enable it at admin/commerce/config/checkout/form.
Usage
The module provides a new rules event ("Determine rules checkout pane content") and a two new actions ("Set the completion message" and "Set an entity to be displayed as completion message").
Set the completion message
Allows users to display simple messages in the rules commerce pane.
Set an entity to be displayed as completion message
Allows users to display an entity in the rules commerce pane: a node with detailed instructions, or the active order, or user object, etc.
E.g.: If you want to display an existing node:
- fetch the entity first - using the already available rules actions ("Fetch entity by ID" or "Fetch entity by propery")
- select "entity_fetched" to be displayed in the "Set an entity to be displayed as completion message" action
