Cart Does Not Update Unless Page Is Refreshed(RefreshTheme)

Topic summary

Main issue: Cart icon and cart contents don’t update unless the page is refreshed; an add-to-cart attempt throws a 404 on /cart/add and a “Syntax Error: Unexpected token ‘<’” in the console.

Troubleshooting so far:

  • Theme changes suspected, but the problem persists on fresh installs of Refresh and Dawn (default Shopify themes).
  • Apps involved: CJ Dropshipping and an email app; reproducing with CJ on another store didn’t surface the error.
  • Suggestions included reinstalling the theme, checking product stock/quantity, and testing with a new in‑stock product.

Workarounds/Actions:

  • OP switched cart behavior from “drawer” (slide‑out mini cart) to “page,” forcing a full page load where items then appear.
  • A collaborator access offer was made; OP is hesitant to grant access.

Latest fix shared (worked for another user on Dawn): add a guard line in product-info.js at the start of fetchQuantityRules(): if (!this.querySelector(‘.quantity__rules-cart’)) return; This prevents failures when the expected cart quantity rules element is missing and allows cart updates.

Status: No confirmed resolution from OP; issue appears ongoing. Images were provided to illustrate before/after refresh behavior.

Summarized with AI on December 16. AI used: gpt-5.

What plugins are you using?