Interface CartInterface @api
- Since
- 100.0.2
Definition at line 13 of file CartInterface.php.
◆ getBillingAddress()
Returns the cart billing address.
- Returns
- \Magento\Quote\Api\Data\AddressInterface|null Cart billing address. Otherwise, null.
Implemented in Quote.
◆ getConvertedAt()
Returns the cart conversion date and time.
- Returns
- string|null Cart conversion date and time. Otherwise, null.
Implemented in Quote.
◆ getCreatedAt()
Returns the cart creation date and time.
- Returns
- string|null Cart creation date and time. Otherwise, null.
Implemented in Quote.
◆ getCurrency()
Returns information about quote currency, such as code, exchange rate, and so on.
- Returns
- \Magento\Quote\Api\Data\CurrencyInterface|null Quote currency information. Otherwise, null.
Implemented in Quote.
◆ getCustomer()
Returns information about the customer who is assigned to the cart.
- Returns
- \Magento\Customer\Api\Data\CustomerInterface Information about the customer who is assigned to the cart.
Implemented in Quote.
◆ getCustomerIsGuest()
True for guest customers, false for logged in customers
- Returns
- bool|null
Implemented in Quote.
◆ getCustomerNote()
◆ getCustomerNoteNotify()
getCustomerNoteNotify |
( |
| ) |
|
Send customer notification flag
- Returns
- bool|null
Implemented in Quote.
◆ getCustomerTaxClassId()
getCustomerTaxClassId |
( |
| ) |
|
Get customer tax class ID.
- Returns
- int|null
Implemented in Quote.
◆ getExtensionAttributes()
getExtensionAttributes |
( |
| ) |
|
Retrieve existing extension attributes object or create a new one.
- Returns
- \Magento\Quote\Api\Data\CartExtensionInterface|null
Implemented in Quote.
◆ getId()
#- Returns the cart/quote ID.
- Returns
- int Cart/quote ID.
◆ getIsActive()
Determines whether the cart is still active.
- Returns
- bool|null Active status flag value. Otherwise, null.
Implemented in Quote.
◆ getIsVirtual()
Determines whether the cart is a virtual cart.
A virtual cart contains virtual items.
- Returns
- bool|null Virtual flag value. Otherwise, null.
Implemented in Quote.
◆ getItems()
Lists items in the cart.
- Returns
- \Magento\Quote\Api\Data\CartItemInterface[]|null Array of items. Otherwise, null.
Implemented in Quote.
◆ getItemsCount()
Returns the number of different items or products in the cart.
- Returns
- int|null Number of different items or products in the cart. Otherwise, null.
Implemented in Quote.
◆ getItemsQty()
Returns the total quantity of all cart items.
- Returns
- float|null Total quantity of all cart items. Otherwise, null.
Implemented in Quote.
◆ getOrigOrderId()
Returns the original order ID for the cart.
- Returns
- int|null Original order ID. Otherwise, null.
Implemented in Quote.
◆ getReservedOrderId()
Returns the reserved order ID for the cart.
- Returns
- int|null Reserved order ID. Otherwise, null.
Implemented in Quote.
◆ getStoreId()
Get store identifier
- Returns
- int
Implemented in Quote.
◆ getUpdatedAt()
Returns the cart last update date and time.
- Returns
- string|null Cart last update date and time. Otherwise, null.
Implemented in Quote.
◆ setBillingAddress()
Sets the cart billing address.
- Parameters
-
\Magento\Quote\Api\Data\AddressInterface | $billingAddress | |
- Returns
- $this
◆ setConvertedAt()
setConvertedAt |
( |
|
$convertedAt | ) |
|
Sets the cart conversion date and time.
- Parameters
-
- Returns
- $this
Implemented in Quote.
◆ setCreatedAt()
setCreatedAt |
( |
|
$createdAt | ) |
|
Sets the cart creation date and time.
- Parameters
-
- Returns
- $this
Implemented in Quote.
◆ setCurrency()
Sets information about quote currency, such as code, exchange rate, and so on.
- Parameters
-
\Magento\Quote\Api\Data\CurrencyInterface | $currency | |
- Returns
- $this
◆ setCustomer()
Sets information about the customer who is assigned to the cart.
- Parameters
-
\Magento\Customer\Api\Data\CustomerInterface | $customer | |
- Returns
- $this
◆ setCustomerIsGuest()
setCustomerIsGuest |
( |
|
$customerIsGuest | ) |
|
Sets true for guest customers, false for logged in customers
- Parameters
-
- Returns
- $this
Implemented in Quote.
◆ setCustomerNote()
setCustomerNote |
( |
|
$customerNote | ) |
|
Sets Customer notice text
- Parameters
-
- Returns
- $this
Implemented in Quote.
◆ setCustomerNoteNotify()
setCustomerNoteNotify |
( |
|
$customerNoteNotify | ) |
|
Sets send customer notification flag
- Parameters
-
- Returns
- $this
Implemented in Quote.
◆ setCustomerTaxClassId()
setCustomerTaxClassId |
( |
|
$customerTaxClassId | ) |
|
Set customer tax class ID.
- Parameters
-
- Returns
- $this
Implemented in Quote.
◆ setExtensionAttributes()
setExtensionAttributes |
( |
\Magento\Quote\Api\Data\CartExtensionInterface |
$extensionAttributes | ) |
|
Set an extension attributes object.
- Parameters
-
\Magento\Quote\Api\Data\CartExtensionInterface | $extensionAttributes | |
- Returns
- $this
◆ setId()
Sets the cart/quote ID.
- Parameters
-
- Returns
- $this
◆ setIsActive()
Sets whether the cart is still active.
- Parameters
-
- Returns
- $this
Implemented in Quote.
◆ setItems()
setItems |
( |
array |
$items = null | ) |
|
Sets items in the cart.
- Parameters
-
Implemented in Quote.
◆ setItemsCount()
setItemsCount |
( |
|
$itemsCount | ) |
|
Sets the number of different items or products in the cart.
- Parameters
-
- Returns
- $this
Implemented in Quote.
◆ setItemsQty()
Sets the total quantity of all cart items.
- Parameters
-
- Returns
- $this
Implemented in Quote.
◆ setOrigOrderId()
setOrigOrderId |
( |
|
$origOrderId | ) |
|
Sets the original order ID for the cart.
- Parameters
-
- Returns
- $this
Implemented in Quote.
◆ setReservedOrderId()
setReservedOrderId |
( |
|
$reservedOrderId | ) |
|
Sets the reserved order ID for the cart.
- Parameters
-
- Returns
- $this
Implemented in Quote.
◆ setStoreId()
Sets store identifier
- Parameters
-
- Returns
- $this
Implemented in Quote.
◆ setUpdatedAt()
setUpdatedAt |
( |
|
$updatedAt | ) |
|
Sets the cart last update date and time.
- Parameters
-
- Returns
- $this
Implemented in Quote.
◆ KEY_BILLING_ADDRESS
const KEY_BILLING_ADDRESS = 'billing_address' |
◆ KEY_CHECKOUT_METHOD
const KEY_CHECKOUT_METHOD = 'checkout_method' |
◆ KEY_CONVERTED_AT
const KEY_CONVERTED_AT = 'converted_at' |
◆ KEY_CREATED_AT
const KEY_CREATED_AT = 'created_at' |
◆ KEY_CURRENCY
const KEY_CURRENCY = 'currency' |
◆ KEY_CUSTOMER
const KEY_CUSTOMER = 'customer' |
◆ KEY_CUSTOMER_IS_GUEST
const KEY_CUSTOMER_IS_GUEST = 'customer_is_guest' |
◆ KEY_CUSTOMER_NOTE
const KEY_CUSTOMER_NOTE = 'customer_note' |
◆ KEY_CUSTOMER_NOTE_NOTIFY
const KEY_CUSTOMER_NOTE_NOTIFY = 'customer_note_notify' |
◆ KEY_CUSTOMER_TAX_CLASS_ID
const KEY_CUSTOMER_TAX_CLASS_ID = 'customer_tax_class_id' |
◆ KEY_ENTITY_ID
const KEY_ENTITY_ID = 'entity_id' |
◆ KEY_ID
#+ Constants defined for keys of array, makes typos less likely
Definition at line 18 of file CartInterface.php.
◆ KEY_IS_ACTIVE
const KEY_IS_ACTIVE = 'is_active' |
◆ KEY_IS_VIRTUAL
const KEY_IS_VIRTUAL = 'is_virtual' |
◆ KEY_ITEMS
const KEY_ITEMS = 'items' |
◆ KEY_ITEMS_COUNT
const KEY_ITEMS_COUNT = 'items_count' |
◆ KEY_ITEMS_QTY
const KEY_ITEMS_QTY = 'items_qty' |
◆ KEY_ORIG_ORDER_ID
const KEY_ORIG_ORDER_ID = 'orig_order_id' |
◆ KEY_RESERVED_ORDER_ID
const KEY_RESERVED_ORDER_ID = 'reserved_order_id' |
◆ KEY_SHIPPING_ADDRESS
const KEY_SHIPPING_ADDRESS = 'shipping_address' |
◆ KEY_STORE_ID
const KEY_STORE_ID = 'store_id' |
◆ KEY_UPDATED_AT
const KEY_UPDATED_AT = 'updated_at' |
The documentation for this interface was generated from the following file: