Method | Description | Returns |
---|---|---|
getId() | int | |
getProductCode() | string | |
getName() | string | |
getQuantity() | Quantity of the item. Integer number. If 0, the item is unavailable. | int |
getAmount() | string | |
getTax() | string | |
getDiscount() | string | |
getAttributes() | string | |
isAvailable() | If item is available, i.e. its product still available or the item is not expired. | bool |
getCreated() | Date the record was created. | DateTime |
getModified() | Last modification date for the record. | DateTime |
getCart() | Cart | |
getOrder() | Order | |
getProduct() | BaseProduct | |
getMessages() | Collection (Message) | |
isNewRecord() | Check if the record is a new record | bool |
isHierarchicalModel() | Check whether a model is a hierarchical model, i.e. can have children | bool |
isVersionedModel() | Check whether a model is versioned | bool |
Carts\Models\Backend\Item
Item that appears in the Cart for the first time and then can go to the Order