Remove prices on event pages

Home Forums Ticket Products Event Tickets Plus Remove prices on event pages

  • This topic has 3 replies, 1 voice, and was last updated 9 years ago by rachel.
Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1255615
    rachel
    Participant

    Is there a way to remove the pricing on the individual event pages because we have multiple ticket pricing in our Woo Store instead and some of those tickets are hidden tickets. We don’t want hidden ticket pricing being presented on this main event page.

    Our site is currently in staging about to be launched with a new theme.
    Example page in staging: http://iwa2016.staging.wpengine.com/event/iwlc-training-la-june-2017/

    See this screenshot:

    View post on imgur.com

    #1255779
    Geoff
    Member

    Hi @rachel,

    Absolutely, that’s totally possible! I would suggest overriding the [template-name.php] template to make that happen. You can learn more about overriding calendar templates in our Themer’s Guide, but it basically boils down to this:

    • Make a copy of the single-event.php template. It is located at /wp-content/plugins/the-events-calendar/src/views/single-event.php
    • Make a new folder in your theme called tribe-events
    • Drop your copied single-event.php file in that folder

    Now that the template is in your theme, you can modify it to suit your needs. In this case, remove the cost field, which is this code (Lines 38-40):

    <?php if ( tribe_get_cost() ) : ?>
    <span class="tribe-events-cost"><?php echo tribe_get_cost( null, true ) ?></span>
    <?php endif; ?>

    Will this work for you? Please let me know. 🙂

    Cheers!
    Geoff

    #1267076
    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 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Remove prices on event pages’ is closed to new replies.