Skip to content

Commit 7996030

Browse files
committed
dateCompleted -> dateOrdered for *all* versions! :O
1 parent df4693f commit 7996030

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/commerce/2.x/orders.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ The ‘Order Reference Number Format’ is a mini Twig template, which will be r
4242
Attributes on the order can be accessed as well as Twig filters and functions, for example:
4343

4444
```twig
45-
{{ object.dateCompleted|date('Y') }}-{{ id }}
45+
{{ object.dateOrdered|date('Y') }}-{{ id }}
4646
```
4747

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

6262
For example:
6363
```twig
64-
{{object.dateCompleted|date('Y')}}-{{ seq(object.dateCompleted|date('Y'), 8) }}
64+
{{object.dateOrdered|date('Y')}}-{{ seq(object.dateOrdered|date('Y'), 8) }}
6565
```
6666

6767
Ouput:

docs/commerce/3.x/orders-carts.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ containsGeneratedContent: yes
77

88
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**.
99

10-
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`.
10+
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`.
1111

1212
## Carts
1313

@@ -492,7 +492,7 @@ This number is usually best used as the customer-facing identifier of the order,
492492
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:
493493

494494
```twig
495-
{{ object.dateCompleted|date('Y') }}-{{ id }}
495+
{{ object.dateOrdered|date('Y') }}-{{ id }}
496496
```
497497

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

513513
```twig
514-
{{ object.dateCompleted|date('Y') }}-{{ seq(object.dateCompleted|date('Y'), 8) }}
514+
{{ object.dateOrdered|date('Y') }}-{{ seq(object.dateOrdered|date('Y'), 8) }}
515515
```
516516

517517
Ouput:

0 commit comments

Comments
 (0)