Update Prices on Page
The IntelligemsNextProvider HOC is always required.
The <IgPrice/>
Component
<IgPrice/>
ComponentThe <IgPrice/>
component is recommended as it will color prices throughout your page while in Integration Mode.
The useIgPrices()
Hook
useIgPrices()
HookThe useIgPrices()
hook may be used to get the updated prices based on the user's test group.
Internationalization
Set a default
activeCurrencyCode
prop forIntelligemsNextProvider
.USD
will be used by default if not set.If necessary, update
activeCurrencyCode
through context:
Experiment currency is set through the Intelligems app. Prices for Experiments with a currency != to
activeCurrencyCode
will return the original price.