Displaying the Billing Information During Checkout

 

Introduction.  After what we just did in order to access or create profiles during the checkout process, this should be much easier.  This is largely an intermediate page that displays the billign information to the shopper.

This page should be called checkout_profile_display.php.  After a shopper had either created or accessed a profile, this page displays the shopper's billing information before it passed them on to work on their shipping information for this order.

 
 
<html>
<!-- checkout_profile_display.php - displaying the billing information -->
<head>
<title>Displaying the Billing Information</title>
</head>
<?php
include("includes/header.php");
session_start();
?>

<p>&nbsp;</p>
<p align="center"><font size="4" color="a66838">Here is what we have for your billing information.<br>
In order to update it you need to access your profile outside of the checkout process.<br>
Your shipping information can be modified for this order in the next page.</font></p>
<p align="center"><font size="4" color="c0c0c0">Billing Information</font></p>
<div align="center">
<table cellpadding="2" border="0" width="350">
<tr>
<td> <font size="4" color="c0c0c0"><?php print $_SESSION['bill_first_name'] ?> <?php echo $_SESSION['bill_last_name']; ?></font>
<br><font size="4" color="c0c0c0"><?php echo $_SESSION['bill_address']; ?></font>
<br><font size="4" color="c0c0c0"><?php print $_SESSION['bill_city'] ?>, <?php echo $_SESSION['bill_state']; ?> <?php echo $_SESSION['bill_zip'];?></font>
</td>
</tr>
</table>
<table cellpadding="2" border="0" width="350">
<tr>
<td width="150"> <font size="4" color="a66838">Name on Card:</font>
</td>
<td> <font size="4" color="c0c0c0"><?php print $_SESSION['card_name'] ?> </font>
</td>
</tr><tr>
<td> <font size="4" color="a66838">Card Type:</font>
</td>
<td> <font size="4" color="c0c0c0"><?php print $_SESSION['card_type'] ?> </font>
</td>
</tr>
<tr>
<td> <font size="4" color="a66838">Expiration Date:</font>
</td>
<td> <font size="4" color="c0c0c0"><?php echo $_SESSION['card_month']; ?> <?php echo $_SESSION['card_year']; ?></font>
</td>
</tr>
<tr>
<td colspan=2 align="center">&nbsp;
</td>
</tr>
<tr>
<td colspan=2 align="center"><form action="checkout_modify_shipping.php" method="post"><input type="submit" value="Next" style="font-size: 14pt; font-weight: bold"></form>
</td>
</tr>
</table>
</div>
</body>
</html>

 

This page is primarily HTML that will result in the following display.

 

 

It really just displays the basic billing name and address along with some credit card information that helps to clarify which card is used.

Next we will develop the page where the shopper is able to modify where  they want to ship for this order only.