Hey Sky, works great. But is it normal that I am no longer allowed/cannot update the plugin? Because I edited the form and instead of entering the number manually I set the value to 1. After the last update, I always got the message: “please select the number of tickets”, i.e. there must be something elementary adjusted? Or am I doing something wrong?
<?php if ( $is_there_any_product_to_sell ) : ?>
<input type="hidden" class="tribe-ticket-quantity" name="quantity_<?php echo absint( $ticket->ID ); ?>" value="1" >
<?php if ( -1 !== $available ) : ?>
<span class="tribe-tickets-remaining">
<strong><?php $readable_amount = tribe_tickets_get_readable_amount( $available, null, false ); echo sprintf( esc_html__( '%1$s', 'event-tickets' ), '<span class="available-stock" data-product-id="' . esc_attr( $ticket->ID ) . '">' . esc_html( $readable_amount ) . '</span>' );?>
</strong> .... </span>
<?php endif; ?> <?php else: ?>
<span class="tickets_nostock">
....
</span>
<?php endif; ?>
-
This reply was modified 4 years, 10 months ago by moimoimoi.