docs
  1. Developer Guide
  2. Features
  3. Pages
  4. Account Area
  5. Composables

Composables

The Account Area feature offers composable and utilities that makes accessing different properties of the order details data easier.

Composables

useOrderProductDetails

A composable that provides easier access to different properties of order product details data.

Parameters

orderProduct

(Required) Order product used as a data source

orderVariant

(Required) Order variant used as a data source

Returns

UseOrderProductDetailsReturn

An object containing computed properties for various product details, such as name, image, color, brand ,size, link, alt and lowest prior price.

Utilities & Helpers

getOrderDeliveries

A utility that groups order items by their package and returns the grouped items along with their shipment details.

Parameters

order

(Required) Order used as a data source

Returns

OrderDelivery

Return grouped order items by package.

mapAttributes

Maps the attributes of an order product to a new format.

Parameters

attributes

(Required) The attributes of the order product.

Returns

Attributes

Returns mapped attributes.