🚨 Announcing Vendure v2 Beta

ProductVariantPrice

ProductVariantPrice

A ProductVariantPrice is a Channel-specific price for a ProductVariant. For every Channel to which a ProductVariant is assigned, there will be a corresponding ProductVariantPrice entity.

Signature

class ProductVariantPrice extends VendureEntity {
  constructor(input?: DeepPartial<ProductVariantPrice>)
  @Column() price: number;
  @EntityId() channelId: ID;
  @ManyToOne(type => ProductVariant, variant => variant.productVariantPrices)
    variant: ProductVariant;
}

Extends

Members

constructor

method
type:
(input?: DeepPartial<ProductVariantPrice>) => ProductVariantPrice

price

property
type:
number

channelId

property
type:
ID

variant

property