# Update Prices on Page

## The `<IgPrice/>` Component

The [`<IgPrice/>`](/version-1.2.16/reference/components/price-components.md#less-than-igprice-greater-than) component is recommended as it automatically applies assigned test prices and uses Integration Mode styling.

## The `useIgPrices()` Hook

The [`useIgPrices()`](/version-1.2.16/reference/hooks/price-hooks.md#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

1. Set a default `activeCurrencyCode` prop for the provider. `USD` will be used by default if not set.
2. If necessary, update `activeCurrencyCode` through context:

```typescript
const { dispatchData } = useContext(IntelligemsContext);

dispatchData({
  type: "SET_ACTIVE_CURRENCY_CODE",
  payload: "EUR",
});
```

3. Experiment currency is set through the Intelligems app. Prices for experiments with a currency that does not match `activeCurrencyCode` will return the original price.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://headless.intelligems.io/version-1.2.16/usage/update-prices-on-page.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
