Home › Forums › Ticket Products › Event Tickets Plus › How to: Edit tickets.php (where does it go in [theme]/tribe-events/tickets/?)
- This topic has 6 replies, 2 voices, and was last updated 8 years, 2 months ago by
Mike.
-
AuthorPosts
-
February 12, 2018 at 7:20 am #1450686
Mike
ParticipantSo I am editing the tickets.php view from Event Tickets Plus to a stacked table for implementation in a side bar. Unfortunately, the Themer’s Guide doesn’t list very clear details on WHERE to put this file. Dumping it in the /tribe-events/tickets/ directory doesn’t query the revised file. Here is the relevant section from the Themer’s Guide:
2. Create a new folder in your theme
Open your theme folder, located at wp-content/themes/your-theme/
Create a new folder here called /tribe-events. This will be the parent folder that contains all template overrides.
Create a new folder inside /tribe-events for specific premium addons:
Community Events: /tribe-events/community/
Events Calendar Pro: /tribe-events/pro/
Event Tickets: /tribe-events/tickets/
Filter Bar: /tribe-events/filter-barSo where does the ticket.php file actually go?
As a follow up request, could MT add into the Themer’s Guide a complete list of all template “view” files and what their final destination should be inside our themes? For example:
Events Calendar:
/wp-content/plugins/the-events-calendar/src/views/day.php -> /wp-content/themes/[your theme]/tribe-events/day.php
/wp-content/plugins/the-events-calendar/src/views/default-template.php -> /wp-content/themes/[your theme]/tribe-events/default-template.php
etc…Events Calendar Pro:
/wp-content/plugins/events-calendar-pro/src/views/pro/map.php -> /wp-content/themes/[your theme]/tribe-events/pro/map.php
/wp-content/plugins/events-calendar-pro/src/views/pro/photo.php -> /wp-content/themes/[your theme]/tribe-events/pro/photo.php
etc…And so on for each product.
It seems to me that a simple 15 minute addition to the Themer’s Guide would make all the difference in customer security of knowing they were putting the edited templates in the right place. The current wording is somewhat ambiguous.
Thanks!
February 12, 2018 at 7:29 am #1450697Mike
ParticipantI should note this is for Woocommerce, if it is relevant.
February 13, 2018 at 10:23 am #1452057Sky
KeymasterHi Mike!
I’m sorry that you found the documentation in the Themer’s Guide confusing. I will see if we can expand the documentation to make it a bit more clear.
Just a tip: at the top of each template file in the comments it shows the location and directory structure that you should add to your theme or child theme. In the case of the woocommerce/tickets.php template, it shows “[your-theme]/tribe-events/wootickets/tickets.php.”
Does this help? Let me know if you have any other questions.
Thanks,
SkyFebruary 13, 2018 at 3:34 pm #1452346Mike
ParticipantThanks for that info. I did not remember that they were documented in the headers of each file.
The key issue for the Themer’s Guide is that it doesn’t list the wootickets directory as a potential directory for Event Tickets Plus. In general, I think it should list every potential sub-directory and their respective plugin, at the very least. Ideally, it should have every single modifiable file listed.
Thanks!
February 14, 2018 at 8:52 am #1453117Sky
KeymasterMike,
I’ve added your suggestion to my to-do list. We appreciate the feedback!
Take care,
SkyMarch 8, 2018 at 8:35 am #1473488Support 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 to: Edit tickets.php (where does it go in [theme]/tribe-events/tickets/?)’ is closed to new replies.
