> For the complete documentation index, see [llms.txt](https://gstudios.gitbook.io/gsshopsystem/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://gstudios.gitbook.io/gsshopsystem/setup/product.md).

# Product

## Syntax

<pre class="language-yaml"><code class="lang-yaml">cost: #
name: TEXT
actions: {}
economy: TYPE
<strong>amount_select: BOOLEAN
</strong><strong>shopping_cart: BOOLEAN
</strong>check_full_inventory: BOOLEAN
purchase_conditions: {}
view_conditions: {}
live_economy:
...
item:
...
</code></pre>

## Cost

Cost of the item. Cost can be live update with the live economy feature.

```yaml
cost: #
```

## Economy

Select a specific economy type for thr product from config.

```yaml
economy: #
```

## Purchase conditions

Set conditions that will allow/disallow users to purchase items.\
Check the [GSLibrary ](https://gstudios.gitbook.io/gslibrary/)page for more.

```yaml
purchase_conditions: 'EXPRESSION'
```

## View conditions

Set conditions that will allow/disallow users to view items in the gui.\
Check the [GSLibrary ](https://gstudios.gitbook.io/gslibrary/)page for more.

```yaml
view_conditions: 'EXPRESSION'
```

## Actions

Actions to be performed after the purchase of the item. The placeholder of the purchaser is **%player%**\
Check the [GSLibrary ](https://gstudios.gitbook.io/gslibrary/)page for more.

```yaml
actions: 'EXPRESSION'
```

## Live economy

Link your product price with website stores like Tebex or CraftingStore

**Syntax**

```yaml
live-economy:
  type: TEXT
  api-key: TEXT
  product-id: #
  exchange-rate:
    divider: #.#
    amount: #
```

**Type**\
Type can be CRAFTINGSTORE (<https://craftingstore.net>) or TEBEX (<https://tebex.io>)

**API key**\
Your applicaiton API key

**Product id**\
Package id of your product on the webstore

**Exchange rate:**\
This means that for example 1$ is 10 when you set divider to 0.1 and amount to 1

## Amount selection menu

If you want to provide your players to select an amount of purchased item, you can! Just put to the product settings sections this boolean

<pre class="language-yaml"><code class="lang-yaml"><strong>amount_select: true
</strong></code></pre>

Now everything works! But if you want to give the player selected amount of items, you can use placeholder %amount% in console and player command actions.

## Shopping cart

If you want to disable shopping cart only for this product, you can disable it just with this line.

```yaml
shopping_cart: false
```

## Full inventory check

If yo uwant to check, if player has full inventory, you can use this method.\
If you will enable the check, player will not be able to purchase the product.

```yaml
check_full_inventory: true
```
