How to: Edit tickets.php (where does it go in [theme]/tribe-events/tickets/?)

Home Forums Ticket Products Event Tickets Plus How to: Edit tickets.php (where does it go in [theme]/tribe-events/tickets/?)

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1450686
    Mike
    Participant

    So 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-bar

    So 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!

    #1450697
    Mike
    Participant

    I should note this is for Woocommerce, if it is relevant.

    #1452057
    Sky
    Keymaster

    Hi 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,
    Sky

    #1452346
    Mike
    Participant

    Thanks 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!

    #1453117
    Sky
    Keymaster

    Mike,

    I’ve added your suggestion to my to-do list. We appreciate the feedback!

    Take care,
    Sky

    #1473488
    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 6 posts - 1 through 6 (of 6 total)
  • The topic ‘How to: Edit tickets.php (where does it go in [theme]/tribe-events/tickets/?)’ is closed to new replies.