Home › Forums › Calendar Products › Events Calendar PRO › Event Cost for 0 & Blank amounts
- This topic has 6 replies, 2 voices, and was last updated 9 years ago by
Cara.
-
AuthorPosts
-
March 26, 2017 at 4:06 pm #1260237
Cara
ParticipantIn the event cost the description states we can either hide the field or list it as free. We have events that are free to members & some that are free to all so 2 choices would be great
Likewise, the Events List widget has a checkbox for the price field.
Even if I list all my events with blanks & uncheck the price in the widget I still get the else response from the tribe-events-event-cost section of tribe-event/pro/single-event.php. For now, I have changed the text to something innocuous.
Enter a 0 for events that are free or leave blank to hide the field.
<?php if ( isset( $cost ) && $cost && tribe_get_cost() != '' ) { ?> <div class="tribe-events-event-cost"> <div class="tribe-events-event-cost-inner"><?php echo tribe_get_cost( null, true ); ?></div> <div class="tribe-events-event-cost-descr">One Ticket</div> </div> <?php } else { ?> <div class="tribe-events-event-cost"> <div class="tribe-events-event-cost-inner">Come</div> <div class="tribe-events-event-cost-descr">Dancing</div> </div> <?php } ?>March 27, 2017 at 11:09 am #1260465Cara
ParticipantSite is live – https://www.bawdc.org/events/
March 28, 2017 at 6:11 am #1260730Victor
MemberHi Cara!
Thanks for reaching out to us! 🙂
The event cost can take up more than value. For example, if you have free tickets, $50 tickets and $25 tickets, you could enter the three values like this > https://cloudup.com/clfUj6eR_4k and it will show up in the frontend like this: Free – $50.
Even if I list all my events with blanks & uncheck the price in the widget I still get the else response from the tribe-events-event-cost section of tribe-event/pro/single-event.php
This issue seems like a theme conflict, so could you please try switching to a default theme and see if it works there? If that does not work I would suggest you go through all the steps in the testing for conflicts guide and let me know what you find in the process > https://theeventscalendar.com/knowledgebase/testing-for-conflicts/
Thanks!
Victor
March 28, 2017 at 6:54 am #1260757Cara
ParticipantOur is us is that some events are free to all and others are free to members only. Anyway to distinguish that?
March 28, 2017 at 4:41 pm #1261183Victor
MemberHey Cara!
Thanks for the follow up on this! Let me try and help you with that.
One option could be to create an additional field for the events that will enable you to add that extra information. For example, create a field called “Members Price” and set that to Free (or even a different price) in the events. You can find all about adding Additional fields here > https://theeventscalendar.com/knowledgebase/pro-additional-fields/
The other option I can think of would be to try out our Event Tickets free plugin which will enable you to create different tickets and prices in addition to also manage and collect RSVP’s for your events.
I hope that helps. Let me know if you have further questions and I’ll be happy to help.
Best!
Victor
April 19, 2017 at 9:35 am #1271733Support 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 ‘Event Cost for 0 & Blank amounts’ is closed to new replies.
