Order History Model

General #

An order history model records the order status changes an order goes through. An order can have many history models related to it, the latest history model represents the current status an order is in.

To get all history models for an order with twig you could do:

Current Order Status: {{order.orderStatus.name}} <br>
{% for history in order.histories %}
  Status: '{{ history.newStatus.name ?? ""}}' (previously '{{ history.prevStatus.name ?? ""}}')
  with message: '{{ history.message }}'<br>
{% endfor %}

message #

The message saved when the order status was changed.

orderId #

The order ID.

prevStatus #

Returns an Order Status Model of the previous status this order was in.

Returns null if there was no previous status, as is the case when a new order is created.

prevStatusId #

The the ID of the previous status this order was in.

newStatus #

Returns an Order Status Model of the new status this order is in.

newStatusId #

The status this order history model recorded

customerId #

The customer who made this order ID

Buy Craft Commerce

Craft Commerce site license

Includes

  • Standard tech support
  • Unlimited app updates
  • Craft Pro site license
Buy now for $999
Can I try before buying?

Absolutely. Just download it from the “Download” button in the site header and follow our installation instructions. You’ll have the full feature set to experiment with, with just one limitation: you won’t be able to charge credit cards. Until Craft Commerce has been purchased and activated, it’s limited to a single dummy gateway.

Will there be recurring/upgrade fees?

Nope, it’s just a one-time license fee per site.

Can I use this on an existing Craft site?

Yes! And if you already have a Craft Pro license (or you don’t need one), just flip that “Include a Craft Pro license” switch in the purchase form, and we’ll drop the price to $700.

Is Craft Pro required?

Craft Commerce does not require Craft Pro; it works perfectly fine on Craft Client and Personal editions as well!

Can I try before buying?

Absolutely. Just download it from the “Download” button in the site header and follow our installation instructions. You’ll have the full feature set to experiment with, with just one limitation: you won’t be able to charge credit cards. Until Craft Commerce has been purchased and activated, it’s limited to a single dummy gateway.

Will there be recurring/upgrade fees?

Nope, it’s just a one-time license fee per site.

Can I use this on an existing Craft site?

Yes! And if you already have a Craft Pro license (or you don’t need one), just flip that “Include a Craft Pro license” switch in the purchase form, and we’ll drop the price to $700.

Is Craft Pro required?

Craft Commerce does not require Craft Pro; it works perfectly fine on Craft Client and Personal editions as well!