Home › Forums › Calendar Products › Events Calendar PRO › Adding a Buy Now button
- This topic has 4 replies, 2 voices, and was last updated 8 years, 11 months ago by Geoff.
-
AuthorPosts
-
June 3, 2015 at 4:07 am #966839EricParticipant
Is it possible to put in a “Buy Now” button which would allow staff members paste a link in the backend to a third party ticket site such as tickets.com or ticketmaster?
June 3, 2015 at 8:01 am #966930GeoffMemberHi Eric and welcome to the forums! I sure hope you’ve been enjoying the plugins so far. 🙂
Yes, I do think it would be possible to display a button as a link like that. For example, you could use the Event Website field (screenshot) in the event post editor. That will automatically display on the single event post when published.
From there, you have the URL and can modify any calendar template to display it again wherever you’d like using tribe_get_event_website_url(). Here’s a link to our Themer’s Guide, which provides documentation for what templates are available to customize and how to customize them.
Does this answer your question? Please let me know. 🙂
Cheers!
GeoffJune 3, 2015 at 8:58 am #966954EricParticipantHi Geoff,
Thanks for that.
So how do I go about making that url a button?! I’m a bit of a newbie on that!
June 3, 2015 at 1:28 pm #967011GeoffMemberAwesome, I’m glad that helps!
Good question. You would likely need to create the styling for such a button in your theme’s CSS file, then apply it to the URL when you output it in the template. For example:
<a href="<?php echo tribe_get_event_website_url() ?>" class="my-button-class">Buy Now</a>
That’s about as much as I can help with a custom development question like this, but I do hope that gets you started in the right direction. 🙂
Cheers!
GeoffJune 4, 2015 at 6:54 am #967147GeoffMemberHey Eric! I see my last reply was marked as the correct answer–thanks again for reaching out and I’m stoked this helped out. Please feel free to hit us back up with a new thread if any other questions pop up and we’d be happy to help. 🙂
Cheers!
Geoff -
AuthorPosts
- The topic ‘Adding a Buy Now button’ is closed to new replies.