Remove a sub-section from single event meta box

Home Forums Calendar Products Events Calendar PRO Remove a sub-section from single event meta box

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1133337
    Mark James
    Participant

    Hi there,

    I have a site in development running Events Calendar Pro and Events Tickets Plus with Woocommerce.

    As each course ticket has three prices which are obtained through a discount system I have no need to display ‘Cost:’ in the meta box, as this information is provided within an additional field called cost.

    Example: http://bht-learning-development.co.uk/training-course/universal-credit-digital-service-hastings/

    I’ve spent quite a bit of time trawling your support section and understand that removing the ‘cost’ sub-header involves something called the meta walker, which isn’t straighforward to override.

    I can hide the actual cost using css, but am completely stumped as to how to hide the ‘Cost’ subheader. Is this actually possible?

    Many thanks.

    #1133460
    Cliff
    Member

    Hi Anthony. Sorry you’ve spent so much time on this.

    Please follow along our Themer’s Guide for this file: /wp-content/plugins/the-events-calendar/src/views/modules/meta/details.php

    Copy that file to your child theme’s tribe-events/modules/meta/ folder (as described in the Themer’s Guide and the top of the details.php file)

    Then make this edit to that copied file (in that child theme folder, not in The Event Calendar’s plugin folder):

    Comment out Line 50 by changing it from

    $cost = tribe_get_formatted_cost();

    to

    // $cost = tribe_get_formatted_cost();

    And that should do it!

    #1135914
    Mark James
    Participant

    Worked a treat. Awesome support. Thanks! 🙂

    #1136138
    Cliff
    Member

    Noyce! Thanks a lot for the compliment!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Remove a sub-section from single event meta box’ is closed to new replies.