> For the complete documentation index, see [llms.txt](https://help.dollarlabs.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://help.dollarlabs.io/dollarlabs-ultimate-discounts/quickstart.md).

# 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="/files/VMxeJLxANjWaUgNyXow2" 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 %}


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://help.dollarlabs.io/dollarlabs-ultimate-discounts/quickstart.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
