Update Prices on Page
The <IgPrice/> Component
The <IgPrice/> component is recommended as it automatically applies assigned test prices and uses Integration Mode styling.
The useIgPrices() Hook
The useIgPrices() hook may be used to pull updated prices based on the user's test group and then render the result however your storefront needs.
Internationalization
Set a default
activeCurrencyCodeprop for the provider.USDwill be used by default if not set.If necessary, update
activeCurrencyCodethrough context:
const { dispatchData } = useContext(IntelligemsContext);
dispatchData({
type: "SET_ACTIVE_CURRENCY_CODE",
payload: "EUR",
});Experiment currency is set through the Intelligems app. Prices for experiments with a currency that does not match
activeCurrencyCodewill return the original price.