shortcode in additional fields

Home Forums Calendar Products Events Calendar PRO shortcode in additional fields

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #730079
    juriklaric
    Participant

    Hi,
    I have a plugin called simple credits installed that works with woocommerce. It lets me sell products for credit instead of €. Combined with woocommerce Tickets the shortcode [buy_credits_button] works when I use it in the event calendar setting “after the event” field. I just would like have this shortcode in an “addidtional field” Is that possible?
    Best, Juri

    #732587
    juriklaric
    Participant

    Joehoe… anybody there?

    #733438
    Brook
    Participant

    Howdy juriklaric,

    I am right here! And I bring good news. That should be very possible. If you were to do a theme-override on pro/modules/meta/additional-fields.php and run the $value through do_shortcode, it should then treat the values as possible shortcodes. It is worth a shot. There are some things that could get in the way, but odds are this will work great.

    I am happy you were able to get those credits working. Thanks for letting us know! Good for future reference.

    Did that work?

    – Brook

    #733873
    juriklaric
    Participant

    Hi Brook, Thanks for the reply. Happy to hear it’s possible. I’m just not that good with code and all. I have been looking for the pro/modules/meta/additional-fields.php but can’t find it in the plugin customizer. Can I change this in wordpress… customize the plugin section?
    Best,
    Juri

    #734729
    juriklaric
    Participant

    Hi Brook, I have managed to figure it out. I have created all the folders in direct admin. It’s there. Yeah. But, still not working. As you can see on the page http://stadswild.nl/sw1/event/urban-run/2014-09-07

    You’ll see that in the meta field is nou a link “credit” That’s the shortcode. But scroll down and at the bottom of the page you’ll find “1credit”. That’s the same shortcode. It’s linked to the price set in “tickets” and woocommerce. Somehow it does work on the bottom HTML field but not in the meta field. Any thoughts?
    Best, Juri

    #735601
    juriklaric
    Participant

    Hi, I changed it. It doesn’t work… Is it possible to get an extra button next to the iCal button? Or when you look at http://stadswild.nl/sw1/event/urban-run/2014-09-14 you’ll see the orange button…. That’s html ‘before’ the calendar. If I can move that next to iCal I will be so happy 😀 It’s now also on the month view….and thats wrong…
    Best,
    Juri

    #736557
    Brook
    Participant

    Howdy again,

    It is is possible to get one next to the iCal. Hopefully this step-by-step will make it easier. You could create a theme override for single-event.php. Replace line 56:

    <?php do_action( 'tribe_events_single_event_after_the_content' ) ?>

    With:

    if (is_single() && !post_password_required()) {
    echo '<div>';
    echo '<a href="' . tribe_get_gcal_link() . '" title="' . __( 'Add to Google Calendar', 'tribe-events-calendar' ) . '">+ ' . __( 'Google Calendar', 'tribe-events-calendar' ) . '</a>';
    echo '<a href="' . tribe_get_single_ical_link() . '" title="' . __('Download .ics file', 'tribe-events-calendar') . '" >+ ' . __( 'iCal Export', 'tribe-events-calendar' ) . '</a>';
    echo '</div><!-- .tribe-events-cal-links -->';
    }

    It should now be much easier to add something next to the ical link, which you can see in the above code snippet. If your code is HTML, then you can simply insert it in there.

    I understand not being a coder for sure. I was trying to be super specific above. I really hope that helps. Cheers Juri! Please let me know if that works, or if I can expound on anything.

    – Brook

    #739321
    Brook
    Participant

    Thanks for marking the answer! I am glad you were able to figure it out from there. Please feel free to open a new topic if we can help with anything else in the future. Cheers!

    – Brook

Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘shortcode in additional fields’ is closed to new replies.