Skip to content

Commit

Permalink
dateCompleted -> dateOrdered for *all* versions! :O
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustMiller committed Jan 21, 2025
1 parent df4693f commit 7996030
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions docs/commerce/2.x/orders.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ The ‘Order Reference Number Format’ is a mini Twig template, which will be r
Attributes on the order can be accessed as well as Twig filters and functions, for example:

```twig
{{ object.dateCompleted|date('Y') }}-{{ id }}
{{ object.dateOrdered|date('Y') }}-{{ id }}
```

Ouput:
Expand All @@ -61,7 +61,7 @@ The `seq()` function takes the following parameters:

For example:
```twig
{{object.dateCompleted|date('Y')}}-{{ seq(object.dateCompleted|date('Y'), 8) }}
{{object.dateOrdered|date('Y')}}-{{ seq(object.dateOrdered|date('Y'), 8) }}
```

Ouput:
Expand Down
6 changes: 3 additions & 3 deletions docs/commerce/3.x/orders-carts.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ containsGeneratedContent: yes

Variants are added to a _cart_ that can be completed to become an _order_. Carts and orders are both listed in the control panel under **Commerce****Orders**.

When we use the terms “cart” and “order”, we’re always referring to an [Order](commerce3:craft\commerce\elements\Order) element; a cart is simply an order that hasn’t been completed—meaning its `isCompleted` property is `false` and its `dateCompleted` is `null`.
When we use the terms “cart” and “order”, we’re always referring to an [Order](commerce3:craft\commerce\elements\Order) element; a cart is simply an order that hasn’t been completed—meaning its `isCompleted` property is `false` and its `dateOrdered` is `null`.

## Carts

Expand Down Expand Up @@ -492,7 +492,7 @@ This number is usually best used as the customer-facing identifier of the order,
The “Order Reference Number Format” is a mini Twig template that’s rendered when the order is completed. It can use order attributes along with Twig filters and functions. For example:

```twig
{{ object.dateCompleted|date('Y') }}-{{ id }}
{{ object.dateOrdered|date('Y') }}-{{ id }}
```

Output:
Expand All @@ -511,7 +511,7 @@ The `seq()` function takes the following parameters:
For example:

```twig
{{ object.dateCompleted|date('Y') }}-{{ seq(object.dateCompleted|date('Y'), 8) }}
{{ object.dateOrdered|date('Y') }}-{{ seq(object.dateOrdered|date('Y'), 8) }}
```

Ouput:
Expand Down

0 comments on commit 7996030

Please sign in to comment.