Skip to main content

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​

onSale ● Boolean​

Whether it is in sale or not.

discount ● TaxedMoney​

The discount amount if in sale (null otherwise).

discountPrior ● TaxedMoney​

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

price ● TaxedMoney​

The price, with any discount subtracted.

priceUndiscounted ● TaxedMoney​

The price without any discount.

pricePrior ● TaxedMoney​

The price prior to discount.

Added in Saleor 3.21
Show deprecatedHide deprecated

discountLocalCurrency ● TaxedMoney​

DEPRECATED

Always returns null.

The discount amount in the local currency.

priceLocalCurrency ● TaxedMoney​

DEPRECATED

Always returns null.

The discounted price in the local currency.

Member Of​

ProductVariant object