About this block
Everything a shop customer needs on one page. Visitors sign in with a one-time email link, no password. Once signed in they see their profile and every order they've paid for, and only their own.
When to use it
- As the /account page of any shop that takes payments through Stripe.
- Instead of separate sign-in, profile and orders blocks.
What's inside
- A signed-out card with the magic-link form (it returns the visitor to /account) and its sending and sent states, and an unticked opt-in checkbox for news and offers.
- A signed-in profile header from the customer provider (collection: me) with order count, total spent and sign out.
- An order list from the customer provider (collection: orders), each with date, total, status and a Track button when there's a tracking link.
- An empty state for signed-in customers with no orders yet.
How to customize it
- Keep the block on a page at /account, or change the form's returnTo to the page you use.
- Point the Start shopping button at your shop page if it isn't /shop.
- Customer accounts must be turned on for the site's plan.
Questions
- Do customers need a password?
- No. They enter the email they ordered with and click the link they get. The sign-in lasts 30 days.
- Can one customer see another's orders?
- No. The orders are read for the signed-in customer only, and never shipped in the page for anyone else.