class ItemBuilder extends ItemBuilder

Class ItemBuilder

Methods

buildProductViewItem( Product $product)

Build a product view object

buildProductActionItem( Product $product, int $quantity = 1)

Build a product action item object

buildProductImpressionItem( Product $product)

Build a product impression object

buildOrderAction( Order $order)

Build a checkout transaction object

buildCheckoutItems( Order $order)

Build checkout items

mixed
buildCheckoutItemsByCart( Cart $cart)

Build checkout items by cart

buildCheckoutItem( Order $order, Item $orderItem)

Build a checkout item object

Details

at line line 40
ProductData buildProductViewItem( Product $product)

Build a product view object

Parameters

Product $product

Return Value

ProductData

at line line 52
ProductData buildProductActionItem( Product $product, int $quantity = 1)

Build a product action item object

Parameters

Product $product
int $quantity

Return Value

ProductData

at line line 71
ImpressionData buildProductImpressionItem( Product $product)

Build a product impression object

Parameters

Product $product

Return Value

ImpressionData

at line line 88
ActionData buildOrderAction( Order $order)

Build a checkout transaction object

Parameters

Order $order

Return Value

ActionData

at line line 118
ProductData[] buildCheckoutItems( Order $order)

Build checkout items

Parameters

Order $order

Return Value

ProductData[]

at line line 135
mixed buildCheckoutItemsByCart( Cart $cart)

Build checkout items by cart

Parameters

Cart $cart

Return Value

mixed

at line line 153
ProductData buildCheckoutItem( Order $order, Item $orderItem)

Build a checkout item object

Parameters

Order $order
Item $orderItem

Return Value

ProductData