> For the complete documentation index, see [llms.txt](https://cowsinss-organization.gitbook.io/inventory-pro-add-on-documentation/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cowsinss-organization.gitbook.io/inventory-pro-add-on-documentation/content/03.-content/03.7-shop/shopbutton.md).

# ShopButton

{% hint style="info" %}
`ShopButton`inherits from [TradeButton](/inventory-pro-add-on-documentation/content/03.-content/03.6-others/03.6.1-trade-hub/tradebutton.md)
{% endhint %}

`ShopButton`inherits  sends Player Inputs like Pointer Enter, Pointer Exit, or Click Events to the Shop UI & Shop. It allows the interaction between the Shop and the Player, enabling the user to purchase Items by exchanging coins.

***

### SHOP BUTTON

* <mark style="color:purple;">callToAction:</mark> Text to display on the Purchase Button

{% hint style="info" %}
The rest of properties are part of [TradeButton](/inventory-pro-add-on-documentation/content/03.-content/03.6-others/03.6.1-trade-hub/tradebutton.md).
{% endhint %}

### Getters | ShopButton.cs&#x20;

> <mark style="color:orange;">ShopItemData</mark>
>
> Returns the [ShopItemData ](/inventory-pro-add-on-documentation/content/03.-content/03.7-shop/shop/shopitemdata.md)associated to the Button.

### Functions | ShopButton.cs&#x20;

> <mark style="color:green;">AddAmount(int amount)</mark>
>
> Increases Current Amount to be purchased.

> <mark style="color:green;">ReduceAmount(int amount)</mark>
>
> Decreases Current Amount to be purchased.
