Sold out tickets – enquiry

Home Forums Ticket Products Event Tickets Plus Sold out tickets – enquiry

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #50677
    Paul
    Participant

    Is there anyway to check if tickets are sold out and if they are display an enquiry form?

    #50682
    Barry
    Member

    Hi Paul,

    Take a look at the following thread which discusses a means of showing customers the remaining stock level within the ticket form on single event pages:

    Number of tickets Available

    If you look within the template example I provided (in that thread) you’ll see code such as $product->is_in_stock() and $ticket->stock … you could basically adapat this to determine if any tickets remain in stock and if not display a message or form.

    Hope that helps!

    #50685
    Paul
    Participant

    Hi Barry,
    Thanks very much for the reply. I had seen that code in the tickets.php file but ive not been able to get it to work, im missing something.

    Would you mind taking a look at my code so far and give me some pointers how i could incorporate the sold out option im looking for?

    https://dl.dropboxusercontent.com/u/3141/code/single.php

    The site itself is here http://stage.liverpoolticketpackages.co.uk/event/price-v-thompson-echo-arena-liverpool/

    Cheers
    Paul

    #50688
    Barry
    Member

    So in the thread I referenced the change went into tickets.php – the reason for that being that that template can access the $product and $ticket objects, which contain the information we need.

    So the easiest thing here would be to work in there rather than in events/single.php (which the code you shared seems to belong to).

    #50726
    Paul
    Participant

    Barry, fantastic, thats got me up and running. I appreciate the input.

    #50727
    Barry
    Member

    Not at all, glad you’re on track 🙂

    #979175
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘Sold out tickets – enquiry’ is closed to new replies.