Table ticket pricing

This commit is contained in:
Chris Smith
2019-03-04 14:55:31 -06:00
parent be36a874fd
commit 011beb9b34
4 changed files with 29 additions and 3 deletions

View File

@@ -39,11 +39,13 @@ $router->post('/', function () {
// Calculate totals
$additionalContribution = convertPossibleFloatToCents($_POST['additionalContribution']);
list($tableTicketQty, $eventTicketQty) = eventPricing($eventTicketQty);
$eventTicketPrice = convertPossibleFloatToCents($eventTicketQty * $_SERVER['EVENT_TICKET_PRICE']);
$tableTicketPrice = convertPossibleFloatToCents($tableTicketQty * $_SERVER['TABLE_TICKET_PRICE']);
$ticketEnhancerPrice = convertPossibleFloatToCents($ticketEnhancerQty * $_SERVER['ENHANCER_TICKET_PRICE']);
// Sum the cart totals
$cartTotal = $eventTicketPrice + $ticketEnhancerPrice + $additionalContribution;
$cartTotal = $eventTicketPrice + $tableTicketPrice + $ticketEnhancerPrice + $additionalContribution;
include 'views/common/head.php';
include 'views/step2.php';
include 'views/common/footer.php';