> 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/sales.md).

# Sales

Create discounts on taught products.

Syntax:

```yaml
sales:
  id:
    name: TEXT
    type: TEXT
    value: #
    settings: 
      end: TEXT
      start: TEXT
      all-products: BOOLEAN
      products: 
      - TEXT
  ...
```

**Name**\
Name of the sale that will be displayed in the product lore. (e.g.: SUMMER SALE)

**Type**\
DIscount type can be PERCENTAGE or AMOUNT

**Value**\
Value depends on the type.. If value is 25 and type is Percentage, discount is 25%, but if the vlaue is 25 and type is Amount, is is 25 golds discount.

**End (end date) / Start (start date)**\
Date, when the sale will automatically end/start. Format: DD.MM.YYYY HH:MM:SS

**All products**\
If you want to apply sale to all of your products, just make this line true..

**Products**\
List of products. If you want to disable sale for some time use 'products: {}'
