' . $name . '
' . $description . '
' . '$' . number_format(($price / 100), 2) . '
';
}
}
/**
* Calculate table ticket price and event tickets based on quantity
*
* @param $qty integer Quantity of event tickets purchased
* @param $price integer Price of event tickets
* @param $tablePrice integer Price of table
* @return array
*/
function eventPricing($qty)
{
$tableQty = 0;
// If pricing is 8 or more then we need to factor in table reservations
if ($qty > 7) {
$tableQty = (int) ($qty / 8);
$eventQty = $qty - ($tableQty * 8);
}else {
$eventQty = $qty;
}
return [$tableQty, $eventQty];
}
function shoppingCartTotal($price)
{
echo '