Order Line Actions
Order Line Actions UI Extension for Umbraco Commerce
Last updated
Was this helpful?
Order Line Actions UI Extension for Umbraco Commerce
Last updated
Was this helpful?
Available from Umbraco Commerce 15.1.0
Order Line Actions allow you to display buttons against each order line of a cart/order enabling you to perform custom actions per order line.
Each entry must have a type of ucOrderLineAction
along with a unique alias
and name
. Unless you wish to override the button, the kind
key should be set to default
. An api
key that imports the implementation of the UcOrderLineActionApi
interface, should be defined.
A meta
entry provides configuration options for order line actions:
label
A label for this action (supports the #
prefix localization string syntax)
icon
In icon to display for the action
In order to define the logic to perform when an order line action button is clicked, you'll need to implement the UcOrderLineActionApi
interface. This interface is defined as
This provides order line action implementations with access to the defined manifest
and contextual information via the storeId
, orderId
and orderLineId
properties. It expects the implementation of an execute
method to act.
An example implementation would be