Update Prices on Page
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 - activeCurrencyCodeprop for- <IntegrationType>Provider.- USDwill be used by default if not set.
- If necessary, update - activeCurrencyCodethrough context:
const { setActiveCurrencyCode } = useContext(IntelligemsContext);
setActiveCurrencyCode("EUR");- Experiment currency is set through the Intelligems app. Prices for Experiments with a currency != to - activeCurrencyCodewill return the original price.
Last updated
