Home › Forums › Ticket Products › Event Tickets Plus › How do I make event tickets visible in woocommerce
- This topic has 5 replies, 4 voices, and was last updated 9 years, 6 months ago by
hprata.
-
AuthorPosts
-
September 26, 2016 at 8:25 pm #1169005
hprata
ParticipantHow 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 PlusSeptember 27, 2016 at 12:54 pm #1169424Geoff B.
MemberGood 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.
September 27, 2016 at 8:16 pm #1169607hprata
ParticipantSorry 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>';September 28, 2016 at 12:38 pm #1169995Geoff B.
MemberGood 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.
- Check out this article: https://theeventscalendar.com/knowledgebase/selling-tickets-from-the-woocommerce-products-page/
- 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.October 20, 2016 at 9:35 am #1179880Support Droid
KeymasterHey 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 -
AuthorPosts
- The topic ‘How do I make event tickets visible in woocommerce’ is closed to new replies.
