How do I make event tickets visible in woocommerce

Home Forums Ticket Products Event Tickets Plus How do I make event tickets visible in woocommerce

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

    How do I make event tickets visible in woocommerce shop.
    I want to use extra woocommerce features for Events Plus Tickets and be able to link directly to the tickets for events. This seems like it should be default behavior for Events Pro and Events Tickets Plus

    #1169424
    Geoff B.
    Member

    Good afternoon Helder and welcome back!

    Thank you for reaching out to us.
    I would love to help you with this topic.

    To make tickets visible in the WooCommerce shop, you need to change their Catalog Visibility setting manually.
    You can see this setting when you go directly in the WooCommerce product.

    Should you prefer this to be the case by default for any newly created ticket, you can add the following snippet to your theme’s functions.php : https://theeventscalendar.com/support/forums/topic/should-event-tickets-also-show-up-on-woocommerce-shop-page/#post-1062143

    Let me know if that helps.

    Have a great day!

    Geoff B.

    #1169607
    hprata
    Participant

    Sorry I don’t think I explained what I wanted to accomplish properly. I need to use woocommerce name your price extension, but it does not work with event tickets plus For some reason.

    I want to add a link to the tickets in woocommerce catalog on the event listings and event page, instead of using the ticket entry form at the bottom of the event page generated by event tickets plus.

    I tried this code but did not work. it links to the event not the ticket in woocommerece

    ————-

    <?php
    $count = 0;
    echo '<ul>';
    
    foreach ( $tickets as $ticket ) {
    	global $product;
    	$count++;
    
     	if ( class_exists( 'WC_Product_Simple' ) ) $product = new WC_Product_Simple( $ticket->ID );
    	else $product = new WC_Product( $ticket->ID );
    
    	$price = $product->get_price_html();
    	$link = '<a href="' . $product->get_permalink() . '">Buy!</a>';
    	echo "<li> $ticket->name $price $link </li>";
     }
    
    if ( 0 === $count )
    	echo '<li> There are no tickets available for this event </li>';
    
    echo '</ul>';
    #1169995
    Geoff B.
    Member

    Good afternoon Helder,

    Thank you for clarifying that.

    Full disclosure, I cannot guarantee that our plug-ins Will work nicely with the WooCommerce name your price extension.

    That being said here are a couple of links that I think could be helpful in achieving that goal. Please note however, that these are untested.

    1. Check out this article: https://theeventscalendar.com/knowledgebase/selling-tickets-from-the-woocommerce-products-page/
    2. Please try the following snippet which removes the exclusion of Tickets being used in a product: https://theeventscalendar.com/support/forums/topic/add-ticket-to-woocommerce-product/#post-1167928

    Let me know how that goes.

    Best regards,
    Geoff B.

    #1179880
    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 ‘How do I make event tickets visible in woocommerce’ is closed to new replies.