> ## Documentation Index
> Fetch the complete documentation index at: https://aiodapp.com/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Fix cart refresh issues with free gifts

> Troubleshoot a Shopify cart drawer that does not immediately show AIOD free-gift additions or removals.

If AIOD adds or removes a free gift but the cart drawer does not immediately show the change, the discount may be working while the theme's visible cart is stale.

<img src="https://mintcdn.com/aiod-4861190f/i-rrNz8paXSQjZm3/images/help/settings-overview.png?fit=max&auto=format&n=i-rrNz8paXSQjZm3&q=85&s=43a466e6cac8988d994444212b7f1b0d" alt="AIOD settings screen showing the Custom JS and CSS area used for theme-specific integrations" width="1619" height="971" data-path="images/help/settings-overview.png" />

## Start with these checks

1. Confirm **Latest Widget Manager** is enabled and saved in the published theme.
2. Test the offer in a private or incognito window.
3. Add enough items to cross the gift threshold, then reduce the cart below it.
4. Check whether the cart page, cart drawer, and checkout show different results.

If a full page reload shows the correct gift, the remaining issue is usually the theme's cart refresh behavior rather than the discount rule.

## Why this happens

Shopify themes implement cart drawers in different ways. After an app changes the cart, some themes automatically fetch and redraw the cart sections; others require a theme-specific refresh event or JavaScript function. There is no single refresh command that works for every theme.

## What to send AIOD support

Ask your theme developer for the global JavaScript event or function that refreshes the cart drawer without reloading the page. Send that information to AIOD support together with:

* the published theme name;
* the page where the stale cart appears;
* whether the issue occurs when a gift is added, removed, or both; and
* a short screen recording with customer information removed.

A theme may expose a function similar to `window.Cart.reload()`, but that is only an example. Do not add it to your store unless your theme developer confirms the exact API for your theme.

## Temporary workaround

Until the theme-specific refresh is connected, customers can open the full cart page or reload the storefront to see the latest cart state. Confirm at checkout that the final line items and discounts are correct.

Checkout presentation is controlled by Shopify and can differ from the storefront cart drawer. A storefront display issue does not always mean the underlying discount failed.
