ProductPrices
const
ProductPrices: {~schema
: {isOnSale
:boolean
;isStartingFrom
:boolean
;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 an aggregate of all prices for a product.
This is a convenience component that aggregates the prices of all variants.
Type declaration
Name | Type | Default value | Description |
---|---|---|---|
| { | ‐ | ‐ |
|
| ‐ | If true, indicates that the product is discounted from its original price.
See |
|
| ‐ | If true, indicates that there are multiple variants with different prices. Can be used in the frontend to indicate a starting-from price, e.g. "from 100 EUR". |
| { |
| Advertised selling price of the product. Generally the lowest price of all variants. |
|
| ‐ | Amount in smallest unit of currency. E.g. cents, pence, etc. |
|
| ‐ | ISO 4217 currency code. E.g. 'USD', 'EUR', 'GBP', etc. |
|
| ‐ | Percentage of discount from the |
| { | ‐ | Original price of the product, non-discounted price or recommended retail price. If the product has multiple variants, this is the lowest non-discounted price of all variants. See |
|
| ‐ | Amount in smallest unit of currency. E.g. cents, pence, etc. |
|
| ‐ | ISO 4217 currency code. E.g. 'USD', 'EUR', 'GBP', etc. |
| { | ‐ | Price per unit of the product. E.g. 100 EUR per 100g. See https://support.google.com/merchants/answer/6324455?hl=en&sjid=12076696190966471938-EU |
| { |
| Price for the given reference measurement. |
|
| ‐ | Amount in smallest unit of currency. E.g. cents, pence, etc. |
|
| ‐ | ISO 4217 currency code. E.g. 'USD', 'EUR', 'GBP', etc. |
| { |
| The quantity in the product variant. E.g. a bottle might be 330ml |
|
| ‐ | ‐ |
|
| ‐ | ‐ |
| { |
| The reference quantity for showing the price per unit. E.g. xx EUR / 100ml |
|
| ‐ | ‐ |
|
| ‐ | ‐ |