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

# Why Does 'Add to Cart' Go to the Cart Page Instead of Upcart?

> This article explains how to fix unexpected redirects to the Shopify cart page by adjusting your theme, app, or Upcart settings.

# Overview

If clicking "Add to Cart" on your storefront sends customers to the Shopify cart page instead of opening the Upcart drawer, it's usually due to a simple configuration issue. This guide walks through the most common causes and how to resolve them.

***

## Common causes

The cart redirect is usually triggered by one of the following:

* **Upcart settings** – certain compatibility settings may be disabled
* **Theme settings** – the theme may force a redirect by default
* **App conflicts** – another app could be controlling the cart behavior

***

## Step-by-step troubleshooting

Follow these steps in order. Test the cart after each step to check if the issue is resolved.

## 1. Update your Upcart settings

Go to:\
**Upcart > Cart Editor > Settings**

Enable **Enhanced AJAX API Compatibility**\
This prevents conflicts with third-party themes or apps that interfere with the cart behavior. It also improves how Upcart listens for product add events.

⚠️ **Important: Enhanced AJAX API Compatibility trade-offs**\
This setting is **disabled by default** for most stores. Enable it ONLY if your store uses a non-standard AJAX cart API and Upcart is not intercepting add-to-cart events. When enabled, other apps gain more control over cart behavior, which can cause redirect loops or send customers to the Shopify cart page instead of opening the Upcart drawer. If enabling this setting causes redirects, disable it and use the manual Upcart API (`upcartRegisterAddToCart`) instead.

For complete guidance on this setting, see [Enhanced AJAX API Compatibility](/upcart/enhanced_ajax_api_compatibility).

<img src="https://mintcdn.com/aftersell/djWVMMNjpCIkZ6mp/images/upcart/fa23e7104c9c.png?fit=max&auto=format&n=djWVMMNjpCIkZ6mp&q=85&s=5828970e7c6318ecfd98c40c810b22e9" alt="Image" width="623" height="130" data-path="images/upcart/fa23e7104c9c.png" />

## 2. Check your Shopify theme settings

Go to:\
**Shopify Admin > Online Store > Themes > Customize > Theme Settings > Products**

Look for the setting labeled **"Enable cart redirection"** and turn it off.\
This setting, when enabled, automatically redirects customers to the cart page after clicking Add to Cart, bypassing Upcart entirely.

## 3. Review other installed apps

Some apps like **ReCharge**, **WideBundle**, **Bold**, or **CartKit** may override cart behavior.

In each app's settings:

* Look for a toggle like "Redirect to Cart" or "Go to Cart After Add"
* Change it to **Stay on Page** or **Do Nothing**

If you're unsure whether an app is interfering, contact the app developer or their support team to confirm Upcart compatibility.

***

## Testing as you go

After each fix:

* Add a product to your cart
* Confirm whether Upcart opens the drawer or if you're still redirected
* Only move to the next step if the issue persists

This will help isolate what's causing the conflict.

***

## If it's still not working

If you've completed all steps above and Upcart still doesn't open, try the following:

## Switch to a default theme

* Temporarily enable a Shopify base theme like **Dawn**
* Activate Upcart and test the Add to Cart behavior
* If it works in Dawn but not in your current theme, the issue is theme-related

## Disable other cart-related apps one by one

Turn off one app at a time and test the cart each time. If Upcart works after disabling a specific app, you've identified the conflict.

## Use browser developer tools

* Press **F12** (or right-click → Inspect)
* Go to the **Console** and **Network** tabs
* Look for error messages or failed script loads (especially from `add.js`)
* Check if another app's script is overriding or hijacking the Add to Cart behavior

## When to contact support

If the issue persists after completing all steps, gather the following before reaching out:

* Your current **theme name and version**
* A list of **cart-related apps** you're using
* Any **error messages** from your browser console

Send this information to the Upcart support team via in-app chat for faster troubleshooting.

***

## Summary

This issue is almost always caused by one of three things:

* A theme or app is forcing cart redirects
* Upcart's compatibility setting is off
* Another script is hijacking the add-to-cart behavior
