Skip to content

Commit

Permalink
Fixed state machine link
Browse files Browse the repository at this point in the history
  • Loading branch information
davekiss authored and peterberkenbosch committed Dec 9, 2013
1 parent 3efcf8d commit 7d974cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions content/developer/core/orders.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Orders have the following attributes:
* `item_total`: The sum of all the line items for this order.
* `adjustment_total`: The sum of all adjustments on this order.
* `total`: The result of the sum of the `item_total` and the `adjustment_total`.
* `state`: The current state of the order. To read more about the states an order goes through, read [The Order State Machine](#state_machine) section of this guide.
* `state`: The current state of the order. To read more about the states an order goes through, read [The Order State Machine](#the_order_state_machine) section of this guide.
* `email`: The email address for the user who placed this order. Stored in case this order is for a guest user.
* `user_id`: The ID for the corresponding user record for this order. Stored only if the order is placed by a signed-in user.
* `completed_at`: The timestamp of when the order was completed.
Expand Down Expand Up @@ -108,4 +108,4 @@ If you change any aspect of an `Order` object within code and you wish to update

For example, if you create or modify an existing payment for the order which would change the order's `payment_state` to a different value, calling `update!` will cause the `payment_state` to be recalculated for that order.

Another example is if a `LineItem` within the order had its price changed. Calling `update!` will cause the totals for the order to be updated, the adjustments for the order to be recalculated, and then a final total to be established.
Another example is if a `LineItem` within the order had its price changed. Calling `update!` will cause the totals for the order to be updated, the adjustments for the order to be recalculated, and then a final total to be established.

0 comments on commit 7d974cb

Please sign in to comment.