orders()
Kirby user method
User orders
Each item includes:
|Name|Type|Description| |---|---|---| |orderLicensee|string|| |orderTransactionId|string|| |orderItems|Structure|See below| |orderId|string|| |orderCustomData|``||
orderItems includes
|Name|Type|Description| |---|---|---| |font|Pages|| |fontUuid|string|| |addons|Tags|| |license|Tags||
- Returns:
Structureβ Field
Usage
?php foreach ( $user->orders()->toStructure() as $order ) : ?>
<?= $order->orderId() ?></dt>
<?= Html::a( $order->orderTransactionId()->getInvoice(), 'Receipt' ) ?>
<?= $order->orderLicensee() ?>
<ul>
<?php foreach ( $order->orderItems()->toStructure() as $orderItem ) : ?>
<?php if ( $font = $orderItem->font()->toPage() ) : ?>
<li><?= $font->title() ?></li>
<?php endif ?>
<?php endforeach ?>
</ul>
<?php endforeach ?>
Usage
Source: /methods/users/orders.php