# 10. Stack Discounts Widget

{% embed url="<https://www.youtube.com/watch?index=10&list=PLGASFo0vRDpks4cfL2V9D0z3Cm78A92Hq&v=ewQ4q-xsTic>" %}

The Stack Discounts Widget allows you to present your campaigns and discounts to customers in a visually appealing manner.

It is perfect for automatic campaigns. When you create an automatic discount in Shopify, customers will see the discount on the cart page or at checkout when they purchase related items.

But what if you want to inform customers about eligible products to prompt them to buy? Our widget solves this by displaying all savings opportunities, thereby increasing conversions.

The widget also allows customers to directly add discount-related products to their cart and proceed to checkout. It is ideal for special occasions like Black Friday, Women's Day, and more. We have even built a themes library for this purpose, which we will discuss later.

<figure><img src="/files/NtPfSLm3sEMjYQLQ0R9T" alt=""><figcaption></figcaption></figure>

You can fully customize the widget's colors and text.&#x20;

It can also be used for code campaigns. When you have at least one code campaign, customers will see a discount code input on the widget. Upon applying the campaign code, the discount will be visible in the widget and presented to customers.&#x20;

The Stack Discounts Widget is visible by default. However, if you prefer not to use the widget and only require our discount combination logic without displaying the discounts, you can hide the widget in the settings.

<figure><img src="/files/gZTCuSNHOiU4SjvXzpfE" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions: 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://uniocode.gitbook.io/stack-discounts/10.-stack-discounts-widget.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.
