Skip to content

Instantly share code, notes, and snippets.

@clatwell
Created April 29, 2019 00:59
Show Gist options
  • Save clatwell/b485829c7fabcb491e3af064b2aaa658 to your computer and use it in GitHub Desktop.
Save clatwell/b485829c7fabcb491e3af064b2aaa658 to your computer and use it in GitHub Desktop.
[Viget + Shedd] Login Redirects

Create an Account / No items in Cart

Users can create an account outside of the Membership purchase pathway (/accounts/new)

Once the account is created, I'm redirected to /orders/new (Complete Your Purchase) for a $0 transaction.

If a user creates an account and there are no items in the cart, redirect them to /contact_info/edit

Login in Ecomm header from Tickets app

Ideally would redirect to Tickets app

Login in Ecomm header from Cart app

Ideally would redirect to Carts app

Login on Complete Your Purchase page

The login link on the /guest_orders/new page isn't wired up yet. Ideal behavior is:

  1. Link goes to /accounts/sign_in
  2. User logs in
  3. User is redirected to back to /orders/new
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment