From 11fff6ca5419d85c0a15ad3b830d65a97ddaaad9 Mon Sep 17 00:00:00 2001 From: Josh Crawford Date: Sat, 9 Nov 2024 11:03:46 +1100 Subject: [PATCH] Fix Ticket pricing --- src/elements/Ticket.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/elements/Ticket.php b/src/elements/Ticket.php index 2439183..6b460eb 100755 --- a/src/elements/Ticket.php +++ b/src/elements/Ticket.php @@ -261,6 +261,11 @@ public function getBasePrice(): ?float return $this->getType()?->price ?? null; } + public function getPrice(): ?float + { + return $this->getBasePrice(); + } + public function getStock(): int { // Available to purchase is capacity (event or ticket) - purchased tickets