HTML in Additional Fields – or Description

Home Forums Calendar Products Events Calendar PRO HTML in Additional Fields – or Description

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #57389
    wwa
    Participant

    I did research, found a topic from a year ago (https://theeventscalendar.com/support/forums/topic/html-in-additional-fields-and-an-additional-question/#post-21985). I have exactly the same need. The solution given there didn’t solve what I’m looking for. I tried putting the code I get from the payment gateway (you don’t support that one, that’s why I’m using this route) and the button doesn’t show at all.

    I tried using “additional field” and tried both URL and TEXT. Same thing.

    #57675
    Neill
    Member

    Hi wwa,

    Thanks for your question. Unfortunately as the plugin changes and gets updated, sometimes the older solutions or work arounds that we had don’t fit the bill, but don’t worry that’s why we’re here!

    If you can give us a better idea of what you are trying to achieve, we can probably dig a little deeper for you. You mentioned a code from a payment gateway. Which gateway are you using and if you want you can paste the code in a tool like snippi (http://snippi.com/) and we’ll have a better idea of what you are trying to do.

    Also, Im a assuming that the code from the payment gateway creates a button for a user to pay or oder something, if thats the case where are you trying to make this appear? On each of the single event pages? Or elsewhere?

    That should be enough info to get us going. Thanks for your question!
    Neill

    #57685
    wwa
    Participant

    This reply is private.

    #57887
    Neill
    Member

    Hi WWA,

    If you want it just on the single event page (and I’m assuming there will not be a case where you want this on some events but not on others) you’re best bet is to do a template override. This will mean you’ll be basically creating a new version of the single events template and adding this code in as a button wherever you see feel it looks best. It will then show up on each single event page. I just tested this on my end and simply added the code above the comment, and the button showed up on my end above the event description and below the event title.

    Here’s a tutorial on creating a template override: https://theeventscalendar.com/what-are-template-overrides-and-how-do-i-do-them/ This is a great way to make simple changes to files in the plugin as you can make copies of these files and modify them in your own theme, preserving your changes the next time you update the plugin.

    If this solution requires that you have a different button for each event then I would suggest just embedding the code in the individual event description itself. If this is the case, that the button changes for each event it might be worth taking a look at our tickets plugin here: https://tri.be/shop/wordpress-wootickets/

    Let me know if there is something that I missed or misunderstood. Otherwise let me know how you got on with this as a solution.

    Neill

    #57951
    wwa
    Participant

    Thanks neillmcshea. Yes, just like PayPal, the code for that button is unique and generated for a specific event, so it won’t work with overriding the template. I guess I’ll have to live with putting it in the event description.
    I have looked at the tickets plugin. It is not the solution for this case because 1. it doesn’t support the payment gateway I have 2. My payment gateway, Vendini, does the same thing.

    #58148
    Neill
    Member

    Hi wwa,

    So if I’m understanding this correctly, you aren’t really looking for a “auto publish” solution. What you were hoping for was to publish the button in a location that was a little more user friendly then just sticking it in the event description? I think this should be possible via some customization. Take a look at the WP codex and see if this might help: http://codex.wordpress.org/Custom_Fields – you may be able to utilize the custom field to help with this.

    Another option is to stick with the additional field option and see it vendini can generate a straight URL for an event for you rather the a button? That way you could add a link in the Meta for your event.

    Hope that helps.
    Neill

    #980022
    Support Droid
    Keymaster

    This topic has not been active for quite some time and will now be closed.

    If you still need assistance please simply open a new topic (linking to this one if necessary)
    and one of the team will be only too happy to help.

Viewing 7 posts - 1 through 7 (of 7 total)
  • The topic ‘HTML in Additional Fields – or Description’ is closed to new replies.