# Category-Based Upsell for Logged-In Users

#### Introduction <a href="#h_78b244bf4e" id="h_78b244bf4e"></a>

In this scenario, When the user logs in as a customer and buys products from a specific category, they will receive an Upsell offer on the checkout page.

This user guide explains how to create a Checkout Upsell Campaign using UpsellWP.

{% hint style="warning" %}
Please note that before proceeding, you must have installed and activated the UpsellWP. It is important to note that this feature requires the PRO version.

[Get UpsellWP PRO](https://upsellwp.com/)
{% endhint %}

#### Creating an offer: <a href="#h_d638942fe9" id="h_d638942fe9"></a>

* Go to WordPress dashboard -> UpsellWP -> Create New Campaign -> choose “Checkout Upsell”.
* Click on the button “Add offer”.

<figure><img src="https://103964351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiL9ouOmxB3CQwG5Kp3KD%2Fuploads%2F2UnEKzO7O5wxhqAekqfL%2FUntitled.png?alt=media&#x26;token=48769c6e-8849-46a2-ab9b-4e677bf5cb4a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://103964351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiL9ouOmxB3CQwG5Kp3KD%2Fuploads%2FvSt85Bvnpdm74EAkNiYR%2FUntitled.png?alt=media&#x26;token=55954357-1e0b-4513-9da7-ba5a91780983" alt=""><figcaption></figcaption></figure>

<figure><img src="https://103964351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiL9ouOmxB3CQwG5Kp3KD%2Fuploads%2FY41Q7dZgWoEUfeDCB0x7%2FUntitled.png?alt=media&#x26;token=57bd1a0b-8484-4dab-a61f-c49549485a5a" alt=""><figcaption></figcaption></figure>

<figure><img src="https://103964351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiL9ouOmxB3CQwG5Kp3KD%2Fuploads%2FHBbJnrZKzhDxdFxLqHm2%2FUntitled.png?alt=media&#x26;token=992f371b-0393-4fd0-84e3-04b366555b6b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://103964351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiL9ouOmxB3CQwG5Kp3KD%2Fuploads%2FaX2Gq7gitalFCqXgk2GX%2FUntitled.png?alt=media&#x26;token=526ac7a5-7379-479f-a29e-2ed055ab2458" alt=""><figcaption></figcaption></figure>

#### Details of configurations are:

**Step 1:** Choose the offer product (Cap) that you want to display on the offer page by typing a few characters of the product name and setting a quantity for the selected offer product or adjusting the quantity based on your requirement.

**Step 2:** Choose the “Discount Type” as Percentage and set the value as 10%. You also have the option to choose other discount types such as fixed discount, free and No discount.

**Step 3:** You have successfully created an offer, click on the button “Add offer”

**Step 4:** Now choose the Conditions as “User Role”, In list “Customer”, You also have the option to choose other conditions.

**Step 5:** Now select the other Conditions as “Categories of item in the Cart ”, In list -> Clothing, You also have the option to choose other conditions.

**Step 6:** Once you have successfully created a campaign click Save and Close.

**Other details shown in the below screenshot are (optional):**

<figure><img src="https://103964351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiL9ouOmxB3CQwG5Kp3KD%2Fuploads%2F6mPtG2fbiqgcK0iwzEWI%2FUntitled.png?alt=media&#x26;token=46de9aac-6975-4123-a4a0-b98d2de69eb4" alt=""><figcaption></figcaption></figure>

**Overall usage limit:** The "Overall usage limit" refers to the maximum number of times an offer can be used by all customers as a whole. Something like early-bird offers for the first 5 users or 10 users.

For example, if the limit is 100, the offer can only be applied to a total of 100 orders, regardless of the number of customers. Once the limit is reached, the offer will get disabled automatically.

**Usage limit per customer:** The “Usage limit per customer” refers to a restriction on the number of times a specific upsell offer can be claimed by an individual customer. It sets a maximum limit on the usage of the upsell for each customer.

For example: If the usage limit per customer is set to 3, it means that each customer can only claim the offer up to a maximum of 3 times. Once a customer has claimed the offer 3 times, they will no longer be able to avail the offer.

Now, we have successfully created an offer,

**Let's see how it works on the checkout page.**

<figure><img src="https://103964351-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FiL9ouOmxB3CQwG5Kp3KD%2Fuploads%2FHG0Ep0K3PHzpN8YCIfGR%2FUntitled.png?alt=media&#x26;token=a2c037a8-92d9-4c25-a71a-584a79e254cc" alt=""><figcaption></figcaption></figure>

{% hint style="warning" %}
Some of the above discussed scenarios require PRO

[Get UpsellWP PRO](https://upsellwp.com/)
{% endhint %}

#### Still unclear? <a href="#h_b0cc773e5e" id="h_b0cc773e5e"></a>

If you need any assistance, please create a[ support request](https://upsellwp.com/support/) at our ticket system. We are always happy to assist you :)


---

# 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://docs.upsellwp.com/example-scenarios/category-based-upsell-for-logged-in-users.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.
