Magento 2 Documentation
2.3
Documentation for Magento 2 CMS v2.3 (December 2018)
|
Data Fields | |
const | ENTITY = 'catalog_product' |
const | CACHE_TAG = 'cat_p' |
const | CACHE_PRODUCT_CATEGORY_TAG = 'cat_c_p' |
const | STORE_ID = 'store_id' |
![]() | |
const | CUSTOM_ATTRIBUTES = 'custom_attributes' |
![]() | |
const | EXTENSION_ATTRIBUTES_KEY = 'extension_attributes' |
![]() | |
const | SKU = 'sku' |
const | NAME = 'name' |
const | PRICE = 'price' |
const | WEIGHT = 'weight' |
const | STATUS = 'status' |
const | VISIBILITY = 'visibility' |
const | ATTRIBUTE_SET_ID = 'attribute_set_id' |
const | TYPE_ID = 'type_id' |
const | CREATED_AT = 'created_at' |
const | UPDATED_AT = 'updated_at' |
const | MEDIA_GALLERY = 'media_gallery' |
const | TIER_PRICE = 'tier_price' |
const | ATTRIBUTES |
Static Protected Attributes | |
static | $_url |
![]() | |
static | $_underscoreCache = [] |
Catalog product model
@api @method Product setHasError(bool $value) @method null|bool getHasError() @method array getAssociatedProductIds() @method Product setNewVariationsAttributeSetId(int $value) @method int getNewVariationsAttributeSetId() @method int getPriceType() @method string getUrlKey() @method Product setUrlKey(string $urlKey) @method Product setRequestPath(string $requestPath) @method Product setWebsiteIds(array $ids)
@SuppressWarnings(PHPMD.LongVariable) @SuppressWarnings(PHPMD.ExcessivePublicCount) @SuppressWarnings(PHPMD.TooManyFields) @SuppressWarnings(PHPMD.ExcessiveClassComplexity) @SuppressWarnings(PHPMD.CouplingBetweenObjects)
Definition at line 42 of file Product.php.
__construct | ( | \Magento\Framework\Model\Context | $context, |
\Magento\Framework\Registry | $registry, | ||
\Magento\Framework\Api\ExtensionAttributesFactory | $extensionFactory, | ||
AttributeValueFactory | $customAttributeFactory, | ||
\Magento\Store\Model\StoreManagerInterface | $storeManager, | ||
\Magento\Catalog\Api\ProductAttributeRepositoryInterface | $metadataService, | ||
Product\Url | $url, | ||
Product\Link | $productLink, | ||
\Magento\Catalog\Model\Product\Configuration\Item\OptionFactory | $itemOptionFactory, | ||
\Magento\CatalogInventory\Api\Data\StockItemInterfaceFactory | $stockItemFactory, | ||
\Magento\Catalog\Model\Product\OptionFactory | $catalogProductOptionFactory, | ||
\Magento\Catalog\Model\Product\Visibility | $catalogProductVisibility, | ||
\Magento\Catalog\Model\Product\Attribute\Source\Status | $catalogProductStatus, | ||
\Magento\Catalog\Model\Product\Media\Config | $catalogProductMediaConfig, | ||
Product\Type | $catalogProductType, | ||
\Magento\Framework\Module\Manager | $moduleManager, | ||
\Magento\Catalog\Helper\Product | $catalogProduct, | ||
\Magento\Catalog\Model\ResourceModel\Product | $resource, | ||
\Magento\Catalog\Model\ResourceModel\Product\Collection | $resourceCollection, | ||
\Magento\Framework\Data\CollectionFactory | $collectionFactory, | ||
\Magento\Framework\Filesystem | $filesystem, | ||
\Magento\Framework\Indexer\IndexerRegistry | $indexerRegistry, | ||
\Magento\Catalog\Model\Indexer\Product\Flat\Processor | $productFlatIndexerProcessor, | ||
\Magento\Catalog\Model\Indexer\Product\Price\Processor | $productPriceIndexerProcessor, | ||
\Magento\Catalog\Model\Indexer\Product\Eav\Processor | $productEavIndexerProcessor, | ||
CategoryRepositoryInterface | $categoryRepository, | ||
Product\Image\CacheFactory | $imageCacheFactory, | ||
\Magento\Catalog\Model\ProductLink\CollectionProvider | $entityCollectionProvider, | ||
\Magento\Catalog\Model\Product\LinkTypeProvider | $linkTypeProvider, | ||
\Magento\Catalog\Api\Data\ProductLinkInterfaceFactory | $productLinkFactory, | ||
\Magento\Catalog\Api\Data\ProductLinkExtensionFactory | $productLinkExtensionFactory, | ||
EntryConverterPool | $mediaGalleryEntryConverterPool, | ||
\Magento\Framework\Api\DataObjectHelper | $dataObjectHelper, | ||
\Magento\Framework\Api\ExtensionAttribute\JoinProcessorInterface | $joinProcessor, | ||
array | $data = [] , |
||
\Magento\Eav\Model\Config | $config = null , |
||
FilterProductCustomAttribute | $filterCustomAttribute = null |
||
) |
\Magento\Framework\Model\Context | $context | |
\Magento\Framework\Registry | $registry | |
\Magento\Framework\Api\ExtensionAttributesFactory | $extensionFactory | |
AttributeValueFactory | $customAttributeFactory | |
\Magento\Store\Model\StoreManagerInterface | $storeManager | |
\Magento\Catalog\Api\ProductAttributeRepositoryInterface | $metadataService | |
Product\Url | $url | |
Product\Link | $productLink | |
Product\Configuration\Item\OptionFactory | $itemOptionFactory | |
\Magento\CatalogInventory\Api\Data\StockItemInterfaceFactory | $stockItemFactory | |
Product\OptionFactory | $catalogProductOptionFactory | |
Product\Visibility | $catalogProductVisibility | |
Product\Attribute\Source\Status | $catalogProductStatus | |
Product\Media\Config | $catalogProductMediaConfig | |
Product\Type | $catalogProductType | |
\Magento\Framework\Module\Manager | $moduleManager | |
\Magento\Catalog\Helper\Product | $catalogProduct | |
ResourceModel\Product | $resource | |
ResourceModel\Product\Collection | $resourceCollection | |
\Magento\Framework\Data\CollectionFactory | $collectionFactory | |
\Magento\Framework\Filesystem | $filesystem | |
\Magento\Framework\Indexer\IndexerRegistry | $indexerRegistry | |
Indexer\Product\Flat\Processor | $productFlatIndexerProcessor | |
Indexer\Product\Price\Processor | $productPriceIndexerProcessor | |
Indexer\Product\Eav\Processor | $productEavIndexerProcessor | |
CategoryRepositoryInterface | $categoryRepository | |
Product\Image\CacheFactory | $imageCacheFactory | |
ProductLink\CollectionProvider | $entityCollectionProvider | |
Product\LinkTypeProvider | $linkTypeProvider | |
\Magento\Catalog\Api\Data\ProductLinkInterfaceFactory | $productLinkFactory | |
\Magento\Catalog\Api\Data\ProductLinkExtensionFactory | $productLinkExtensionFactory | |
EntryConverterPool | $mediaGalleryEntryConverterPool | |
\Magento\Framework\Api\DataObjectHelper | $dataObjectHelper | |
\Magento\Framework\Api\ExtensionAttribute\JoinProcessorInterface | $joinProcessor | |
array | $data | |
\Magento\Eav\Model\Config | null | $config | |
FilterProductCustomAttribute | null | $filterCustomAttribute | @SuppressWarnings(PHPMD.ExcessiveParameterList) @SuppressWarnings(PHPMD.UnusedFormalParameter) |
Definition at line 398 of file Product.php.
__toArray | ( | ) |
|
protected |
Load product options if they exists
Definition at line 1079 of file Product.php.
|
protected |
Clearing product's data
Definition at line 2264 of file Product.php.
|
protected |
Clearing references on product
Definition at line 2253 of file Product.php.
|
protected |
|
protected |
addAttributeUpdate | ( | $code, | |
$value, | |||
$store | |||
) |
Save current attribute with code $code and assign new value
Definition at line 1824 of file Product.php.
addCustomOption | ( | $code, | |
$value, | |||
$product = null |
|||
) |
addImageToMediaGallery | ( | $file, | |
$mediaAttribute = null , |
|||
$move = false , |
|||
$exclude = true |
|||
) |
Add image to media gallery
string | $file | file path of image in file system |
string | array | $mediaAttribute | code of type 'media_image', leave blank if image should be only in gallery |
boolean | $move | if true, it will move source file |
boolean | $exclude | mark image as disabled in product page view |
Definition at line 1569 of file Product.php.
addOption | ( | Product\Option | $option | ) |
Add option to array of product options
Product\Option | $option |
Definition at line 1960 of file Product.php.
afterDeleteCommit | ( | ) |
Init indexing process after product delete commit
Definition at line 1067 of file Product.php.
afterSave | ( | ) |
Saving product type related data and init index
Definition at line 948 of file Product.php.
beforeDelete | ( | ) |
Clear cache related with product and protect delete from not admin
Register indexing event before delete product
Definition at line 1056 of file Product.php.
beforeSave | ( | ) |
Check product options and type options and save them, too
We need reset attribute set id to attribute after related simple product was saved
\Magento\Catalog\Model\ResourceModel\Product | $subject | |
\Magento\Framework\DataObject | $object |
@SuppressWarnings(PHPMD.UnusedFormalParameter)
$this->_canAffectOptions - set by type instance only $this->getCanSaveCustomOptions() - set either in controller when "Custom Options" ajax tab is loaded, or in type instance as well
Set true, if any Set false, ONLY if options have been affected by Options tab and Type instance tab
Definition at line 866 of file Product.php.
canAffectOptions | ( | $value = null | ) |
Check/set if options can be affected when saving product
If value specified, it will be set.
bool | $value |
Definition at line 935 of file Product.php.
canBeShowInCategory | ( | $categoryId | ) |
Check availability display product in category
int | $categoryId |
Definition at line 2105 of file Product.php.
canConfigure | ( | ) |
cleanCache | ( | ) |
|
protected |
Convert to media gallery interface
array | $mediaGallery |
Definition at line 2596 of file Product.php.
eavReindexCallback | ( | ) |
Reindex callback for EAV indexer
Definition at line 1010 of file Product.php.
formatUrlKey | ( | $str | ) |
fromArray | ( | array | $data | ) |
Same as setData(), but also initiates the stock item (if it is there)
array | $data | Array to form the object from |
Definition at line 1860 of file Product.php.
getAttributes | ( | $groupId = null , |
|
$skipSuper = false |
|||
) |
Retrieve product attributes
If $groupId is null - retrieve all product attributes
int | $groupId | Retrieve attributes of the specified group |
bool | $skipSuper | Not used |
Definition at line 842 of file Product.php.
getAttributeSetId | ( | ) |
Get product attribute set id
Implements ProductInterface.
Definition at line 611 of file Product.php.
getAttributeText | ( | $attributeCode | ) |
Get attribute text by its code
string | $attributeCode | Code of the attribute |
Definition at line 1762 of file Product.php.
getAvailableInCategories | ( | ) |
Retrieve category ids where product is available
Definition at line 2115 of file Product.php.
getCacheIdTags | ( | ) |
Get cache tags associated with object id
Definition at line 2149 of file Product.php.
getCalculatedFinalPrice | ( | ) |
getCategory | ( | ) |
Retrieve product category
Definition at line 738 of file Product.php.
getCategoryCollection | ( | ) |
Retrieve product categories
Get collection of product categories
\Magento\Catalog\Model\Product | $product |
Definition at line 776 of file Product.php.
getCategoryId | ( | ) |
getCategoryIds | ( | ) |
Retrieve assigned category Ids
Definition at line 753 of file Product.php.
getCreatedAt | ( | ) |
Get product creation date
Implements ProductInterface.
Definition at line 621 of file Product.php.
getCrossSellLinkCollection | ( | ) |
Retrieve collection cross sell link
Definition at line 1434 of file Product.php.
getCrossSellProductCollection | ( | ) |
Retrieve collection cross sell product
Definition at line 1422 of file Product.php.
getCrossSellProductIds | ( | ) |
Retrieve cross sell products identifiers
Definition at line 1405 of file Product.php.
getCrossSellProducts | ( | ) |
Retrieve array of cross sell products
Definition at line 1388 of file Product.php.
|
protected |
Get a list of custom attribute codes that belongs to product attribute set.
If attribute set not specified for product will return all product attribute codes
Definition at line 509 of file Product.php.
getCustomDesignDate | ( | ) |
Returns array with dates for custom design
Definition at line 1774 of file Product.php.
getCustomOption | ( | $code | ) |
Get product custom option info
string | $code |
Definition at line 2077 of file Product.php.
getCustomOptions | ( | ) |
getDefaultAttributeSetId | ( | ) |
getExtensionAttributes | ( | ) |
Retrieve existing extension attributes object or create a new one.
Implements ProductInterface.
Definition at line 2571 of file Product.php.
getFinalPrice | ( | $qty = null | ) |
Get product final price
float | $qty |
Definition at line 1201 of file Product.php.
getFormatedPrice | ( | ) |
Get formatted by currency product price
Definition at line 1174 of file Product.php.
getFormattedPrice | ( | ) |
Get formatted by currency product price
Definition at line 1161 of file Product.php.
getGiftMessageAvailable | ( | ) |
getId | ( | ) |
Identifier getter
Implements SaleableInterface.
Definition at line 2654 of file Product.php.
getIdBySku | ( | $sku | ) |
Retrieve product id by sku
string | $sku |
Definition at line 714 of file Product.php.
getIdentities | ( | ) |
Get identities
Implements IdentityInterface.
Definition at line 2339 of file Product.php.
getImage | ( | ) |
Sets product image from it's child if possible
Definition at line 2328 of file Product.php.
getIsSalable | ( | ) |
Is product salable detecting by product type
Definition at line 1713 of file Product.php.
getIsVirtual | ( | ) |
Retrieve is a virtual product
Definition at line 2027 of file Product.php.
getLinkInstance | ( | ) |
getMediaAttributes | ( | ) |
Retrieve attributes for media gallery
Definition at line 1479 of file Product.php.
getMediaAttributeValues | ( | ) |
Retrieve assoc array that contains media attribute values of the product
Definition at line 1498 of file Product.php.
getMediaConfig | ( | ) |
Retrieve product media config
Definition at line 1589 of file Product.php.
getMediaGalleryEntries | ( | ) |
Get media gallery entries
Implements ProductInterface.
Definition at line 2615 of file Product.php.
getMediaGalleryImages | ( | ) |
Retrieve media gallery images
Definition at line 1513 of file Product.php.
getMinimalPrice | ( | ) |
getName | ( | ) |
Get product name
Implements ProductInterface.
Definition at line 572 of file Product.php.
getOptionInstance | ( | ) |
getOptions | ( | ) |
Get all options of product
Implements ProductInterface.
Definition at line 2004 of file Product.php.
getPreconfiguredValues | ( | ) |
Get preconfigured values from product
Definition at line 2220 of file Product.php.
getPrice | ( | ) |
Get product price through type instance
Implements ProductInterface.
Definition at line 584 of file Product.php.
getPriceInfo | ( | ) |
Get product Price Info object
Implements SaleableInterface.
Definition at line 1114 of file Product.php.
getPriceModel | ( | ) |
Get product price model
Definition at line 1104 of file Product.php.
getProductEntitiesInfo | ( | $columns = null | ) |
Retrieve product entities info as array
string | array | $columns | One or several columns |
Definition at line 2308 of file Product.php.
getProductLinks | ( | ) |
Get product links info
Implements ProductInterface.
Definition at line 1449 of file Product.php.
getProductOptionsCollection | ( | ) |
Retrieve options collection of product
Definition at line 1994 of file Product.php.
getProductUrl | ( | $useSid = null | ) |
Retrieve Product URL
bool | $useSid |
Definition at line 1789 of file Product.php.
getQty | ( | ) |
Get quantity for product
Implements SaleableInterface.
Definition at line 988 of file Product.php.
getQuantityAndStockStatus | ( | ) |
Get quantity and stock status data
Definition at line 2723 of file Product.php.
getRelatedLinkCollection | ( | ) |
Retrieve collection related link
Definition at line 1312 of file Product.php.
getRelatedProductCollection | ( | ) |
Retrieve collection related product
Definition at line 1300 of file Product.php.
getRelatedProductIds | ( | ) |
Retrieve related products identifiers
Definition at line 1283 of file Product.php.
getRelatedProducts | ( | ) |
Retrieve array of related products
Definition at line 1265 of file Product.php.
getRequestPath | ( | ) |
getSku | ( | ) |
Retrieve sku through type instance
Implements ProductInterface.
Definition at line 1925 of file Product.php.
getSpecialFromDate | ( | ) |
Returns starting date of the special price
Definition at line 1245 of file Product.php.
getSpecialPrice | ( | ) |
getSpecialToDate | ( | ) |
getStatus | ( | ) |
Get product status
Implements ProductInterface.
Definition at line 665 of file Product.php.
getStockData | ( | ) |
Get stock data
Definition at line 2757 of file Product.php.
getStoreId | ( | ) |
Retrieve Store Id
Definition at line 533 of file Product.php.
getStoreIds | ( | ) |
Get all sore ids where product is presented
Definition at line 817 of file Product.php.
getTierPrice | ( | $qty = null | ) |
Get product tier price for the customer, based on qty of this product
float | $qty |
Definition at line 1150 of file Product.php.
getTierPrices | ( | ) |
Gets list of product tier prices
Implements ProductInterface.
Definition at line 1127 of file Product.php.
getTypeId | ( | ) |
Get product type identifier
Implements SaleableInterface.
Definition at line 653 of file Product.php.
getTypeInstance | ( | ) |
Retrieve type instance of the product.
Type instance implements product type depended logic and is a singleton shared by all products of the same type.
Definition at line 678 of file Product.php.
getUpdatedAt | ( | ) |
Get previous product update date
Implements ProductInterface.
Definition at line 631 of file Product.php.
getUpSellLinkCollection | ( | ) |
Retrieve collection up sell link
Definition at line 1373 of file Product.php.
getUpSellProductCollection | ( | ) |
Retrieve collection up sell product
Definition at line 1361 of file Product.php.
getUpSellProductIds | ( | ) |
Retrieve up sell products identifiers
Definition at line 1344 of file Product.php.
getUpSellProducts | ( | ) |
Retrieve array of up sell products
Definition at line 1327 of file Product.php.
getUrlInStore | ( | $params = [] | ) |
Retrieve URL in current store
array | $params | the route params |
Definition at line 1800 of file Product.php.
getUrlModel | ( | ) |
getVisibility | ( | ) |
Get visibility status
@codeCoverageIgnoreStart
Implements ProductInterface.
Definition at line 601 of file Product.php.
getVisibleInCatalogStatuses | ( | ) |
getVisibleInSiteVisibilities | ( | ) |
getVisibleStatuses | ( | ) |
getWebsiteIds | ( | ) |
Retrieve product websites identifiers
Definition at line 803 of file Product.php.
getWeight | ( | ) |
Retrieve weight through type instance
Implements ProductInterface.
Definition at line 1935 of file Product.php.
hasCustomOptions | ( | ) |
Checks if there custom option for this product
Definition at line 2090 of file Product.php.
hasGalleryAttribute | ( | ) |
Checks whether product has Media Gallery attribute.
Definition at line 1546 of file Product.php.
isAvailable | ( | ) |
Check whether the product type or stock allows to purchase the product
Definition at line 1702 of file Product.php.
isComposite | ( | ) |
isDataChanged | ( | ) |
Check if data was changed
Definition at line 1022 of file Product.php.
isDisabled | ( | ) |
Checks whether product has disabled status
Definition at line 2318 of file Product.php.
isDuplicable | ( | ) |
isInStock | ( | ) |
Whether product available in stock
Definition at line 1751 of file Product.php.
isProductsHasSku | ( | array | $productIds | ) |
Check for empty SKU on each product
array | $productIds |
Definition at line 2168 of file Product.php.
isSalable | ( | ) |
Check is product available for sale
Definition at line 1671 of file Product.php.
isSaleable | ( | ) |
isVirtual | ( | ) |
isVisibleInCatalog | ( | ) |
Check Product visible in catalog
Definition at line 1619 of file Product.php.
isVisibleInSiteVisibility | ( | ) |
Check Product visible in site
Definition at line 1639 of file Product.php.
prepareCustomOptions | ( | ) |
Prepare product custom options.
To be sure that all product custom options does not has ID and has product instance
Definition at line 2237 of file Product.php.
priceReindexCallback | ( | ) |
Callback for entity reindex
Definition at line 998 of file Product.php.
processBuyRequest | ( | \Magento\Framework\DataObject | $buyRequest | ) |
Parse buyRequest into options values used by product
\Magento\Framework\DataObject | $buyRequest |
Definition at line 2188 of file Product.php.
reindex | ( | ) |
Init indexing process after product save
Definition at line 1037 of file Product.php.
reloadPriceInfo | ( | ) |
Reload PriceInfo object
Definition at line 2386 of file Product.php.
reset | ( | ) |
Reset all model data
Definition at line 2135 of file Product.php.
setAssociatedProductIds | ( | array | $productIds | ) |
Set the associated products
array | $productIds |
Definition at line 2706 of file Product.php.
setAttributeSetId | ( | $attributeSetId | ) |
Set product attribute set id
int | $attributeSetId |
Implements ProductInterface.
Definition at line 2481 of file Product.php.
|
protected |
Set product categories.
\Magento\Framework\Data\Collection | $categoryCollection |
Definition at line 792 of file Product.php.
setCreatedAt | ( | $createdAt | ) |
Set product created date
string | $createdAt |
Implements ProductInterface.
Definition at line 2525 of file Product.php.
setCustomOptions | ( | array | $options | ) |
Sets custom options for the product
array | $options | Array of options |
Definition at line 2056 of file Product.php.
setExtensionAttributes | ( | \Magento\Catalog\Api\Data\ProductExtensionInterface | $extensionAttributes | ) |
Set an extension attributes object.
\Magento\Catalog\Api\Data\ProductExtensionInterface | $extensionAttributes |
Implements ProductInterface.
Definition at line 2582 of file Product.php.
setFinalPrice | ( | $price | ) |
Sets final price of product
This func is equal to magic 'setFinalPrice()', but added as a separate func, because in cart with bundle products it's called very often in Item->getProduct(). So removing chain of magic with more cpu consuming algorithms gives nice optimization boost.
float | $price | Price amount |
Definition at line 1189 of file Product.php.
setId | ( | $value | ) |
Set entity Id
int | $value |
Implements ProductInterface.
Definition at line 2666 of file Product.php.
setIsDuplicable | ( | $value | ) |
Set is duplicable flag
boolean | $value |
Definition at line 1660 of file Product.php.
setMediaGalleryEntries | ( | array | $mediaGalleryEntries = null | ) |
Set media gallery entries
ProductAttributeMediaGalleryEntryInterface[] | $mediaGalleryEntries |
Implements ProductInterface.
Definition at line 2633 of file Product.php.
setName | ( | $name | ) |
Set product name
string | $name |
Implements ProductInterface.
Definition at line 2459 of file Product.php.
setOptions | ( | array | $options = null | ) |
Set options for product
Implements ProductInterface.
Definition at line 2015 of file Product.php.
setPrice | ( | $price | ) |
Set product price
float | $price |
Implements ProductInterface.
Definition at line 2492 of file Product.php.
setPriceCalculation | ( | $calculate = true | ) |
Set Price calculation flag
bool | $calculate |
Definition at line 643 of file Product.php.
setProductLinks | ( | array | $links = null | ) |
Set product links info
Implements ProductInterface.
Definition at line 1463 of file Product.php.
setQty | ( | $qty | ) |
Set quantity for product
float | $qty |
Definition at line 974 of file Product.php.
setQuantityAndStockStatus | ( | $quantityAndStockStatusData | ) |
Set quantity and stock status data
array | $quantityAndStockStatusData |
Definition at line 2740 of file Product.php.
setSku | ( | $sku | ) |
Set product sku
string | $sku |
Implements ProductInterface.
Definition at line 2448 of file Product.php.
setStatus | ( | $status | ) |
Set product status
int | $status |
Implements ProductInterface.
Definition at line 2503 of file Product.php.
setStockData | ( | $stockData | ) |
Set stock data
array | $stockData |
Definition at line 2774 of file Product.php.
setStoreId | ( | $storeId | ) |
Set product store id
int | $storeId |
Definition at line 2470 of file Product.php.
setTierPrices | ( | array | $tierPrices = null | ) |
Sets list of product tier prices
Implements ProductInterface.
Definition at line 1138 of file Product.php.
setTypeId | ( | $typeId | ) |
Set product type id
string | $typeId |
Implements ProductInterface.
Definition at line 2558 of file Product.php.
setTypeInstance | ( | $instance | ) |
Set type instance for the product
\Magento\Catalog\Model\Product\Type\AbstractType | null | $instance | Product type instance |
Definition at line 692 of file Product.php.
setUpdatedAt | ( | $updatedAt | ) |
Set product updated date
string | $updatedAt |
Implements ProductInterface.
Definition at line 2536 of file Product.php.
setVisibility | ( | $visibility | ) |
Set product visibility
int | $visibility |
Implements ProductInterface.
Definition at line 2514 of file Product.php.
setWeight | ( | $weight | ) |
Set product weight
float | $weight |
Implements ProductInterface.
Definition at line 2547 of file Product.php.
toArray | ( | array | $arrAttributes = [] | ) |
Renders the object to array
array | $arrAttributes | Attribute array |
Definition at line 1843 of file Product.php.
validate | ( | ) |
Validate Product Data
Definition at line 558 of file Product.php.
|
protected |
Definition at line 77 of file Product.php.
|
protected |
Definition at line 169 of file Product.php.
|
protected |
Definition at line 92 of file Product.php.
|
protected |
Definition at line 176 of file Product.php.
|
protected |
Definition at line 200 of file Product.php.
|
protected |
Definition at line 207 of file Product.php.
|
protected |
Definition at line 193 of file Product.php.
|
protected |
Definition at line 214 of file Product.php.
|
protected |
Definition at line 186 of file Product.php.
|
protected |
Definition at line 113 of file Product.php.
|
protected |
Definition at line 136 of file Product.php.
|
protected |
Definition at line 87 of file Product.php.
|
protected |
Definition at line 82 of file Product.php.
|
protected |
Definition at line 235 of file Product.php.
|
protected |
Definition at line 162 of file Product.php.
|
protected |
Definition at line 228 of file Product.php.
|
protected |
Definition at line 106 of file Product.php.
|
protected |
Definition at line 155 of file Product.php.
|
protected |
Definition at line 260 of file Product.php.
|
protected |
Definition at line 255 of file Product.php.
|
protected |
Definition at line 245 of file Product.php.
|
protected |
Definition at line 313 of file Product.php.
|
protected |
Definition at line 250 of file Product.php.
|
protected |
Definition at line 126 of file Product.php.
|
protected |
Definition at line 221 of file Product.php.
|
protected |
Definition at line 99 of file Product.php.
|
staticprotected |
Definition at line 131 of file Product.php.
|
protected |
Definition at line 120 of file Product.php.
|
protected |
Definition at line 272 of file Product.php.
|
protected |
Definition at line 265 of file Product.php.
|
protected |
Definition at line 308 of file Product.php.
|
protected |
Definition at line 288 of file Product.php.
|
protected |
Definition at line 277 of file Product.php.
|
protected |
Definition at line 240 of file Product.php.
|
protected |
Definition at line 322 of file Product.php.
|
protected |
Definition at line 327 of file Product.php.
|
protected |
Definition at line 293 of file Product.php.
|
protected |
Definition at line 51 of file Product.php.
|
protected |
Definition at line 346 of file Product.php.
|
protected |
Definition at line 334 of file Product.php.
|
protected |
Definition at line 340 of file Product.php.
|
protected |
Definition at line 283 of file Product.php.
|
protected |
Definition at line 181 of file Product.php.
|
protected |
Definition at line 143 of file Product.php.
|
protected |
Definition at line 150 of file Product.php.
|
protected |
Definition at line 303 of file Product.php.
|
protected |
Definition at line 298 of file Product.php.
const CACHE_PRODUCT_CATEGORY_TAG = 'cat_c_p' |
Category product relation cache tag
Definition at line 67 of file Product.php.
const CACHE_TAG = 'cat_p' |
Product cache tag
Definition at line 62 of file Product.php.
const ENTITY = 'catalog_product' |
Entity code. Can be used as part of method name for entity processing
Definition at line 57 of file Product.php.
const STORE_ID = 'store_id' |
Definition at line 72 of file Product.php.