# Reward Loox Product Reviews with Store Credit Using Dollarback

Want to reward customers for leaving visual reviews on your store using **Loox**? With **Dollarback**, you can automatically issue store credit whenever a customer submits a review — even though Loox doesn’t directly provide customer data in its Shopify Flow trigger.

This guide walks you through the workaround using Shopify Flow to set this up.

{% embed url="<https://youtu.be/2WNip3kYjbE>" %}

***

#### ✅ Prerequisites

Before getting started, make sure:

* You have installed and set up the Loox – Visual Product Reviews app.
* You have installed and configured Dollarback: Cashback & Loyalty.
* You are on a Loox plan that supports **Shopify Flow** triggers (usually paid).

***

#### 🔄 Step-by-Step Setup in Shopify Flow

**1. Enable Shopify Flow Integration in Loox**

* In your Loox admin, go to **Settings → Integrations**.
* Enable the **Shopify Flow** integration.
* Make sure **“New Review”** trigger is activated.

**2. Create a New Flow**

* Go to **Shopify Admin → Flow → Create Workflow**.
* Select **Loox: New Review** as the trigger.

**3. Add a Condition to Check for Order ID**

* Add a **Condition block**:
  * If `{{order_id}}` is **not empty**, continue the flow.
* This ensures only reviews tied to actual orders proceed to the next step.

**4. Get Order Data Using Order ID**

* Add an **Action**: **Get Order Data**.
* Set to:
  * **Sort by**: ID ascending
  * **Limit**: 1
  * **Query**: Advanced

    ```
    id={{order_id}}
    ```

**5. Loop Through the Returned Data**

* Add a **Repeat For Each Item** action.
  * Object: use the result from **Get Order Data**.
  * Choose **Repeat for each item**.

**6. Deposit Store Credit Using Dollarback**

* Inside the loop, add **Deposit Store Credit** (Dollarback action).
* Set:
  * **Amount**: e.g., ₹25 or $5
  * **Expiry**: `0` (if you don’t want it to expire) or set a number of days.

**7. Save and Test**

* Click **Apply Changes**.
* Submit a test review using Loox tied to an order to verify the setup works.

***

#### ⚠️ Why This Workaround?

Loox’s "New Review" trigger **does not pass customer data or order details directly**, which makes direct crediting impossible. This workaround fetches the order using the order ID passed in the trigger and then finds the associated customer.

***

#### 💬 Need Help?

If you run into any issues, feel free to reach out to our support team via the Dollarback app. We’re happy to assist and welcome any feedback to improve the experience.


---

# 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://help.dollarlabs.io/dollarback-store-credit/integrations/store-credit-for-submitting-review/reward-loox-product-reviews-with-store-credit-using-dollarback.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.
