Magento Extensions Rating 2024
EXTENSIONS BY CATEGORY
B2B (Business-To-Business)
Blog
Customer
ERP (Enterprise Resource Planning)
Mega Menu
One Step Checkout
Order
POS (Point Of Sale)
Search
Shopping Cart
Sitemap
SEO
Social
Stock & Inventory Management
EXTENSIONS BY DEVELOPER
aheadWorks
Amasty
Boost My Shop
BSS Commerce
Magestore
MageWorx
Mirasvit
Templates Master
Wyomind
XTENTO
Magento 2 Documentation
Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
vendor
magento
module-quote
Api
Data
CartItemInterface.php
Go to the documentation of this file.
1
<?php
6
namespace
Magento\Quote\Api\Data
;
7
13
interface
CartItemInterface
extends
\Magento\Framework\Api\ExtensibleDataInterface
14
{
18
const
KEY_ITEM_ID
=
'item_id'
;
19
20
const
KEY_SKU
=
'sku'
;
21
22
const
KEY_QTY
=
'qty'
;
23
24
const
KEY_NAME
=
'name'
;
25
26
const
KEY_PRICE
=
'price'
;
27
28
const
KEY_PRODUCT_TYPE
=
'product_type'
;
29
30
const
KEY_QUOTE_ID
=
'quote_id'
;
31
32
const
KEY_PRODUCT_OPTION
=
'product_option'
;
33
41
public
function
getItemId
();
42
49
public
function
setItemId
($itemId);
50
56
public
function
getSku
();
57
64
public
function
setSku
($sku);
65
71
public
function
getQty
();
72
79
public
function
setQty
($qty);
80
86
public
function
getName
();
87
94
public
function
setName
(
$name
);
95
101
public
function
getPrice
();
102
109
public
function
setPrice
(
$price
);
110
116
public
function
getProductType
();
117
124
public
function
setProductType
($productType);
125
131
public
function
getQuoteId
();
132
139
public
function
setQuoteId
(
$quoteId
);
140
146
public
function
getProductOption
();
147
154
public
function
setProductOption
(\
Magento
\
Quote
\Api\
Data
\
ProductOptionInterface
$productOption
);
155
161
public
function
getExtensionAttributes
();
162
169
public
function
setExtensionAttributes
(\
Magento
\
Quote
\Api\
Data
\CartItemExtensionInterface
$extensionAttributes
);
170
}
Magento\Quote\Api\Data\CartItemInterface\KEY_PRODUCT_OPTION
const KEY_PRODUCT_OPTION
Definition:
CartItemInterface.php:32
Magento\Quote\Api\Data\CartItemInterface\getQuoteId
getQuoteId()
Magento\Quote\Api\Data\CartItemInterface\KEY_QTY
const KEY_QTY
Definition:
CartItemInterface.php:22
Magento\Framework\App\Config\Data
Definition:
Data.php:10
Magento\Quote\Api\Data\CartItemInterface\KEY_QUOTE_ID
const KEY_QUOTE_ID
Definition:
CartItemInterface.php:30
$price
$price
Definition:
product_alert.php:10
Magento\Quote\Api\Data\CartItemInterface\setItemId
setItemId($itemId)
Magento\Quote\Api\Data\CartItemInterface\getName
getName()
Magento\Quote\Api\Data\CartItemInterface\getQty
getQty()
Magento\Quote\Api\Data\CartItemInterface\KEY_PRICE
const KEY_PRICE
Definition:
CartItemInterface.php:26
Magento\Quote\Api\Data\CartItemInterface
Definition:
CartItemInterface.php:13
Magento\Quote\Api\Data\CartItemInterface\getSku
getSku()
$productOption
$productOption
Definition:
quote_with_product_and_custom_options.php:37
Magento\Quote\Api\Data\CartItemInterface\setSku
setSku($sku)
Magento\Quote\Api\Data\CartItemInterface\KEY_SKU
const KEY_SKU
Definition:
CartItemInterface.php:20
Magento\Quote\Api\Data\CartItemInterface\setProductType
setProductType($productType)
Magento\Quote\Api\Data\CartItemInterface\setPrice
setPrice($price)
Magento\Quote\Api\Data\CartItemInterface\getItemId
getItemId()
Magento\Quote\Api\Data\CartItemInterface\setQty
setQty($qty)
$extensionAttributes
$extensionAttributes
Definition:
payment.php:22
Magento
Magento\Quote\Api\Data\CartItemInterface\getProductOption
getProductOption()
Magento\Quote\Model\Quote
Definition:
Quote.php:107
Magento\Quote\Api\Data\CartItemInterface\setName
setName($name)
Magento\Quote\Api\Data\CartItemInterface\getProductType
getProductType()
Magento\Framework\Api\ExtensibleDataInterface
Definition:
ExtensibleDataInterface.php:15
Magento\Quote\Api\Data
Definition:
AddressAdditionalDataInterface.php:6
Magento\Quote\Api\Data\CartItemInterface\setProductOption
setProductOption(\Magento\Quote\Api\Data\ProductOptionInterface $productOption)
Magento\Quote\Api\Data\CartItemInterface\KEY_NAME
const KEY_NAME
Definition:
CartItemInterface.php:24
Magento\Quote\Api\Data\CartItemInterface\setQuoteId
setQuoteId($quoteId)
Magento\Quote\Api\Data\CartItemInterface\getExtensionAttributes
getExtensionAttributes()
Magento\Quote\Api\Data\CartItemInterface\KEY_ITEM_ID
const KEY_ITEM_ID
Definition:
CartItemInterface.php:18
Magento\Quote\Api\Data\CartItemInterface\setExtensionAttributes
setExtensionAttributes(\Magento\Quote\Api\Data\CartItemExtensionInterface $extensionAttributes)
Magento\Quote\Api\Data\ProductOptionInterface
Definition:
ProductOptionInterface.php:15
$quoteId
$quoteId
Definition:
quote_with_items_and_custom_options_saved_rollback.php:12
Magento\Quote\Api\Data\CartItemInterface\KEY_PRODUCT_TYPE
const KEY_PRODUCT_TYPE
Definition:
CartItemInterface.php:28
Magento\Quote\Api\Data\CartItemInterface\getPrice
getPrice()
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14