Issue: Clicking the “Add to Cart” button takes customers directly to the cart page. The store owner cannot find any JavaScript event listener tied to the button.
Suggestions offered:
Check Shopify Theme settings (Online Store > Themes > Customize) to ensure there isn’t a setting that redirects to the cart immediately after adding an item.
Review JavaScript files that handle the Add to Cart behavior.
Consider contacting Shopify Support.
Latest update from the store owner:
No “redirect to cart” option is visible in the Theme Customizer.
They have reviewed their JavaScript files but cannot identify any relevant code and ask which files specifically control Add to Cart.
Context/terms:
Event listener: JavaScript code that responds to user actions (e.g., a click on the Add to Cart button).
Status: Unresolved. Key open questions include which JavaScript files in the theme handle Add to Cart and where the redirect logic is configured, since it isn’t apparent in theme settings or obvious code. No code snippets or media were provided.
What JavaScript files are related to the Add to cart button. I checked every single one and there is nothing that makes sense to me to change.
In the Theme customizer there is no option to “Redirect” users to the cart immedtiately