Class: Product
backend.Product
Hierarchy#
↳
Product
Implements#
TProduct
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 in#
system/core/backend/src/models/entities/base-page.entity.ts:37
attributeValues#
• Optional attributeValues: null | AttributeToProduct[]
Defined in#
system/core/backend/src/models/entities/product.entity.ts:90
attributes#
• Optional attributes: null | TAttributeInstance[]
DB Records from attributeValues relation converted for frontend representation
Implementation of#
TProduct.attributes
Defined in#
system/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 in#
system/core/backend/src/models/entities/product.entity.ts:109
categories#
• Optional categories: null | TProductCategory[]
Implementation of#
TProduct.categories
Defined in#
system/core/backend/src/models/entities/product.entity.ts:30
createDate#
• Optional createDate: null | Date
Implementation of#
TProduct.createDate
Inherited from#
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:51
description#
• Optional description: null | string
Implementation of#
TProduct.description
Defined in#
system/core/backend/src/models/entities/product.entity.ts:76
descriptionDelta#
• Optional descriptionDelta: null | string
Implementation of#
TProduct.descriptionDelta
Defined in#
system/core/backend/src/models/entities/product.entity.ts:80
id#
• id: number
Implementation of#
TProduct.id
Inherited from#
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:22
images#
• Optional images: null | string[]
Implementation of#
TProduct.images
Defined in#
system/core/backend/src/models/entities/product.entity.ts:58
isEnabled#
• Optional isEnabled: null | boolean
Implementation of#
TProduct.isEnabled
Inherited from#
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:60
mainCategoryId#
• Optional mainCategoryId: null | number
Implementation of#
TProduct.mainCategoryId
Defined in#
system/core/backend/src/models/entities/product.entity.ts:35
mainImage#
• Optional mainImage: null | string
Implementation of#
TProduct.mainImage
Defined in#
system/core/backend/src/models/entities/product.entity.ts:54
manageStock#
• Optional manageStock: null | boolean
Implementation of#
TProduct.manageStock
Defined in#
system/core/backend/src/models/entities/product.entity.ts:72
metaRecords#
• Optional metaRecords: null | ProductMeta[]
Defined in#
system/core/backend/src/models/entities/product.entity.ts:117
name#
• Optional name: null | string
Implementation of#
TProduct.name
Defined in#
system/core/backend/src/models/entities/product.entity.ts:26
oldPrice#
• Optional oldPrice: null | number
Implementation of#
TProduct.oldPrice
Defined in#
system/core/backend/src/models/entities/product.entity.ts:45
pageDescription#
• Optional pageDescription: null | string
Implementation of#
TProduct.pageDescription
Inherited from#
BasePageEntity.pageDescription
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:34
pageTitle#
• Optional pageTitle: null | string
Implementation of#
TProduct.pageTitle
Inherited from#
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:30
price#
• Optional price: null | number
Implementation of#
TProduct.price
Defined in#
system/core/backend/src/models/entities/product.entity.ts:40
reviews#
• Optional reviews: null | TProductReview[]
Implementation of#
TProduct.reviews
Defined in#
system/core/backend/src/models/entities/product.entity.ts:85
reviewsCount#
• Optional reviewsCount: null | number
Defined in#
system/core/backend/src/models/entities/product.entity.ts:112
sku#
• Optional sku: null | string
Implementation of#
TProduct.sku
Defined in#
system/core/backend/src/models/entities/product.entity.ts:50
slug#
• Optional slug: null | string
Implementation of#
TProduct.slug
Inherited from#
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:26
stockAmount#
• Optional stockAmount: null | number
Implementation of#
TProduct.stockAmount
Defined in#
system/core/backend/src/models/entities/product.entity.ts:63
stockStatus#
• Optional stockStatus: null | TStockStatus
Implementation of#
TProduct.stockStatus
Defined in#
system/core/backend/src/models/entities/product.entity.ts:68
updateDate#
• Optional updateDate: null | Date
Implementation of#
TProduct.updateDate
Inherited from#
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:56
variants#
• Optional variants: null | ProductVariant[]
Implementation of#
TProduct.variants
Defined in#
system/core/backend/src/models/entities/product.entity.ts:100
views#
• Optional views: null | number
Implementation of#
TProduct.views
Defined in#
system/core/backend/src/models/entities/product.entity.ts:102
Accessors#
meta#
• get meta(): undefined | null | TBasePageMeta
Returns#
undefined | null | TBasePageMeta
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:40
• set meta(data): void
Parameters#
| Name | Type |
|---|---|
data | undefined | null | TBasePageMeta |
Returns#
void
Defined in#
system/core/backend/src/models/entities/base-page.entity.ts:44