Thank You!
[insert_php]
$orderArr = $_SESSION;
//echo “
"; //print_r($orderArr); //print_r($_SESSION); //echo "
“;
//$totalTour = count($orderArr[‘tourcmsdata’][‘selected_date’])-1;
$totalTour = count($orderArr[‘tourcmsdata’][‘customer_info’])-1;
if(empty($_SESSION[‘tourcmsdata’])){
echo ‘‘; exit;
}
include(“/home/ghostadventurest/public_html/wp-config.php”);
Tour_Cms_Public::sendMail();
[/insert_php]
Thank you for connecting with us
Customer Detail / ‘.$orderArr[“tourcmsdata”][“tour_name”][$i].’
Name
:
‘. $orderArr[‘tourcmsdata’][‘customer_info’][$i][‘title’].’ ‘.$orderArr[‘tourcmsdata’][‘customer_info’][$i][‘first_name’].’ ‘.$orderArr[‘tourcmsdata’][‘customer_info’][$i][‘last_name’].’
Email
:
‘. $orderArr[‘tourcmsdata’][‘customer_info’][$i][’email’].’
Adult
:
‘. $orderArr[‘tourcmsdata’][‘r1′][$i].’
Children
:
‘. $orderArr[‘tourcmsdata’][‘r3′][$i].’
Address
:
‘. $orderArr[‘tourcmsdata’][‘customer_info’][$i][‘address’].’
City
:
‘. $orderArr[‘tourcmsdata’][‘customer_info’][$i][‘city’].’
Postcode
:
‘.$orderArr[‘tourcmsdata’][‘customer_info’][$i][‘postcode’].’
Country
:
‘.$orderArr[‘tourcmsdata’][‘customer_info’][$i][‘country’].’
Phone
:
‘.$orderArr[‘tourcmsdata’][‘customer_info’][$i][‘phone’].’
Special Notes
:
‘.$orderArr[‘tourcmsdata’][‘customer_info’][$i][‘special_notes’].’
‘;
} [/insert_php]
Payment Info
Quality
Sale Price Total
[insert_php]
$total = array();
$personArr = array();
$componetKeyArr = array();
$selectedDateArr = array();
$total = array();
$personArr = array();
$componetKeyArr = array();
$selectedDateArr = array();
for($j=0; $j<=$totalTour; $j++){ $total[] = number_format($_SESSION['tourcmsdata']['customer_info'][$j]['total_price'],2); $selectedDateArr[] = date('d/m/Y',strtotime($_SESSION['tourcmsdata']['customer_info'][$j]['selected_date'])); $personArr[] = $_SESSION['tourcmsdata']['customer_info'][$j]['no_of_people']; echo '
‘.$orderArr[‘tourcmsdata’][‘customer_info’][$j][‘tour_name’].’
‘. date(“d/m/Y”,strtotime($orderArr[“tourcmsdata”][‘customer_info’][$j][“selected_date”])).’ @ ‘. $orderArr[“tourcmsdata”][‘customer_info’][$j][“start_time”].’
‘.$_SESSION[‘tourcmsdata’][‘customer_info’][$j][‘price_row’][0].’
‘.$_SESSION[‘tourcmsdata’][‘customer_info’][$j][‘price_row’][1].’
‘. date(“d/m/Y”,strtotime($orderArr[“tourcmsdata”][‘customer_info’][$j][“selected_date”])).’ @ ‘. $orderArr[“tourcmsdata”][‘customer_info’][$j][“start_time”].’
‘.$_SESSION[‘tourcmsdata’][‘customer_info’][$j][‘price_row’][0].’
‘.$_SESSION[‘tourcmsdata’][‘customer_info’][$j][‘price_row’][1].’
‘. $orderArr[“tourcmsdata”][‘customer_info’][$j][“no_of_people”].’
‘. number_format($orderArr[“tourcmsdata”][‘customer_info’][$j][“total_price”],2).’ USD
‘;
}
[/insert_php]
TOTAL
[insert_php] echo number_format(array_sum($total),2); [/insert_php] USD
[insert_php] session_destroy(); [/insert_php]