display date

This commit is contained in:
Aadil Ayub 2024-05-02 08:06:35 +00:00
parent ffb77dc3c4
commit b7ee593367

View File

@ -6,6 +6,7 @@ $first_name = $order->get_billing_first_name();
$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');
?>
@ -103,7 +104,7 @@ $items = $order->get_items();
<p class="origin"><?php echo $product_name; ?></p>
<p class="bean-type"><?php echo $brew_method; ?></p>
<p class="roast"><?php echo $roast; ?> Roast</p>
<p class="date">Roasted on: <span>31/03/2024</span></p>
<p class="date">Roasted on: <span><?php echo $order_date; ?></span></p>
<p class="code">NGO</p>
</div>
<div class="order-details">