menu

SFRA / Server-side JS / Class: OrderModel

OrderModel

new OrderModel(lineItemContainer, options)

Order class that represents the current order

Parameters:
Name Type Description
lineItemContainer dw.order.LineItemCtnr

Current users's basket/order

options Object

The current order's line items

Properties
Name Type Description
config Object

Object to help configure the orderModel

Properties
Name Type Description
numberOfLineItems string

helps determine the number of lineitems needed

countryCode string

the current request country code

Source:

X Privacy Update: We use cookies to make interactions with our websites and services easy and meaningful, to better understand how they are used. By continuing to use this site you are giving us your consent to do this. Privacy Policy.