display gift status

This commit is contained in:
Aadil Ayub 2024-05-07 14:54:51 +00:00
parent 7d322af818
commit 841098af7a
1 changed files with 2 additions and 2 deletions

View File

@ -7,7 +7,7 @@ $last_name = $order->get_billing_last_name();
$postcode = $order->get_billing_postcode();
$items = $order->get_items();
$order_date = $order->get_date_created()->date('d/m/Y');
$gift_message = $order->get_meta('_shipping_gift_message');
?>
@ -122,7 +122,7 @@ $order_date = $order->get_date_created()->date('d/m/Y');
<p class="bean-type"><?php echo $brew_method; ?></p>
<p class="roast"><?php echo $roast; ?> Roast</p>
<p class="date">Roasted on: <span><?php echo $order_date; ?></span></p>
<p class="code">NG<?php $is_organic ? 'O' : '' ?></p>
<p class="code">N<?php echo $gift_message ? 'G' : '' ?><?php echo $is_organic ? 'O' : '' ?></p>
</div>
<div class="order-details">
<p class="customer-name"><?php echo "$first_name $last_name"; ?></p>