diff --git a/src/functions.php b/src/functions.php index 192ab42..6fc541e 100644 --- a/src/functions.php +++ b/src/functions.php @@ -129,6 +129,8 @@ function shoppingCartTotal($price) function checkIfTicketsAreOnSale() { + header('Location: /notify'); + $todaysDate = new DateTime('now', new DateTimeZone('America/Chicago')); $dateOnSale = new DateTime('3/15/2020 8:00am', new DateTimeZone('America/Chicago')); $interval = $todaysDate->diff($dateOnSale); diff --git a/views/notify.php b/views/notify.php index 425581c..29ffeac 100644 --- a/views/notify.php +++ b/views/notify.php @@ -2,11 +2,12 @@