What's the difference between '/cart' and '/checkout' on cart page's <form> action attribute?

Topic summary

Difference between using ‘/cart’ versus ‘/checkout’ as the HTML form action on the cart page’s checkout button. The form action attribute defines the URL the form submits to.

Recent update: On 2022/8/31, customers on one store could not complete checkout; clicking the checkout button only refreshed the cart page. Changing the cart page form’s action from ‘/cart’ to ‘/checkout’ resolved the issue.

Context: Five stores share the same codebase, suggesting the problem may not be caused by code differences. The poster asks what functional difference exists between ‘/cart’ and ‘/checkout’, and whether changing to ‘/checkout’ could impact tracking or other processes.

Open questions: Are there any side effects or best practices for choosing ‘/checkout’ over ‘/cart’ for the cart page form action? Should ‘/checkout’ be used going forward?

Status: No answers or resolution are provided yet; guidance is still sought.

Note: The code snippet showing the form’s action value is central to understanding the issue.

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

So yesterday(2022/8/31) some of my customers told me they couldn’t checkout. I tested and found out that one of my stores’ cart page just refreshes when I click the checkout button. I have 5 five stores and they shared same codes, so I know the issue is not the code, but I am losing orders and just didn’t know what’s wrong so I simply changed the cart page form


to

```markup

and problem solved.

So I am wondering does anybody know what is the difference between '/cart' and '/checkout'? Is there any issues that may be caused when I changed the value '/cart' with '/checkout' here? Maybe some tracking issue? Should I keep using '/checkout' instead of '/cart' in the future?
1 Like