VariantPricingInfo Object
Represents availability of a variant in the storefront.
type VariantPricingInfo {
  onSale: Boolean
  discount: TaxedMoney
  discountPrior: TaxedMoney
  discountLocalCurrency: TaxedMoney @deprecated
  price: TaxedMoney
  priceUndiscounted: TaxedMoney
  pricePrior: TaxedMoney
  priceLocalCurrency: TaxedMoney @deprecated
}
Fields
VariantPricingInfo.onSale ● Boolean scalar miscellaneous
Whether it is in sale or not.
VariantPricingInfo.discount ● TaxedMoney object miscellaneous
The discount amount if in sale (null otherwise).
VariantPricingInfo.discountPrior ● TaxedMoney object miscellaneous
The discount amount compared to prior price. Null if product is not on sale or prior price was not provided in VariantChannelListing
Added in Saleor 3.21 (unreleased)VariantPricingInfo.discountLocalCurrency ● TaxedMoney deprecated object miscellaneous
DEPRECATED
This field will be removed in Saleor 4.0. Always returns null.
The discount amount in the local currency.
VariantPricingInfo.price ● TaxedMoney object miscellaneous
The price, with any discount subtracted.
VariantPricingInfo.priceUndiscounted ● TaxedMoney object miscellaneous
The price without any discount.
VariantPricingInfo.pricePrior ● TaxedMoney object miscellaneous
The price prior to discount.
Added in Saleor 3.21 (unreleased)VariantPricingInfo.priceLocalCurrency ● TaxedMoney deprecated object miscellaneous
DEPRECATED
This field will be removed in Saleor 4.0. Always returns null.
The discounted price in the local currency.
Member Of
ProductVariant object