Class: Product
backend.Product
#
Hierarchy↳
Product
#
ImplementsTProduct
#
Table of contents#
Constructors#
Properties- _meta
- attributeValues
- attributes
- averageRating
- categories
- createDate
- description
- descriptionDelta
- id
- images
- isEnabled
- mainCategoryId
- mainImage
- manageStock
- metaRecords
- name
- oldPrice
- pageDescription
- pageTitle
- price
- reviews
- reviewsCount
- sku
- slug
- stockAmount
- stockStatus
- updateDate
- variants
- views
#
Accessors#
Constructors#
constructor• new Product()
#
Inherited from#
Properties#
_meta• Optional
_meta: null
| string
#
Inherited from#
Defined insystem/core/backend/src/models/entities/base-page.entity.ts:37
#
attributeValues• Optional
attributeValues: null
| AttributeToProduct
[]
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:90
#
attributes• Optional
attributes: null
| TAttributeInstance
[]
DB Records from attributeValues
relation converted for frontend representation
#
Implementation ofTProduct.attributes
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:95
#
averageRating• Optional
averageRating: null
| number
! Not real columns, workaround to make SELECT count reviews: https://github.com/CromwellCMS/Cromwell/blob/9eb541b1be060f792abbf4f7133071099a8633f2/system/core/backend/src/repositories/ProductRepository.ts#L39-L45
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:109
#
categories• Optional
categories: null
| TProductCategory
[]
#
Implementation ofTProduct.categories
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:30
#
createDate• Optional
createDate: null
| Date
#
Implementation ofTProduct.createDate
#
Inherited from#
Defined insystem/core/backend/src/models/entities/base-page.entity.ts:51
#
description• Optional
description: null
| string
#
Implementation ofTProduct.description
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:76
#
descriptionDelta• Optional
descriptionDelta: null
| string
#
Implementation ofTProduct.descriptionDelta
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:80
#
id• id: number
#
Implementation ofTProduct.id
#
Inherited from#
Defined insystem/core/backend/src/models/entities/base-page.entity.ts:22
#
images• Optional
images: null
| string
[]
#
Implementation ofTProduct.images
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:58
#
isEnabled• Optional
isEnabled: null
| boolean
#
Implementation ofTProduct.isEnabled
#
Inherited from#
Defined insystem/core/backend/src/models/entities/base-page.entity.ts:60
#
mainCategoryId• Optional
mainCategoryId: null
| number
#
Implementation ofTProduct.mainCategoryId
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:35
#
mainImage• Optional
mainImage: null
| string
#
Implementation ofTProduct.mainImage
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:54
#
manageStock• Optional
manageStock: null
| boolean
#
Implementation ofTProduct.manageStock
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:72
#
metaRecords• Optional
metaRecords: null
| ProductMeta
[]
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:117
#
name• Optional
name: null
| string
#
Implementation ofTProduct.name
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:26
#
oldPrice• Optional
oldPrice: null
| number
#
Implementation ofTProduct.oldPrice
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:45
#
pageDescription• Optional
pageDescription: null
| string
#
Implementation ofTProduct.pageDescription
#
Inherited fromBasePageEntity.pageDescription
#
Defined insystem/core/backend/src/models/entities/base-page.entity.ts:34
#
pageTitle• Optional
pageTitle: null
| string
#
Implementation ofTProduct.pageTitle
#
Inherited from#
Defined insystem/core/backend/src/models/entities/base-page.entity.ts:30
#
price• Optional
price: null
| number
#
Implementation ofTProduct.price
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:40
#
reviews• Optional
reviews: null
| TProductReview
[]
#
Implementation ofTProduct.reviews
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:85
#
reviewsCount• Optional
reviewsCount: null
| number
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:112
#
sku• Optional
sku: null
| string
#
Implementation ofTProduct.sku
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:50
#
slug• Optional
slug: null
| string
#
Implementation ofTProduct.slug
#
Inherited from#
Defined insystem/core/backend/src/models/entities/base-page.entity.ts:26
#
stockAmount• Optional
stockAmount: null
| number
#
Implementation ofTProduct.stockAmount
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:63
#
stockStatus• Optional
stockStatus: null
| TStockStatus
#
Implementation ofTProduct.stockStatus
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:68
#
updateDate• Optional
updateDate: null
| Date
#
Implementation ofTProduct.updateDate
#
Inherited from#
Defined insystem/core/backend/src/models/entities/base-page.entity.ts:56
#
variants• Optional
variants: null
| ProductVariant
[]
#
Implementation ofTProduct.variants
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:100
#
views• Optional
views: null
| number
#
Implementation ofTProduct.views
#
Defined insystem/core/backend/src/models/entities/product.entity.ts:102
#
Accessors#
meta• get
meta(): undefined
| null
| TBasePageMeta
#
Returnsundefined
| null
| TBasePageMeta
#
Defined insystem/core/backend/src/models/entities/base-page.entity.ts:40
• set
meta(data
): void
#
ParametersName | Type |
---|---|
data | undefined | null | TBasePageMeta |
#
Returnsvoid
#
Defined insystem/core/backend/src/models/entities/base-page.entity.ts:44