Home › Forums › Ticket Products › Event Tickets Plus › woocommerce actions in wootickets
- This topic has 3 replies, 2 voices, and was last updated 11 years, 1 month ago by
George.
-
AuthorPosts
-
March 4, 2015 at 6:33 am #945893
randomwalk
ParticipantI feel like you had this before but maybe I just added it myself.
Can ‘woocommerce_before_add_to_cart_button’ and possibly others be added to the tickets.php file? Is there a way to create my own tickets.php template like we do in woocommerce?
Thanks!
March 4, 2015 at 7:11 am #945905George
ParticipantHey @randomwalk,
Thanks for reaching out. While I’m not 100% certain what you mean about creating a template like you do in WooCommerce specifically, you can definitely create a new tickets template in your WordPress theme.
In that new tickets.php file, therefore, you can indeed then add any WooCommerce filters and actions like the one you mentioned in your post here.
To learn about creating custom theme templates in general, check out our official Themer’s Guide here → https://theeventscalendar.com/knowledgebase/themers-guide/
Then, to specifically tailor some of the information there to WooCommerce Tickets, you should make a /wootickets folder within the /tribe-events folder you make in your theme (which is required for registering custom templates – check out that themer’s guide for more information on this). Then, finally, in that new /tribe-events/wootickets subfolder in your theme, you can then make a new tickets.php file there and create what you need for your site.
You should first duplicate the existing tickets.php from /views/wootickets in the files of your copy of the WooCommerce Ticketing add-on, and then once you test that to ensure everythings working correctly, start customizing it.
Let us know if this helps at all!
Thanks,
GeorgeMarch 4, 2015 at 10:12 am #945953randomwalk
ParticipantThank you, I didn’t think about putting it in the tribe_events folder. I was making a separate wootickets folder.
Just a suggestion to add the actions in your tickets.php because I am using woocommerce product add ons plugin in combination with the wootickets to add custom fields for the event.
March 5, 2015 at 10:33 am #946232George
ParticipantThanks for that suggestion, it’s something worth considering for sure.
As for your ticket here, you marked it “Resolved”, which we really appreciate! Thanks for marking that. I’ll go ahead and close up this ticket for now, but if you have other questions or concerns, don’t hesitate to come back and open up a new ticket here.
Cheers,
George -
AuthorPosts
- The topic ‘woocommerce actions in wootickets’ is closed to new replies.
