> This page is for Developer.

> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.bigcommerce.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.bigcommerce.com/_mcp/server.

# Product ID

Allows you to display product search controls for your widget.

---

**Widget Configuration Output**

```json showLineNumbers={false}
{
  "productId": "80"
}
```

---

**User Interface Output**

![output](/_fern-img/47d03a3c2b5b72b2c0e11ed5793bf755ccf9222ec6a085ef15bf690944391152.webp)

---

**JSON Schema**

| Property               | Type   | Description                                                                         | Example                 |
| ---------------------- | ------ | ----------------------------------------------------------------------------------- | ----------------------- |
| `type`                 | string | The type of setting component to display.                                           | "productId"             |
| `label`                | string | The user friendly message to inform the user how this setting will be used.         | Product                 |
| `id`                   | string | The variable name where the setting value will be available in the widget template. | "productId"             |
| `typeMeta`             | object | Additional information needed based on the selected setting type.                   |                         |
| `typeMeta.placeholder` | string | Placeholder text in the text editor.                                                | "Search by name or SKU" |