Variables

ProductVariantPrices

declaration

const ProductVariantPrices: { ~schema: { isOnSale: boolean; lowestPriorPrice?: { amount: number; currency: string; }; price: { amount: number; currency: string; }; savingsPercent?: number; strikethroughPrice?: { amount: number; currency: string; }; unitPrice?: { price: { amount: number; currency: string; }; quantity: { unit: MeasurementUnit; value: number; }; reference: { unit: MeasurementUnit; value: number; }; }; }; }

Represents the price-information of a product variant.

Note that there's also ProductVariantQuantityPrices for quantity-based pricing.

Type declaration

NameTypeDefault valueDescription

~schema

{ isOnSale: boolean; lowestPriorPrice?: { amount: number; currency: string; }; price: { amount: number; currency: string; }; savingsPercent?: number; strikethroughPrice?: { amount: number; currency: string; }; unitPrice?: { price: { amount: number; currency: string; }; quantity: { unit: MeasurementUnit; value: number; }; reference: { unit: MeasurementUnit; value: number; }; }; }

~schema.isOnSale

boolean

If true, indicates that the product variant is discounted from its original price. See strikethroughPrice for the original price and savingsPercent for the percentage of discount.

~schema.lowestPriorPrice?

{ amount: number; currency: string; }

Lowest price of the product variant in the last 30 days.

Required for regulatory compliance with the EU Omnibus Directive.

See

https://www.ey.com/en_pl/insights/law/omnibus-directive

~schema.lowestPriorPrice.amount

number

Amount in smallest unit of currency. E.g. cents, pence, etc.

~schema.lowestPriorPrice.currency

string

ISO 4217 currency code. E.g. 'USD', 'EUR', 'GBP', etc.

~schema.price

{ amount: number; currency: string; }

Money

The price of the product variant for a quantity of 1.

See

https://schema.org/price

~schema.price.amount

number

Amount in smallest unit of currency. E.g. cents, pence, etc.

~schema.price.currency

string

ISO 4217 currency code. E.g. 'USD', 'EUR', 'GBP', etc.

~schema.savingsPercent?

number

Percentage of discount from the strikethroughPrice.

~schema.strikethroughPrice?

{ amount: number; currency: string; }

The price of the product variant for a quantity of 1, before any discounts.

See

https://support.google.com/merchants/answer/9017019?hl=en

~schema.strikethroughPrice.amount

number

Amount in smallest unit of currency. E.g. cents, pence, etc.

~schema.strikethroughPrice.currency

string

ISO 4217 currency code. E.g. 'USD', 'EUR', 'GBP', etc.

~schema.unitPrice?

{ price: { amount: number; currency: string; }; quantity: { unit: MeasurementUnit; value: number; }; reference: { unit: MeasurementUnit; value: number; }; }

Price per unit of the product variant. E.g. 100 EUR per 100g.

~schema.unitPrice.price

{ amount: number; currency: string; }

Money

Price for the given reference measurement.

~schema.unitPrice.price.amount

number

Amount in smallest unit of currency. E.g. cents, pence, etc.

~schema.unitPrice.price.currency

string

ISO 4217 currency code. E.g. 'USD', 'EUR', 'GBP', etc.

~schema.unitPrice.quantity

{ unit: MeasurementUnit; value: number; }

Measurement

The quantity in the product variant. E.g. a bottle might be 330ml

~schema.unitPrice.quantity.unit

MeasurementUnit

~schema.unitPrice.quantity.value

number

~schema.unitPrice.reference

{ unit: MeasurementUnit; value: number; }

Measurement

The reference quantity for showing the price per unit. E.g. xx EUR / 100ml

~schema.unitPrice.reference.unit

MeasurementUnit

~schema.unitPrice.reference.value

number