if you set a minimum/max of 1 ticket in the ticket settings, it should hide the ticket if you have one ticket showing without the tickets table.
I think this is done in the templates, e.g. templates/forms/event/bookings.php
the book now button is in templates/placeholders/
I fixed the Book Now button. Thank you so much!!
In the template: templates/forms/event/bookings.php, I played around with adding the min/max of 1 but none of my changes worked. I thought I could put the 1 in place of the dashes here:
<td class="ticket-limit">
<span class="ticket_min">
<?php echo ( !empty($EM_Ticket->ticket_min) ) ? $EM_Ticket->ticket_min:'1'; ?> <!--changed the dash to a 1 in this line-->
</span> /
<span class="ticket_max"><?php echo ( !empty($EM_Ticket->ticket_max) ) ? $EM_Ticket->ticket_max:'-'; ?></span>
</td>
That had no effect on the drop down list.
And where can I change the default spaces from 10 to 1,000,000?
I set the default values in the database, and that seems to work for the moment.
To change the Event Manager >> Available ticket spaces value, go to wp-content/plugins/events-manager/classes/em-ticket.php
change:
var $ticket_spaces = 10;
to:
var $ticket_spaces = 1,000,000;
thx for the input.
better yet, if you don’t want to hack, hook into the em_ticket action and modify it that way. e.g.
function my_spaces_function($EM_Ticket){
$EM_Ticket->ticket_spaces = 1,000,000;
}
add_action(’em_ticket’, ‘my_spaces_function’,10,1);
Hi Marcus,
I just upgraded to 5.1.8.1 and having problem with availability space on booking system. It’s whenever I put the number, i.e. 50 spaces, the availability space is always to default number 10.
Shown on Event Bookings page:
Availability : 1/10 Spaces confirmed
And the “Total Space” field on the Booking/Registraion box always reset to 0 (zero) when I try to edit the event.
How to fix that?
Putting commas in the ticket_spaces (1,000,000 vs 1000000) breaks my entire site (turns everything into a blank screen). I have to do it without commas. Just incase anyone has this issue and is puzzled.
noted that down, will fix asap
How can I force the drop down to disappear and the form default to 1 ticket?
snatrott, I am trying to do just that exact thing but I cant make it work. Did you find a solution and can you tell me how?