Redirect to Cart Page (Reformation Theme)

Hi everyone,

We’d like people to be sent automatically to the cart page after adding an item.

I have disabled cart drawer.

However, with the drawer disabled, people are just left on the product page.

Any ideas? Thanks

  1. In the “Assets” folder, locate and open the file named “theme.js” or “theme.js.liquid” (this may vary depending on your theme).
  2. Scroll down or use the search function to find the addItem function or similar code block that handles the addition of items to the cart.
  3. Inside the addItem function, look for the code that handles the successful addition of an item to the cart. It may include a callback or event handler.
  4. Add the following code snippet inside the success callback or event handler code block:
window.location.href = '/cart';
​