> For the complete documentation index, see [llms.txt](https://docs.getpurpledot.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.getpurpledot.com/integrations/apps-and-ecosystem/rebuy.md). Agents can also search and read this documentation through its [MCP server](https://docs.getpurpledot.com/~gitbook/mcp).

# Use Rebuy Smart Cart with Purple Dot

Set up Rebuy's Smart Cart flyout with a recommended-products widget so shoppers can add items to a cart that holds pre-orders.

Purple Dot supports Rebuy's Smart Cart with the cart flyout, which lets shoppers add more items to their cart. Rebuy is a Shopify app. These steps create the Smart Cart, a recommended-products widget that hides out-of-stock products, and attach the widget to the cart.

## Before you start

* You have a Shopify store with Purple Dot installed. See [Install the Purple Dot app](https://docs.getpurpledot.com/e-commerce-platforms/shopify/install-the-purple-dot-app.md).
* You have a Rebuy account. Install the Rebuy app from the Shopify App Store.
* Rebuy's Smart Cart flyout is supported with the Purple Dot checkout's combined cart.

## Steps

1. In Rebuy, go to **Smart Cart** and select **New Smart Cart**. This turns on the side cart.

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-161451f8c5aa5b42f3c728de31b505e25067766d%2Fhow-to-enable-smart-cart-1.png?alt=media" alt="Smart Cart page in Rebuy with the New Smart Cart button highlighted"><figcaption></figcaption></figure>
2. Create the cross-sell widget. Go to **Widgets** and select **Cart**. Next to **Recommended (Cart Flyout)**, select **Create New**.

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-91d7a838c05a149e6c0b09482783ae760303cff0%2Fhow-to-enable-smart-cart-2.png?alt=media" alt="Widgets page in Rebuy with the Cart widget type highlighted"><figcaption></figcaption></figure>

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-708147acff60677ffbb0fb24eb5ce086c7977fcd%2Fhow-to-enable-smart-cart-3.png?alt=media" alt="Create New button next to Recommended (Cart Flyout)"><figcaption></figcaption></figure>
3. Name the widget, then select **Create it!**

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-c32b45f2e8f852a9d86bbf064068bb48105d4270%2Fhow-to-enable-smart-cart-4.png?alt=media" alt="New Widget window with the widget name and Create it button"><figcaption></figcaption></figure>
4. On the widget page, select **Save**. The widget shows as **Installed**.

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-b161bfa2c9a8cadedd1971112dbc5add51570470%2Fhow-to-enable-smart-cart-5.png?alt=media" alt="Recommended (Cart Flyout) widget page with Save highlighted and the Installed label"><figcaption></figcaption></figure>
5. Set the data source. On the widget page, open **Data Source** and select **Filter out of stock products**. Add a rule: **IF** **Products** **Equals Anything**, **AND/OR** **RETURN** **Endpoint** **Recommended (AI)**. Select **Save**.

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-bc7c939d0dacc50582c5c27393386684b39ee789%2Fhow-to-enable-smart-cart-6.png?alt=media" alt="Data source with Filter out of stock products selected and a Recommended (AI) rule"><figcaption></figcaption></figure>
6. Attach the widget. Go back to the Smart Cart you created and scroll to **Cross-Sells Widgets**. Select the widget you created, then select **Save**.

   <figure><img src="https://2758444809-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FM5A7csYKEplvsuQqHenE%2Fuploads%2Fgit-blob-3901b3cb47bb774d172d0576ffb255772ba62a62%2Fhow-to-enable-smart-cart-7.png?alt=media" alt="Cross-Sells Widgets section with the new widget selected and Save highlighted"><figcaption></figcaption></figure>
7. In Rebuy's Smart Cart settings, make sure **Disabled Cart Page** is turned off. Purple Dot doesn't support it. See [My smart cart or checkout is not opening](https://docs.getpurpledot.com/troubleshooting/storefront-and-checkout/smart-cart-or-checkout-is-not-opening.md).

## Verify

Add a pre-order product to the cart. The cart flyout opens and the recommended products show. After you first set up the widget, products can take some time to appear.

## Troubleshooting

* [My smart cart or checkout is not opening](https://docs.getpurpledot.com/troubleshooting/storefront-and-checkout/smart-cart-or-checkout-is-not-opening.md)
* [The checkout is redirecting to the homepage](https://docs.getpurpledot.com/troubleshooting/storefront-and-checkout/checkout-is-redirecting-to-the-homepage.md)
* If products still don't appear, contact Rebuy's support team. They can push the product sync through.

## Related

* **Concept:** [Choosing a checkout method](https://docs.getpurpledot.com/understanding-purple-dot/choosing-a-checkout-method.md)
* **Do this:** [Configure checkout settings](https://docs.getpurpledot.com/set-up-and-launch/checkout-and-shopper-experience/configure-checkout-settings.md)
* **Fix it:** [My smart cart or checkout is not opening](https://docs.getpurpledot.com/troubleshooting/storefront-and-checkout/smart-cart-or-checkout-is-not-opening.md)


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.getpurpledot.com/integrations/apps-and-ecosystem/rebuy.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
