# ScriptProduct.getMainCategoryId()

#### <span style="color: #222222; font-size: 1.666em;">Получить <span style="font-weight: 400;">id категории продукта</span></span>  


```JavaScript
ScriptProduct.getMainCategoryId()
```

##### Описание:

<span style="font-weight: 400;">Возвращает id категории продукта.</span>

<span style="color: #222222; font-size: 1.4em; font-weight: 400;">Возвращает:</span>

**int** - <span style="font-weight: 400;">id категории продукта</span>

или

**null** - если значение не найдено.