Woocommerce Ticket link to Product

Home Forums Ticket Products Event Tickets Plus Woocommerce Ticket link to Product

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #974203
    Philip Macaulay
    Participant

    Back in April last year I get a Link to some code from Barry:
    https://theeventscalendar.com/support/forums/topic/on-single-event-show-a-link-to-ticket-in-woocommerce-follow-up/

    This seemed to work well enough then however when No Tickets are available:

    if ( 0 === $count )
            echo '<li> There are no tickets available for this event </li>';
     
    echo '</ul>';

    The code above does not seem to work – has something changed that prevents this from working – is there a work around.

    You can see from this link that a particular event is sold out but when you click through the same Buy! is on the single event – it’s only when you click through that you get the OUT OF STOCK notice – I need to show it on the single event page ideally

    Any help would be greatly appreciated – Thanks Guys

    Phil

    #974479
    Barry
    Member

    Hi Phil,

    A slight amendment should make it work with our latest builds:

    https://gist.github.com/barryhughes/b478dad58ae52b91d58c

    I hope that helps!

    #974480
    Philip Macaulay
    Participant

    TOP CHAP!!!

    Thank you soooo much..!

    Phil

    #974510
    Barry
    Member

    Pleasure 🙂

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Woocommerce Ticket link to Product’ is closed to new replies.