<?php

include 'manager/_pi/base.php';
?>
<?
	if(isset($_SESSION['client_id'])) {
		$client_id = $_SESSION['client_id'];
		$shipping = Shipping::findShippingClient($client_id);
	} else {
		header("Location: index.php");
	}
		
?>
<? 
	if(isset($_POST['submit_ship'])) {
		//update the member information
		$_POST = sanitize($_POST);
		$shipping = $_POST;
		settype($shipping,'object');
		if($_POST['Id']=="") {			
			$shipping = Shipping::addShipping($shipping); 
		} else {
			$shipping = Shipping::updateShipping($shipping); 
		}
				
		
		if(isset($_SESSION['FreeShipping'])) {				
				$links = $ROOT_URL.'order-confirmation.html';
				header("Location: $links");
		} else {
		 		$links = $ROOT_URL . 'shipping-rate.html';
Ejemplo n.º 2
0
include "../../../classes/Database.php";
include "../../../classes/Connection.php";
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;
?>
Ejemplo n.º 3
0
		$name = '';
		$from = $clients->fldBillingEmail;
		$mail->From = $from;
		$mail->FromName = $clients->fldBillingFirstName . ' ' . $clients->fldBillingLastname;
		$mail->AddAddress($to);
		$mail->IsHTML(true); // set email format to HTML
		$all_html = implode('',file('includes/orders.php'));
		
		//FOR BILLING
		$name = $clients->fldBillingFirstName . ' ' . $clients->fldBillingLastname;
		$address = $clients->fldBillingAddress . ' ' . $clients->fldBillingCity . ' ' . $clients->fldBillingState . ' ' . $clients->fldBillingCountry . ' ' . $clients->fldBillingZip;
		$email = $clients->fldBillingEmail;
		$contact = $clients->fldBillingPhoneNo;
		
		//FOR SHIPPING
		$shipping = Shipping::findShippingClient($_SESSION['client_id']	);
		$shipping_name = $shipping->fldShippingFirstName . ' ' . $shipping->fldShippingLastname;
		$shipping_address = $shipping->fldShippingAddress . ' ' . $shipping->fldShippingCity . ' ' . $shipping->fldShippingState . ' ' . $shipping->fldShippingCountry . ' ' . $shipping->fldShippingZip;
		$shipping_email = $shipping->fldShippingEmail;
		$shipping_contact = $shipping->fldShippingPhoneNo;
		
		$all_html = str_replace("%%order_no%%", $order_id, $all_html);
		$all_html = str_replace("%%order_date%%", date('F d, Y'), $all_html);
		$all_html = str_replace("%%name%%", $name, $all_html);
		$all_html = str_replace("%%address%%", $address, $all_html);
		$all_html = str_replace("%%email%%", $email, $all_html);
		$all_html = str_replace("%%contact%%", $contact, $all_html);
		$all_html = str_replace("%%shipping_name%%", $shipping_name, $all_html);
		$all_html = str_replace("%%shipping_address%%", $shipping_address, $all_html);
		$all_html = str_replace("%%shipping_email%%", $shipping_email, $all_html);
		$all_html = str_replace("%%shipping_contact%%", $shipping_contact, $all_html);