# Quickstart

{% embed url="<https://drive.google.com/file/d/14pFqr7hEmwKSqYDSfbIIKNO7VufdI7fW/view?usp=sharing>" %}

### Build your first discount function

This section will help you build a simple discount that applies a 25% discount to a product when a customer adds more than 1 of a specific product in the cart. We assume that you already have the app installed on your Shopify store (if not - click here to install)

1. Open the <mark style="color:green;">Dollarlabs: Ultimate Discounts</mark> app on your store ([screenshot](https://shottr.cc/s/13tT/SCR-20240718-5b9.png))
2. Create a new product discount from the options ([screenshot](https://shottr.cc/s/1eeR/SCR-20240728-xus.png))
3. Select the Automatic discount type and give your function a name ([screenshot](https://shottr.cc/s/1eBO/SCR-20240728-xvf.png))
4. Configure the discount using the following conditions and save it ([screenshot](https://shottr.cc/s/1ial/SCR-20240728-xwl.png))
   1. Discount type = percentage and set it to 25%
   2. Condition 1 = Line Quantity > 1&#x20;
   3. Condition 2 = Product ID (choose your product)
5. That's it :)

In our case, we have selected the \`The Collection Snowboard: Hydrogen\` product to be eligible for this discount.&#x20;

<figure><img src="https://2844543096-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FcVBfwy7Yj4tU8TsxkHEr%2Fuploads%2FI155bYpwROZ0Znwa62VG%2Fimage.png?alt=media&#x26;token=d5e949ae-0f30-480d-b2bf-91e53d7bbc32" alt=""><figcaption><p>Since we are using an automatic discount, customer does not have to apply a code in any point. Discount is automatically applied.</p></figcaption></figure>

{% hint style="info" %}
To test your function, head over to your online store and try adding the product to cart for which you have configured the discount to apply on.\
\
Discounts created in the app automatically show up under the discounts tab of your Shopify admin ([reference](https://shottr.cc/s/1vLf/SCR-20240718-5iy.png)) - you can simply click on the discount from Shopify > Discounts to edit it.&#x20;

Please note that if you create an Automatic discount - it would be applicable to the entire store, so we suggest testing by adding a customer tag condition to limit testing to only your account / user.
{% endhint %}
