List View displaying Price when field is left blank

Home Forums Calendar Products Events Calendar PRO List View displaying Price when field is left blank

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1381197
    Luke Dempsey
    Participant

    Hi guys,

    I’m having a strange issue with a number of my events. Despite the ‘cost’ field being left blank, on the front of the events listing it seems to be automatically populating a price. The events that we are trying to list require all 3 formats, ticketed, Free & Variable (we’d prefer just a blank cost for these events).

    I was wondering if anybody would be able to shed some light on this issue?

    PS. Have also considered hiding the cost altogether, however, no CSS code I have found on these forums seems to work for me.

    Cheers,
    Luke

    Webpage for reference: http://eotm.peartreeconcepts.com.au/central-murray/

    #1382718
    Jennifer
    Keymaster

    Hi Luke,

    Thanks for reaching out! I took a look at the link you sent and clicked through a few events…Could you please send me a link to an event where this is happening, along with a screenshot of the settings for that event on the event edit screen (including the cost field)? I would also recommend upgrading to the latest version of The Events Calendar – 4.6.4.

    If you would like to hide the cost field altogether, you could remove it from the templates you want to hide it from. You can find the single event template at wp-content/plugins/the-events-calendar/src/views/single-event.php. First follow these instructions to copy the template into your child theme for editing, then look for the following:

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

    Thanks,

    Jennifer

    #1399497
    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 ‘List View displaying Price when field is left blank’ is closed to new replies.