Price Hooks
The returned price useIgPrices()
follow the following logic:
If no
productId
orvariantId
is provided, theoriginalPrice
is returnedIf the
productId
and/orvariantId
is part of a Test, and the Test is live, or the test and user are both in preview mode:If a
productId
is provided but avariantId
is not, the lowest-priced variant price is returnedIf the
currencyCode
of the Experiment does not matchactiveCurrencyCode
,originalPrice
is returnedIf a
productId
andvariantId
is provided, the test-group variant price is returned
If the
productId
is not in an active test, theoriginalPrice
is returned
useIgPrices()
useIgPrices()
Returns the product price based on the user's test group. Intelligems will return the original prices if updated prices are not found.
Last updated