Skip to content

Purchase flow

Patrik Sletmo edited this page May 12, 2017 · 2 revisions

This section describes the process in which a user purchases one or more items in the store. The process is broken into multiple steps which are first listed and then detailed.

Steps

  1. User opens the store frontpage and is presented with a selection of available products
  2. User adds a product to their cart
  3. User opens their cart
  4. User chooses to check out
  5. User verifies the amount and proceeds with purchase
  6. User pays for the order
  7. User is shown the completed order
  8. User is sent a receipt

1. User opens the store frontpage

This and every following step requires the user to be logged in

The store frontpage presents two pieces of information

  • Rebate information
  • Products

Rebate information

The top of the store frontpage consist of rebate information for the logged in user.

If the user is a member of LinTek she will be presented with a text describing that the rebate will be added at check out.

If the user is a funkis she will be presented with their remaining funkis rebate.

FIXME: Festival volunteer workers (Flamman, KK, Baljan, etc) with a given rebate does not see any indicator for their rebate.

This feature is using already existing information in the user model which is accessed from current_user.

Products

The rest of the store frontpage consist of the available products. The products are fetched from the database endpoint /api/v1/shopping_product with the parameter limit_items=true.

Clone this wiki locally