Php Plugin Editor

Anywhere

Back to Post

I had a plugin customized months back. It is a booking plugin for wordpress. The plugin typically shows the number of seats left for an event. Instead the developer put the total number of seats available. It should take 5 to 15 minutes to change. 

The below code in points.php needs to be changed to show the number of seats left

-----------------------------------
<?php if($slot->getServiceMaxTickets()){ ?>
   <div class="places">Seats Left: <?= $slot->getServiceMaxTickets() ?></div>
<?php } ?>
------------------------------------

That shows the max number of tickets instead of the number of seats left. The original code(upcoming.php) shows the below code to display the number of slots left. Please let me know how to correct the plugin.
----------------------------
echo '<div style="display: block"><div class="tbk-service-name">' . $slot->getServiceName()
. '</div>'
. Schedule::getPriceTag($service, $slot)
. Schedule::getReservationsLeft($slot, $service)
. '</div>';
-----------------------------

 

Apply With Your Profile

Applied