Frontend | Backend | Api

Carts\Models\Frontend\Cart

Cart

Method Description Returns
getPerson() The person to whom the current cart belongs Model
getCurrency() Gets the currency for the cart. Currency
getCheckout() Gets a checkout (if exists) associated with the current cart Checkout
getRestoreUrl() Gets a full url to restore a cart including primary hostname string
getId() int
getUuid() string
getAppliedDiscounts() array
getDiscountCodes() array
getTotal() string
getDiscountTotal() string
getTaxTotal() string
getLocked() Last locked date for the cart. DateTime
getCreated() Date the record was created. DateTime
getModified() Last modification date for the record. DateTime
getSite() Site
getItems() Collection (Item)
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