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-catalog
Api
Data
ProductInterface.php
Go to the documentation of this file.
1
<?php
8
namespace
Magento\Catalog\Api\Data
;
9
14
interface
ProductInterface
extends
\Magento\Framework\Api\CustomAttributesDataInterface
15
{
19
const
SKU
=
'sku'
;
20
21
const
NAME
=
'name'
;
22
23
const
PRICE
=
'price'
;
24
25
const
WEIGHT
=
'weight'
;
26
27
const
STATUS
=
'status'
;
28
29
const
VISIBILITY
=
'visibility'
;
30
31
const
ATTRIBUTE_SET_ID
=
'attribute_set_id'
;
32
33
const
TYPE_ID
=
'type_id'
;
34
35
const
CREATED_AT
=
'created_at'
;
36
37
const
UPDATED_AT
=
'updated_at'
;
38
39
const
MEDIA_GALLERY
=
'media_gallery'
;
40
41
const
TIER_PRICE
=
'tier_price'
;
42
43
const
ATTRIBUTES
= [
44
self::SKU
,
45
self::NAME
,
46
self::PRICE
,
47
self::WEIGHT
,
48
self::STATUS
,
49
self::VISIBILITY
,
50
self::ATTRIBUTE_SET_ID
,
51
self::TYPE_ID
,
52
self::CREATED_AT
,
53
self::UPDATED_AT
,
54
self::MEDIA_GALLERY
,
55
self::TIER_PRICE
,
56
];
64
public
function
getId
();
65
72
public
function
setId
(
$id
);
73
79
public
function
getSku
();
80
87
public
function
setSku
($sku);
88
94
public
function
getName
();
95
102
public
function
setName
(
$name
);
103
109
public
function
getAttributeSetId
();
110
117
public
function
setAttributeSetId
(
$attributeSetId
);
118
124
public
function
getPrice
();
125
132
public
function
setPrice
(
$price
);
133
139
public
function
getStatus
();
140
147
public
function
setStatus
(
$status
);
148
154
public
function
getVisibility
();
155
162
public
function
setVisibility
($visibility);
163
169
public
function
getTypeId
();
170
177
public
function
setTypeId
($typeId);
178
184
public
function
getCreatedAt
();
185
192
public
function
setCreatedAt
($createdAt);
193
199
public
function
getUpdatedAt
();
200
207
public
function
setUpdatedAt
($updatedAt);
208
214
public
function
getWeight
();
215
222
public
function
setWeight
($weight);
223
229
public
function
getExtensionAttributes
();
230
237
public
function
setExtensionAttributes
(\
Magento
\Catalog\Api\Data\ProductExtensionInterface
$extensionAttributes
);
238
244
public
function
getProductLinks
();
245
252
public
function
setProductLinks
(array
$links
=
null
);
253
259
public
function
getOptions
();
260
267
public
function
setOptions
(array
$options
=
null
);
268
274
public
function
getMediaGalleryEntries
();
275
282
public
function
setMediaGalleryEntries
(array $mediaGalleryEntries =
null
);
283
289
public
function
getTierPrices
();
290
297
public
function
setTierPrices
(array
$tierPrices
=
null
);
298
}
Magento\Catalog\Api\Data\ProductInterface\NAME
const NAME
Definition:
ProductInterface.php:21
Magento\Catalog\Api\Data\ProductInterface\TIER_PRICE
const TIER_PRICE
Definition:
ProductInterface.php:41
Magento\Catalog\Api\Data\ProductInterface\setProductLinks
setProductLinks(array $links=null)
Magento\Catalog\Api\Data\ProductInterface\setCreatedAt
setCreatedAt($createdAt)
Magento\Catalog\Api\Data\ProductInterface\STATUS
const STATUS
Definition:
ProductInterface.php:27
Magento\Catalog\Api\Data\ProductInterface\setExtensionAttributes
setExtensionAttributes(\Magento\Catalog\Api\Data\ProductExtensionInterface $extensionAttributes)
Magento\Catalog\Api\Data\ProductInterface\setVisibility
setVisibility($visibility)
Magento\Catalog\Api\Data\ProductInterface\ATTRIBUTE_SET_ID
const ATTRIBUTE_SET_ID
Definition:
ProductInterface.php:31
Magento\Catalog\Api\Data\ProductInterface\setMediaGalleryEntries
setMediaGalleryEntries(array $mediaGalleryEntries=null)
Magento\Catalog\Api\Data\ProductInterface\setSku
setSku($sku)
Magento\Catalog\Api\Data\ProductInterface\getOptions
getOptions()
$id
$id
Definition:
fieldset.phtml:14
Magento\Catalog\Api\Data\ProductInterface\PRICE
const PRICE
Definition:
ProductInterface.php:23
Magento\Catalog\Api\Data\ProductInterface\CREATED_AT
const CREATED_AT
Definition:
ProductInterface.php:35
$attributeSetId
$attributeSetId
Definition:
filterable_attributes.php:11
Magento\Catalog\Api\Data\ProductInterface\getTierPrices
getTierPrices()
Magento\Catalog\Api\Data\ProductInterface\getMediaGalleryEntries
getMediaGalleryEntries()
Magento\Catalog\Api\Data
Definition:
BasePriceInterface.php:7
$price
$price
Definition:
product_alert.php:10
Magento\Catalog\Api\Data\ProductInterface\setPrice
setPrice($price)
Magento\Catalog\Api\Data\ProductInterface\setId
setId($id)
Magento\Catalog\Api\Data\ProductInterface\getAttributeSetId
getAttributeSetId()
Magento\Catalog\Api\Data\ProductInterface\MEDIA_GALLERY
const MEDIA_GALLERY
Definition:
ProductInterface.php:39
Magento\Catalog\Api\Data\ProductInterface\ATTRIBUTES
const ATTRIBUTES
Definition:
ProductInterface.php:43
Magento\Catalog\Api\Data\ProductInterface\getVisibility
getVisibility()
Magento\Catalog\Api\Data\ProductInterface\SKU
const SKU
Definition:
ProductInterface.php:19
Magento\Catalog\Api\Data\ProductInterface\setTierPrices
setTierPrices(array $tierPrices=null)
Magento\Catalog\Api\Data\ProductInterface\getExtensionAttributes
getExtensionAttributes()
Magento\Catalog\Api\Data\ProductInterface\getUpdatedAt
getUpdatedAt()
Magento\Catalog\Api\Data\ProductInterface\getWeight
getWeight()
Magento\Catalog\Api\Data\ProductInterface\setOptions
setOptions(array $options=null)
$links
$links
Definition:
downloadable_product_with_files_and_sample_url.php:39
Magento\Catalog\Api\Data\ProductInterface\getSku
getSku()
Magento\Catalog\Api\Data\ProductInterface\setName
setName($name)
Magento\Catalog\Api\Data\ProductInterface\getPrice
getPrice()
Magento\Catalog\Api\Data\ProductInterface\setStatus
setStatus($status)
Magento\Catalog\Api\Data\ProductInterface\getProductLinks
getProductLinks()
Magento\Catalog\Api\Data\ProductInterface\UPDATED_AT
const UPDATED_AT
Definition:
ProductInterface.php:37
$status
$status
Definition:
order_status.php:8
$extensionAttributes
$extensionAttributes
Definition:
payment.php:22
Magento\Catalog\Api\Data\ProductInterface\TYPE_ID
const TYPE_ID
Definition:
ProductInterface.php:33
Magento
Magento\Catalog\Api\Data\ProductInterface\VISIBILITY
const VISIBILITY
Definition:
ProductInterface.php:29
Magento\Framework\Api\CustomAttributesDataInterface
Definition:
CustomAttributesDataInterface.php:15
Magento\Catalog\Api\Data\ProductInterface\getTypeId
getTypeId()
Magento\Catalog\Api\Data\ProductInterface\setAttributeSetId
setAttributeSetId($attributeSetId)
Magento\Catalog\Api\Data\ProductInterface\setWeight
setWeight($weight)
Magento\Catalog\Api\Data\ProductInterface\WEIGHT
const WEIGHT
Definition:
ProductInterface.php:25
Magento\Catalog\Api\Data\ProductInterface\getName
getName()
Magento\Catalog\Api\Data\ProductInterface\getCreatedAt
getCreatedAt()
Magento\Catalog\Api\Data\ProductInterface\getId
getId()
Magento\Catalog\Api\Data\ProductInterface\getStatus
getStatus()
Magento\Catalog\Api\Data\ProductInterface\setUpdatedAt
setUpdatedAt($updatedAt)
Magento\Catalog\Api\Data\ProductInterface
Definition:
ProductInterface.php:14
$options
$options
Definition:
multiple_mixed_products.php:29
$tierPrices
$tierPrices
Definition:
product_has_tier_price_show_as_low_as.php:14
Magento\Catalog\Api\Data\ProductInterface\setTypeId
setTypeId($typeId)
$name
if(!isset($_GET['name'])) $name
Definition:
log.php:14