woocommerce tickets

Home Forums Ticket Products Event Tickets Plus woocommerce tickets

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #965059
    Jamie
    Guest

    Before I buy a business licence for this plugin, I need to know if it has the option of showing the number of remaining tickets for an event on the front end?

    So if I have an event with 30 seats and 2 are sold, I need the site to dispay that there are only 28 seats remaining on the page. does this plugin include this feature?

    Thanks

    #965161
    Geoff
    Member

    Hi Jamie, and thanks for checking out WooCommerce Tickets. I really hope it’s a good fit for your site. 🙂

    Great question! The remaining tickets do not display on the front end by default. However, there is a way to make that happen with a few lines of code.

    Would this work for you? Please let me know.

    Cheers!
    Geoff

    #965286
    Jamie
    Guest

    Hi Geoff, thanks for the quick reply. Yes I’d be happy to add a few lines of code if you’d be kind enough to let me know what and where to add it. Much appreciated. Jamie

    #965319
    Geoff
    Member

    Hi Jamie, thanks for following up!

    Sure thing–this answer in that same thread will give you the step-by-step instructions. 🙂

    Did you have any other  pre-sales questions about WooCommerce Tickets that I could help with? Please let me know.

    Cheers!
    Geoff

    #965348
    Jamie
    Participant

    Hi Geoff, I followed those instructions adding the code and it gives me an error:

    “There is a syntax error on line 65. Code hinting may not work until you fix this error”

    Here is the code I added…

    $is_there_any_product_to_sell = true;
    } else {
    echo “<span class=’tickets_nostock’>” . esc_html__( ‘Out of stock!’, ‘tribe-wootickets’ ) . “</span>”;
    }
    echo “</td>”;

    echo “<td nowrap=’nowrap’ class=’tickets_name’>”;
    echo $ticket->name;
    echo “</td>”;

    echo “<td nowrap=’nowrap’ class=’tickets_stock’>”;
    echo $ticket->stock . ‘ left’;
    echo “</td>”;

    echo “<td class=’tickets_price’>”;
    echo $this->get_price_html( $product );
    echo “</td>”;

    echo “<td class=’tickets_description’>”;
    echo $ticket->description;
    echo “</td>”;

    echo “</tr>”;
    }

    Do you have any advice?

    #965373
    Geoff
    Member

    Hi Jamie,

    That’s strange, it seems to work well when I try it on my end.

    Perhaps try removing the code that was added, then copying the block of code that is above it, then replacing this line:

    [php]echo $ticket->name;[/php]

    …with this:

    [php]echo $ticket->stock . ‘ left’;[/php]

    Cheers!
    Geoff

    P.S. I’m going to move this thread to our WooCommerce Ticket forum since it seems we’ve moved from Pre-Sales to support. 🙂

    #965408
    Jamie
    Participant

    Ah perfect, worked a treat. Thanks for your help

    #965410
    Geoff
    Member

    My pleasure! Thanks again for reaching out and I’m glad you picked up WooCommerce Tickets. 🙂

    Feel free to start a new thread if any other questions pop up and we’d be happy to help.

    Cheers!
    Geoff

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘woocommerce tickets’ is closed to new replies.