Home › Forums › Calendar Products › Events Calendar PRO › Is it possible to add a field after pricing?
- This topic has 5 replies, 2 voices, and was last updated 8 years, 5 months ago by
Yvonne Weiss.
-
AuthorPosts
-
October 23, 2017 at 5:43 am #1367508
Yvonne Weiss
ParticipantWith Events Calendar Pro, is it possible to add a field after pricing? Our customers have expressed a lot of confusion as to the pricing of our classes. Specifically, they are confused as to whether the price listed is per individual session or per the entire class. I’ve attached a screen shot so you can see an example of our class listing. The website URL is https://knitonequilttoo.com/class-schedule/.
Ideally, there would be a field right after the cost (see screenshot) to add this additional information on whether the price listed is per individual session or per entire class. We have tried adding descriptors in the pricing field, but the cost field disappears on the front end. In this instance of the attached screenshot, for example, we input “$250 for all 9 classes,” but the pricing information disappears with this additional text.
Our work-around is to avoid putting any pricing information at all in the pricing field, and instead put pricing info in the body of the text, which is not ideal and gets lost.
Thank you!
October 24, 2017 at 7:28 am #1368055Victor
MemberHi Yvonne!
Thanks for getting in touch! Let me try to help you with that.
There is no built in way to achieve what you are looking for, so you it would require some custom coding. We are fairly limited in how much support we can give for custom development questions like this as we state here > https://theeventscalendar.com/knowledgebase/what-support-is-provided-for-license-holders/
That said, we always like helping out and at least point users into the right direction as much possible.
By default, the event cost is printed using the tribe_get_cost() function that will strip characters that are not a price. So the workaround would be to make a template override of the single-event.php template file located at /wp-content/plugins/the-events-calendar/src/views/ following the steps provided in out themer’s guide > https://theeventscalendar.com/knowledgebase/themers-guide/
In that template override you should replace line 39 with the following code:
<span class="tribe-events-cost"><?php echo get_post_meta( $event_id, '_EventCost', true ) ?></span>This will print the event cost exactly as you save it in the backend. Bear in mind this will only change the single event template so you’ll need to customize the other templates in a similar way to suit your needs.
I hope that helps. Let me know if you have any follow up questions.
Best,
VictorOctober 24, 2017 at 10:57 am #1368251Yvonne Weiss
ParticipantIs adding this pricing something that you would be able to do in future iterations of Events Calendar Pro as I imagine that many others need this information.
October 25, 2017 at 6:27 am #1368587Victor
MemberHi Yvonne!
Thanks for following up with this.
I’m not sure I understand what you mean by future iterations.
This is how the plugin is designed to show the cost for the event. The changes I provided are just a way to customize the templates for your specific needs, but not something that we think should be a default behaviour.
Does it answer your question? Let me know 🙂
Best,
VictorNovember 16, 2017 at 8:36 am #1384674Support 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 ‘Is it possible to add a field after pricing?’ is closed to new replies.
