Where to write price.

Home Forums Ticket Products Event Tickets Plus Where to write price.

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #1040533
    christoffer
    Participant

    Hi! I am using events calender pro and tickets plus for my gym courses, and i would like to display price on every course without the price in booking. So it will be free to book using rsvp, but they pay when they get here. So i still want to display price next to the date, but there is not place to write the price in settings ?

    #1040942
    George
    Participant

    Hey @Christoffer,

    This is unfortunately a bit tricky to do, and would require some custom coding πŸ™

    The simplest possible way I can think of going about doing this would be to first create an additional field within Events Calendar Pro, which you can learn to do here β†’ https://theeventscalendar.com/knowledgebase/pro-additional-fields/

    You can name this field “Cost at the door” or something, and then on each event, add the appropriate cost values. It will display these values in the “meta details” section of your events.

    To take this further and add this value next to the dates in event views, that unfortunately is where the custom coding would come into play.

    Let me know if you implement the “Additional Field” first, and what you name this additional field exactly. I will use that information and try to recommend some code for you πŸ™‚

    Thank you,
    George

    #1041110
    christoffer
    Participant

    I created it and named it “Pris” So if you could give me some code, that would bre great, looks so weird with only white space, next to the date otherwise.

    Best regards!

    #1041147
    George
    Participant

    Thanks @Christoffer!

    I wrote a little snippet that works well for me – here’s an example of how to do this. Add this to your theme’s functions.php file and let me know if it helps:


    add_action( 'tribe_events_event_schedule_details_inner', 'tribe_pris_field_example' );

    function tribe_pris_field_example( $inner ) {

    $fields = tribe_get_custom_fields( get_the_ID() );
    $price = 0;

    foreach ( $fields as $key => $field ) {
    if ( 'Pris' == $key )
    $price = $fields[ $key ];
    }

    return $price . ' | ' . $inner;
    }

    Cheers,
    George

    #1041176
    christoffer
    Participant

    Sry to say, it is not working, check image here http://imgur.com/nujZ3B6

    #1041706
    George
    Participant

    I’m sorry @Christoffer πŸ™

    The nature of customization projects are all the site-specific things like this, because this code works well for me. For example, see these images as proof:

    I’m sorry that this solution doesn’t work for you as well – I’m not sure why πŸ™ Your best bet would be to explore the custom coding from here, and/or hire a developer to help, but in either case you’ll have to take the reins from here.

    I’m sorry @Christoffer!

    β€” George

    #1041732
    christoffer
    Participant

    Well, thank you anyway!

    #1041768
    George
    Participant

    Thank you, @christoffer. Really sorry that I can’t help more here πŸ™

    Before I close this thread, I would like to point out that we have a list of highly-rated customizers here if you’re interested in hiring someone to help out with all of this β†’ http://m.tri.be/18k1

    Best of luck with your project!
    George

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘Where to write price.’ is closed to new replies.