Promotions Adjustments in Orders

In this document, you’ll learn how a promotion is applied to an order’s items and shipping methods using adjustment lines.

What are Adjustment Lines?#

An adjustment line indicates a change to a line item or a shipping method’s amount. It’s used to apply promotions or discounts on an order.

The OrderLineItemAdjustment data model represents changes on a line item, and the OrderShippingMethodAdjustment data model represents changes on a shipping method.

The amount property of the adjustment line indicates the amount to be discounted from the original amount.

Tip: The ID of the applied promotion is stored in the promotion_id property of the adjustment line.

Discountable Option#

The OrderLineItem data model has an is_discountable property that indicates whether promotions can be applied to the line item. It’s enabled by default.

When disabled, a promotion can’t be applied to a line item. In the context of the Promotion Module, the promotion isn’t applied to the line item even if it matches its rules.


Found a problem with this page?Report Issue
Edited Nov 14·Edit this page