Home › Forums › Ticket Products › Event Tickets Plus › Woocommerce Tickets product page
- This topic has 3 replies, 2 voices, and was last updated 10 years, 6 months ago by
Nico.
-
AuthorPosts
-
November 5, 2015 at 6:36 am #1022134
Patric Booi
ParticipantI would like the option to have the ticket’s product page available so I can make use of certain plugins.
I found this topic: https://theeventscalendar.com/knowledgebase/selling-tickets-from-the-woocommerce-products-page/A. When I add the code from that topic to my functions.php nothing happens. I can not find a way to reach the product page of a ticket. What am I missing?
B. On the single events page I need a link to the products page of a ticket. The code snippet needs to be added in wootickets/tickets.php but I can’t get that to work. I there a complete sample on how to accomplish this?November 5, 2015 at 11:10 am #1022282Nico
MemberHi Anthony,
Thanks for reaching out to us! I’ll try to help you here 🙂
A. When I add the code from that topic to my functions.php nothing happens. I can not find a way to reach the product page of a ticket. What am I missing?
This code disables the hook hijack_ticket_link which replaces the link to the WooCommerce product with a link to the Event in the order confirmation page. So you won’t notice anything upfront.
B. On the single events page I need a link to the products page of a ticket. The code snippet needs to be added in wootickets/tickets.php but I can’t get that to work. I there a complete sample on how to accomplish this?
Please start by checking out our themer’s guide which gives you an overview of how to create template overrides. I’ll describe the process below:
- Create the following folder structure ‘tribe-events/wootickets/’ inside your theme folder (‘wp-content/themes/your_theme/’).
- Inside the newly created folder, create a new file called ‘tickets.php’, the complete path should be ‘wp-content/themes/your_theme/tribe-events/wootickets/tickets.php’.
- Paste the code below in the file you just created:
https://gist.github.com/theeventscalendar/eedc81ba148e0346dfee
Now you should see a list of links to the different product pages instead of the tickets form.
Please let me know if this works for you,
Best,
NicoNovember 5, 2015 at 1:53 pm #1022340Patric Booi
ParticipantThat works. Great!!
Thanks for helping me out.
November 6, 2015 at 6:36 am #1022521Nico
MemberStocked to hear Anthony 🙂
I’ll go ahead and close out this thread, but if you need help with anything else please don’t hesitate to create a new one and we will be happy to assist you.
Have a great weekend,
Nico -
AuthorPosts
- The topic ‘Woocommerce Tickets product page’ is closed to new replies.
