How can I stop immediate redirect to cart after adding items?

Topic summary

Main issue: After clicking “Add to cart,” stores (mostly on the Debut theme) redirect immediately to the cart page. Most want to keep shoppers on the same page with a popup/side-cart; one user wants the opposite (force redirect).

Expected behavior: Debut’s default adds to cart and shows an on-page popup (AJAX cart), not a redirect.

Likely causes cited:

  • Theme/app customizations altering cart behavior (e.g., product customization apps).
  • Custom forms posting to /cart/add or JavaScript overriding default (see provided code snippet), which may trigger full-page redirects instead of AJAX/side-cart.

Concrete outcome: The original poster resolved the redirect by uninstalling a conflicting app. Others asked which app it was, but no name was shared.

Other requests:

  • How to prevent redirect and instead open a slide/side cart (es: “que se abriera el carrito de esta app”).
  • How to enable an “Add to Cart” notification for custom buttons.
  • One user wants to enable redirect to cart after add.

Notes:

  • A code snippet was provided and is central to diagnosing behavior.
  • A participant noted a past setting to toggle redirect seems to be gone.

Status: Partially resolved (for OP via app removal); multiple similar cases remain open without a confirmed universal fix.

Summarized with AI on February 27. AI used: gpt-5.

I think I solved this problem, I uninstalled one of the applications. Thanks