# Programmatic market values

> Set market, currency, and price visibility values for Cevoid UGC widgets in code.

Breadcrumb: Widget › Market values · Updated: 2026-10-17
Docs index: https://docs.cevoid.com/developers/llms.txt

Use programmatic market values when URL-based market detection is not enough. This is an advanced setup path. Start with [Embed galleries and cards](https://docs.cevoid.com/developers/widget/embed.md) and [Dynamic galleries](https://docs.cevoid.com/developers/widget/dynamic-galleries.md) if you have not embedded widgets yet.

Common cases:

- one URL serves multiple markets, such as US and UK storefronts on the same path
- visitors can change language or currency without a redirect
- development or staging URLs do not match production market URLs

## Set the market

Set `data-market` to the Cevoid market ID that should control widget language, product links, and default currency behavior.

```html
<div id="cevoid-container" data-gallery="GALLERY_ID" data-market="MARKET_ID"></div>
```

For example, if your storefront detects an English and USD session, set `data-market` to the Cevoid market ID for that language and market setup.

## Set currency separately

Set `data-market-currency` when prices and currency should come from a different market than the main `data-market`.

```html
<div
  id="cevoid-container"
  data-gallery="GALLERY_ID"
  data-market="LANGUAGE_MARKET_ID"
  data-market-currency="CURRENCY_MARKET_ID"
></div>
```

This keeps language and product links from `data-market`, while price and currency come from `data-market-currency`.

## Hide prices

Set `data-hide-prices="true"` when product prices should be hidden in the widget.

```html
<div id="cevoid-container" data-gallery="GALLERY_ID" data-hide-prices="true"></div>
```

## Related articles

- [Embed UGC galleries and cards](https://docs.cevoid.com/developers/widget/embed.md)
- [Dynamic galleries](https://docs.cevoid.com/developers/widget/dynamic-galleries.md)
- [Products and markets](https://docs.cevoid.com/localization/products-markets.md)

---

Canonical: https://docs.cevoid.com/developers/widget/market-values
