Files
cs2440/catalog/components/cart/confirmation.php
T
jashton 3f844e4e06
Deploy CSIS 2440 / deploy (push) Canceled after 0s
finished final project
2025-05-05 21:53:39 -06:00

29 lines
837 B
PHP

<?php
function cart_confirmation($fname, $lname, $add, $city, $state, $zip, $total, $items)
{
$con = '
<div class="glass column md_width center padding" style="height: auto;">
<h4>Shipping Details:</h4>
<p>' . $fname . ' ' . $lname . '</p>
<p>' . $add . '</p>
<p>' . $city . ', ' . $state . ' ' . $zip . '</p>
<br>
<p>Your order will spontaneously appear before you, for you convenience!</p>
<small>We fold space and time itself, to ensure the best experience for our customers!</small>
<div class="line"></div>
<h4>Your Items:</h4>
<ul>
';
foreach ($items as $name => $quantity)
$con .= '<li>x' . $quantity . ' - ' . $name . '</li>';
$con .= '
</ul>
<h5>Total: $' . $total . '</h5>
';
return $con;
}