# packeta/1.6.1/template/order/detail.latte

Packeta, version 1.6.1. 52 lines.

- Page: https://pluginprobe.com/plugins/packeta/1.6.1/code/template/order/detail.latte
- Raw: https://pluginprobe.com/plugins/packeta/1.6.1/raw/template/order/detail.latte
- Modified: 2023-09-01T10:06:50+00:00

Line numbers below start at 1. Link to a line or a range by appending a fragment to the
page URL, for example `https://pluginprobe.com/plugins/packeta/1.6.1/code/template/order/detail.latte#L10-L20`.

```
{varType Packetery\Core\Entity\Order $order}
{varType bool $displayPickupPointInfo}
{var $pickupPoint = $order->getPickupPoint()}
{var $validatedDeliveryAddress = $order->getValidatedDeliveryAddress()}

<section class="packetery-order-detail">
	<h2 class="woocommerce-order-details__title">{$translations['packeta']}</h2>

	<table class="woocommerce-table woocommerce-table--order-details shop_table order_details">
		<tbody>
		{if $pickupPoint && $displayPickupPointInfo}
			<tr>
				<th scope="row">{$translations['pickupPointName']}</th>
				<td>
					{$pickupPoint->getName()}
					{if $pickupPoint->getUrl() && !$order->isExternalCarrier()}
						<br>
						<a class="button" target="_blank"
						   href="{$pickupPoint->getUrl()}">{$translations['pickupPointDetail']}</a>
					{/if}
				</td>
			</tr>
			<tr>
				<th scope="row">{$translations['address']}</th>
				<td>
					{$pickupPoint->getFullAddress()}
				</td>
			</tr>
		{/if}

		{if $validatedDeliveryAddress}
			<tr>
				<th scope="row">{$translations['validatedAddress']}</th>
				<td>
					{$validatedDeliveryAddress->getStreet()} {$validatedDeliveryAddress->getHouseNumber()},
					{$validatedDeliveryAddress->getZip()} {$validatedDeliveryAddress->getCity()}
				</td>
			</tr>
		{/if}

		{if $order->isExported()}
			<tr>
				<th scope="row">{$translations['packetTrackingOnline']}</th>
				<td>
					<a href='{$order->getPacketTrackingUrl()}'>{$order->getPacketBarcode()}</a>
				</td>
			</tr>
		{/if}
		</tbody>
	</table>
</section>

```
