Home › Forums › Calendar Products › Events Calendar PRO › HTML in Additional Fields – or Description
- This topic has 6 replies, 3 voices, and was last updated 10 years, 9 months ago by
Support Droid.
-
AuthorPosts
-
July 26, 2013 at 2:48 pm #57389
wwa
ParticipantI 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.
July 29, 2013 at 5:18 pm #57675Neill
MemberHi 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!
NeillJuly 29, 2013 at 6:17 pm #57685wwa
ParticipantThis reply is private.
July 30, 2013 at 5:22 pm #57887Neill
MemberHi 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
July 31, 2013 at 6:17 am #57951wwa
ParticipantThanks 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.July 31, 2013 at 3:37 pm #58148Neill
MemberHi 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.
NeillJuly 7, 2015 at 6:27 am #980022Support Droid
KeymasterThis 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. -
AuthorPosts
- The topic ‘HTML in Additional Fields – or Description’ is closed to new replies.
