ListItem
Represents a single item in a Cart, ProductList or ListItems
- new ListItem() Create a new ListItem
- ListItem::factory() Convert mixed $data to ListItem
- $listItem->price() Price per item
- $listItem->refreshPrice() Reads the price from the page’s price definition again, and applies the quantifier to it
- $listItem->toOrderArray() Used to store ListItem in OrderPage
- $listItem->toSessionArray() Convert ListItem to session array
- $listItem->total() Total price Price per item × quantity