Update Prices on Page
Last updated
<IgPrice/> ComponentThe <IgPrice/> component is recommended as it will color prices throughout your page while in Integration Mode.
useIgPrices() HookThe useIgPrices() hook may be used to get the updated prices based on the user's test group.
Set a default activeCurrencyCode prop for <IntegrationType>Provider. USD will be used by default if not set.
If necessary, update activeCurrencyCode through context:
const { setActiveCurrencyCode } = useContext(IntelligemsContext);
setActiveCurrencyCode("EUR")Experiment currency is set through the Intelligems app. Prices for Experiments with a currency != to activeCurrencyCode will return the original price.
Last updated