$itemId, “itemQty” => $itemQty, “itemName” => $itemName, “itemPrice” => $itemPrice);
array_push($cartArray, $item);
?>
get_remaining_quantity(144);
parse_str($_SERVER[‘QUERY_STRING’], $queryStringArray);
$purchaseContractId = $queryStringArray[‘purchaseContractId’];
if (!is_null($purchaseContractId)) {
// defined in /wp-content/cust-php/cartazon.php, linked in from theme’s header.php
// the third parameter is a flag to subtract 50cents from the discount before sending to amazon
// for payment…this is done to compensate for the extra 50cents that is being added at the amazon
// end of things
$results = processOrder($purchaseContractId, $cartArray, false);
if (strrpos($results, “Order”) !== false) {
// empty cart
$wpsc_cart->empty_cart();
echo “
Grazie!
“;
echo $results.”
“;
echo “Thank you for purchasing our products! We are delighted you have invited us to your table.
“;
echo “A portion of this purchase will be donated to the Leukemia & Lymphoma Society. Thank you for helping fund vital research to help the 1M+ people fighting a blood cancer in the United States today.
“;
echo “If you have any questions about your purchase please email us at duecellucci@duecellucci.com or call us 646.707.0982.
“;
if ($mixedCaseisPresent) {
$message = ”;
$message = ‘
‘; $message .= ‘Order Details |
||
---|---|---|
‘.$results.’ | ||
Item Name | : | ‘.$itemName.’ |
Traditional | : | ‘.$_SESSION[‘myArray’][‘mc-sauce-count-traditional’].’ |
Tomato Basil | : | ‘.$_SESSION[‘myArray’][‘mc-sauce-count-tbasil’].’ |
Vodka | : | ‘.$_SESSION[‘myArray’][‘mc-sauce-count-vodka’].’ |
Item Quantity | : | ‘.$itemQty.’ |
Item Price | : | $’.$itemPrice.’ |
‘;
$headers = “MIME-Version: 1.0” . “\r\n”;
$headers .= “Content-type:text/html;charset=UTF-8” . “\r\n”;
// More headers
$headers .= ‘From:
$subject = ‘Mixed Case details for order:’.$results;
//$mixed_case_details = stripslashes($_COOKIE[‘mixed_case_details’]);
mail( “duecellucci@duecellucci.com”, $subject, $message, $headers);
// wp_mail( “”, $subject, $message);
// setcookie (“mixed_case_details”, “”, time() – 3600);
}
} else {
echo $results;
}
}
?>