wooticket information in woocommerce pages

Home Forums Ticket Products Event Tickets Plus wooticket information in woocommerce pages

Viewing 10 posts - 1 through 10 (of 10 total)
  • Author
    Posts
  • #52883
    kineticbuzz
    Participant

    Hi – Can you give me some pointers on how to display wooticket information in woocommerce templates please?

    For example I would like to show the ticket title and description etc on the cart & checkout pages.

    I found a function in your forum ‘append_ticket_details_in_cart’ which allows me to override the title in woocommerce pages using the filter ‘woocommerce_in_cart_product_title’.
    This allows me to get event details ($event->post_title) but how do I get the ticket information?

    Thank you.

    #52911
    Barry
    Member

    The ticket name should display in the cart by default – and the descriptive text is simply the post excerpt text for the product. Does that help?

    #52942
    kineticbuzz
    Participant

    Hi Barry – Sorry we are using Event Calendar Pro as well. So when someone buys an event ticket we want to show the ticket description & ticket SKU on the cart & checkout pages.
    The ticket description is different to the event excerpt.

    #52947
    Barry
    Member

    Indeed it is different, but note that I was referring to the product post excerpt (each ticket is in fact a regular WooCommerce product).

    #53021
    djio
    Participant

    Hi Barry, fact is my other ticket was closed and the problem is back, using v2 or v3, with the patch send me there. Sorry for coming this way, but I coudn;t see any other option to contact you, please reopen my topic and erase this post. Thanks in advance.
    Topic: https://theeventscalendar.com/support/forums/topic/fatal-error-uncaught-exception-exception-with-message-datetime__construct/#post-52431

    #53048
    Barry
    Member

    Hi Djio – for future reference you can simply create a new thread – but yes I’ll reopen the one you referenced.

    #53050
    djio
    Participant

    Thanks, I didn’t want to cluster que forum with duplicate topics, is there a way so the author can reopen the Topic?

    #53073
    kineticbuzz
    Participant

    Thanks for the pointer Barry. In case anyone else finds it useful you need to reference the woocommerce simple product first:
    $simpleProduct->post->post_excerpt

    #53084
    Barry
    Member

    is there a way so the author can reopen the Topic?

    Not currently, but that’s an excellent idea for a future improvement to the forum which I will put forward.


    @Kineticbuzz
    – thanks for posting back with the solution, hopefully others will also be able to leverage that 🙂

    #979279
    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 10 posts - 1 through 10 (of 10 total)
  • The topic ‘wooticket information in woocommerce pages’ is closed to new replies.