Ejemplo n.º 1
0
	

	//update the order id

	Cart::updateCartStatus($order_id,$trans_id);
	
	$myOrder = Cart::findCartByOrderID($order_id);

	//$clients = Client::findClient($myOrder->fldCartClientID);

	$shipping = Shipping::findShippingClient($clients->fldClientID);

	$shippingRate = ShippingRate::findShippingRateByOrderCode($order_id);
	
	$clients = Billing::findBillingClient($myOrder->fldCartClientID);
	 
	 
	$message = "<table width=100% border=0 cellpadding=1 cellspacing=1 bgcolor=#333300>";
			  $message .= "<tr>";
				$message .= "<td height=25 align=center>&nbsp;</td>";
				$message .= "<td height=25 align=center><font face=Arial, Helvetica, sans-serif size=2 color=#FFFFFF><b>Product Name</b></font></td>";
				$message .= "<td height=25 align=center><font face=Arial, Helvetica, sans-serif size=2 color=#FFFFFF><b>Amount</b></font></td>";
				$message .= "<td height=25 align=center><font face=Arial, Helvetica, sans-serif size=2 color=#FFFFFF><b>Quantity</b></font></td>";
				$message .= "<td height=25 align=center><font face=Arial, Helvetica, sans-serif size=2 color=#FFFFFF><b>Total Amount</b></font></td>";
			  $message .= "</tr>";
			  
										//display the shopping cart							
										$date = date('Y-m-d');
										$condition = "fldTempCartClientID='$client_id' AND fldTempCartDate='$date'";
										
Ejemplo n.º 2
0
include_once "../../../includes/bootstrap.php";
include "../../../classes/Cart.php";
include "../../../classes/Products.php";
include "../../../classes/Client.php";
include "../../../classes/Coupon.php";
include "../../../classes/Shipping.php";
include "../../../classes/Billing.php";
include "../../../classes/ShippingRate.php";
include "../../../classes/AdminAction.php";
include "../../../includes/security.funcs.inc";
include_once "../../../includes/Pagination.php";
$myCart = Cart::findCartByOrderID($_REQUEST['id']);
$clients = Client::findClient($myCart->fldCartClientID);
$shipping = Shipping::findShippingClient($clients->fldClientID);
$shippingRate = ShippingRate::findShippingRateByOrderCode($_REQUEST['id']);
$billing = Billing::findBillingClient($clients->fldClientID);
?>
<!DOCTYPE html>  
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-us" lang="en-us">  
<head>
  <meta http-equiv="content-type" content="text/html; charset=utf-8" />
  <meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
  <link rel="stylesheet" type="text/css" media="screen" href="<?php 
echo $ROOT_URL;
?>
_admin/_assets/css/core3.css" /> 
  <link rel="stylesheet" type="text/css" media="screen" href="<?php 
echo $ROOT_URL;
?>
_admin/_assets/css/modules.css" /> 
</head>
		
?>
<style>
	td {padding:5px 5px;}
</style>
<p>&nbsp;</p>	<p>&nbsp;</p>	
<form method="post" action="<?=$ROOT_URL?>order-confirmation.html">
<table width="713" border="0">
<tr>
	<td width="361">
    	<table width="347" border="0" cellpadding="1" cellspacing="1" bgcolor="#666666">
        	<tr>
            	<td height="25" style="font-family:Arial, Helvetica, sans-serif; font-size:12px; color:#FFF">Billing Information</td>                
          </tr>
          <? 
		  	$client = Billing::findBillingClient($client_id);
		  ?>
          <tr bgcolor="#FFFFFF">
          	<td>
            	<table border="0">
                	<tr>
                        <td width="96" height="25">Name</td>
         	            <td width="11" height="25">:</td>
                        <td width="215" height="25"><?=$client->fldBillingFirstName . ' ' . $client->fldBillingLastname?></td>
		             </tr>
                     <tr>
                        <td height="25">Address</td>
         	            <td height="25">:</td>
                        <td height="25"><?=$client->fldBillingAddress . ' ' . $client->fldBillingAddress1 . ' ' . $client->fldBillingCity . ' ' . $client->fldBillingState . ' ' . $client->fldBillingCountry?></td>
		             </tr>
                     <tr>