Orders policies

Version: 10.0

The Commerce Engine encompasses extensible services that enable you to customize commerce functionality.

Note

Do not extend or inherit from out-of-the-box policies; instead, create your own. You can change the values in a policy by modifying the PolicySet JSON or the Environment JSON, depending on where the policy is defined and then re-running Bootstrap.

The following policies can be configured through the Orders plug-in.

Policy

Description

Properties / Default Values

CancelOrdersPolicy

Defines what statuses an order can be to be able to cancel it.

AllowCancelStatuses / List<string>()

GlobalCheckoutPolicy

  • Enable quick checkout

  • Enable guest checkout

  • Terms and conditions

  • Minimum order quantity

GlobalOrderPolicy

Defines global settings for orders.

CreatedOrderStatus / "Pending"

InvoicePrefix / ""

InvoiceSuffix / ""

AllowOrderCancel / true

SubmittedOrderList / "PendingOrders"

CompletedOrderList / "CompletedOrders"

KnownOrderActionsPolicy

Defines the names of the orders entity view actions.

CancelOrder / "CancelOrder"

HoldOrder / "HoldOrder"

CommitOnHoldOrder / "CommitOnHoldOrder"

CancelOnHoldOrder / "CancelOnHoldOrder"

UndoOnHoldOrder / "UndoOnHoldOrder"

Checkout / "Checkout"

SubmitOrder / "SubmitOrder"

EditLineItem / "EditLineItem"

DeleteLineItem / "DeleteLineItem"

AddLineItem / "AddLineItem"

KnownOrderListsPolicy

Defines the names of the orders transient and entity indexes lists.

Orders / "Orders"

PendingOrders / "PendingOrders"

OnHoldOrders / "OnHoldOrders"

ProblemOrders / "ProblemOrders"

ReleasedOrders / "ReleasedOrders"

CompletedOrders / "CompletedOrders"

CancelledOrders / "CancelledOrders"

OrdersIndex / "OrdersIndex"

FraudOrders / "FraudOrders"

ShippedOrders / "ShippedOrders"

AnonymousOrders / "AnonymousOrders"

AuthenticatedOrders / "AuthenticatedOrders"

SalesCharges / "SalesCharges"

SalesCredits / "SalesCredits"

SettleSalesActivities / "SettleSalesActivities"

SettledSalesActivities / "SettledSalesActivities"

ProblemSalesActivities / "ProblemSalesActivities"

CustomerOrders / "Orders-ByCustomer-{0}"

OrderSalesActivities / "Order-{0}-SalesActivity"

KnownOrderStatusPolicy

Defines the names of the orders statuses.

Pending / "Pending"

Released / "Released"

Completed / "Completed"

OnHold / "OnHold"

Cancelled / "Cancelled"

Problem / "Problem"

MinLength / 5

MaxLength / 20

KnownOrderViewsPolicy

Defines the names of the orders entity views.

OrdersDashboard / "OrdersDashboard"

Preview / "Preview"

Summary / "Summary"

Master / "Master"

Lines / "Lines"

EditLineItem / "EditLineItem"

AddLineItem / "AddLineItem"

LineItemDetails / "LineItemDetails"

Adjustments / "Adjustments"

Adjustment / "Adjustment"

Messages / "Messages"

Message / "Message"

Orders / "Orders"

KnownSalesActivityStatusesPolicy

Defines the names of the sales activities statuses.

Pending / "Pending"

Settled / "Settled"

Problem / "Problem"

Void / "Void"

Completed / "Completed"

OnHoldOrdersPolicy

Defines what statuses an order can be to be able to put it on hold.

AllowHoldStatuses / List<string>

Do you have some feedback for us?

If you have suggestions for improving this article,