My Tickets overview always shows the Price list and Price paid

Home Forums Ticket Products Event Tickets Plus My Tickets overview always shows the Price list and Price paid

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #1178799
    hprata
    Participant

    I am having a bridge plugin developed for Event Tickets Plus, and have run into a major problem that I think might be a bug in Event Tickets Plus. The bridge plugin that I am developing allows a user to enter the amount they want to pay for a ticket (like a fundraiser ticket).
    Issue:
    The My Tickets overview always shows the

    $product->get_price_html()

    price for a ticket instead of the price that was paid for a ticket. See image attached where it says “Suggested Price: $1000” instead of the price paid.

    We believe we need to connect the attendee’s ticket with the WooCommerce order item, but the existing filters/functions are missing variables I need to manually connect the two pieces from my bridge plugin. Ideally, Tickets Plus always would use the “paid” price for the list of attendees, because that would work automatically with any bridge plugin and not have any problems at all with event tickets. Is this possible or are we missing something?

    Also is there a GitHub for Tickets Plus?

    #1179832
    Nico
    Member

    Hi there @hprata,

    Thanks for getting in touch with us to report this!

    I understand the issue here and see how this doesn’t work for your case, but I’m not sure this is actually a bug. Anyway I just talked about this with one of our devs and he thinks it might be possible to use woocommerce_get_price_html filter (I see woo is the provider used in your site) and conditionally hook if they are within the ‘My Tickets’ section. Can you explore that option?

    Also is there a GitHub for Tickets Plus?

    Yes, but as it’s a premium plugin it’s a private repo.

    Please let me know about it,
    Best,
    Nico

    #1180552
    hprata
    Participant

    Hello we have another question regarding your suggestion.

    What is the conditional function that checks if you are in the “my tickets” section? And does that distinguish between the tickets table on the singular Event page? If there is a conditional in place where can we find it?

    Thanks in advance!
    Also do you mind removing the image above. I didn’t notice it had an email address in it when I put it up.

    #1182084
    Nico
    Member

    Thanks for following up @hprata!

    What is the conditional function that checks if you are in the “my tickets” section? And does that distinguish between the tickets table on the singular Event page? If there is a conditional in place where can we find it?

    Sure you can check if that’s the current view in the global query arguments:

    global $wp_query;

    if ( isset($wp_query->query['eventDisplay']) && $wp_query->query['eventDisplay'] == 'tickets') {
    // it's the 'my tickets' page
    }

    It will only enter the conditional if you are viewing the ‘my tickets’ page, and not in the tickets form.

    Please let me know if this helps,
    Best,
    Nico

    PS: image removed.

    #1192500
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 5 posts - 1 through 5 (of 5 total)
  • The topic ‘My Tickets overview always shows the Price list and Price paid’ is closed to new replies.