Przejdź do głównej zawartości

variantPrices

Batch variant prices for the current visitor. A signed-in customer gets their own price here — a customer group price when the store gives their group one, otherwise the catalog price — and it is the price the cart and checkout charge. A guest gets the catalog price. On a store that restricts prices to signed-in customers (price/priceRange are null in the public catalog) a guest gets error code PRICES_REQUIRE_LOGIN. Max 100 ids per call.

variantPrices(
variantIds: [ID!]!
): [VariantPrice!]!

Arguments​

variantPrices.variantIds ● [ID!]! non-null scalar​

Variant UUIDs to price (max 100).

Type​

VariantPrice object​

Price of a single variant for the current visitor — a signed-in customer gets their own price (customer group price included), the price the cart and checkout charge.