Support

Home Forums Ticketing Add-on Simple Attendee Addon Action (Similar idea to Ticketing)

Simple Attendee Addon Action (Similar idea to Ticketing)

Posted: July 23, 2013 at 3:40 pm

Viewing 20 reply threads


Cam Bassignan

July 23, 2013 at 3:40 pm

Hi, Hoping you guys can help me with this. I need to add another “action” to the attendee list in the admin and for the user to see… very similar to the ticketing plugin but simpler in nature.

I am using the events as classes and the attendees receive a certificate for taking the class. I am looking to have it create a certificate using: Event Title, Attendee Name, Event Date, and some additional custom event meta.

How can I create a template like the ticket and have a link for it show up in both the admin attendee list and “Espresso My Events” table?? As I said, almost identical to the Ticketing.

Thanks!


Dean

July 24, 2013 at 4:26 am

Hi,

Well you could in theory use the ticketing add on for this purpose but obviously if it is already in use for tickets that wont work.

Other than that you really are looking at a custom add on. I doubt we could take this on currently, but you can certainly send in a request – https://eventespresso.com/contact/customization-request-form/

Alternatively you could contact one of our recommended developers to see if they can assist you – https://eventespresso.com/developers/event-espresso-pros/


Cam Bassignan

July 24, 2013 at 11:23 am

Had the same thought, but it is already in use for tickets.

Could it be possible to DUPLICATE the ticketing add on renaming it and the functions? Then make the necessary adjustments to the newly created add on…

I would think this would be possible. The only thing I would need to know is if there are any necessary hooks to add (possibly in the theme functions.php) to have Event Espresso know about the new add on to make it work and show up like the ticketing. Right??


Dean

July 25, 2013 at 3:33 am

Hi,

It is possible yeah but you would need to go through the ticketing add on and the core plugin looking for the right functions to rename and also to be able to even link the add on with the core plugin.

So you would still be making modifications to the core plugin.


Cam Bassignan

July 25, 2013 at 12:00 pm

So there would not be a way to do it without modifying the core plugin directly? No way to call or add the functions from another file, say in the new add on?

I don’t want to have to mess with the core plugin directly because of updating.


Seth Shoultes

  • Support Staff

July 25, 2013 at 11:05 pm

I built an add-on, back in October 2011, that was never released, that may help you get started. Here is a link to it:
http://ee-updates.s3.amazonaws.com/espresso-certificates.1.0.zip

Just not sure if it still works, but it may help you get started. Please let us know what happens.


Dean

July 26, 2013 at 3:16 am

I wanted to see this in action myself, so I made a few tweaks to get it at least functioning on the latest version of Event Espresso.

https://dl.dropboxusercontent.com/u/14389794/espresso-certificates.1.0.zip

Looks like it will still need some work though, to polish it up and make it unique for your needs. Remember to add a Business logo in the General settings and to use the [certificate_link] shortcode in the emails. There’s a brief readme in the zip file.


Seth Shoultes

  • Support Staff

July 26, 2013 at 10:13 am

Thanks Dean. I think I will post these files on Github.


Seth Shoultes

  • Support Staff

July 26, 2013 at 10:50 am

Dean I added this to Github:
https://github.com/eventespresso/espresso-certificates


Cam Bassignan

July 26, 2013 at 12:56 pm

Awesome! Thanks guys! I will have a look at this and really mess around with it early next week. I’ll Let you know how it goes.


Dean

July 28, 2013 at 11:38 pm

Thanks Seth!

Cam, please do let us know your thoughts.


Cam Bassignan

July 30, 2013 at 1:01 pm

Okay, so I have uploaded/activated the plugin the standard WordPress route, but nothing is showing up. (Using the files from Github)

It is showing as active…. though there is no new “Certificate Templates” menu under Event Espresso or any new Action icon/name showing next to an attendee. Is anything suppose to appear? If not, how would I go about making it appear?

Is Event Espresso not recognizing it?

Will be looking through it a little more……….

Set up on:
Event Espresso version 3.1.33.3.P
WordPress version WP 3.5.2


Cam Bassignan

July 30, 2013 at 2:34 pm

Have been looking through the core files (3.1.33.3.P) and there are 3 important files with functions being called to have the ticketing appear: espresso.php, event_list_attendees.php, and admin-menu.php (Adds the “Ticketing Templates” link in WP menu). By changing the admin_menu.php, I was actually able to see the Certificate Template options, but I don’t want to change a core file.

espresso.php:
<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”>//Addons
//Ticketing
if ( file_exists(EVENT_ESPRESSO_UPLOAD_DIR . "ticketing/template.php") || function_exists('espresso_ticketing_version') ) {
global $ticketing_installed;
$ticketing_installed = true;
//echo '<h1>IN !!!</h1>'; die();
}

event_list_attendees.php:
Notice this simply builds out the table using $ticketing_installed

admin-menu.php (only 1 portion):
<pre class=”brush: php; gutter: true; first-line: 1; highlight: []; html-script: false”> //Ticketing Settings
if (function_exists('espresso_ticket_config_mnu') && $espresso_premium == true) {
add_submenu_page('event_espresso', __('Event Espresso – Ticket Customization', 'event_espresso'), __('Ticket Templates', 'event_espresso'), apply_filters('espresso_management_capability', $default_role, isset($espresso_manager['espresso_manager_ticketing']) && !empty($espresso_manager['espresso_manager_ticketing']) ? $espresso_manager['espresso_manager_ticketing'] : $default_role), 'event_tickets', 'espresso_ticket_config_mnu');
}

Seth, you maybe able to help with this since I notice you have worked on the “Custom Add On”….could I add these functions (or similar) to the Custom Add On: custom_functions.php to have it essentially add to the above files to build out the table and menu??

Again, Thanks for all your help and patience guys!


Cam Bassignan

July 30, 2013 at 2:45 pm

One other thing. I also noticed you guys may have already been working on adding a certificate.

This is mentioned in the general settings ‘Logo Help Box’: “The default logo will be used in your custom invoice, ticketing, certificates, and payment templates.”

AND…..

this was found in espresso.php:
[code language=”php”]function espresso_export_certificate() {
do_action(‘action_hook_espresso_log’, __FILE__, __FUNCTION__, ”);
if (isset($_REQUEST[‘certificate_launch’]) && $_REQUEST[‘certificate_launch’] == ‘true’) {
echo espresso_certificate_launch($_REQUEST[‘id’], $_REQUEST[‘r_id’]);
}
}
add_action(‘plugins_loaded’, ‘espresso_export_certificate’, 30);[/code]

Along with the shortcode [certificate_link], a few other references to certificate_launch and more in email.php (includes/functions/email.php)


Dean

July 31, 2013 at 4:25 am

Hi,

First off are you using the file I linked to or Seths Github? If mine, remove that add on and use Seths Github link, he’s polished it up a bit.

Regarding the usgae, it requires a shortcode in the email to the user and they click on that and get sent to a page with the certificate they can print off.

The certificate is an HTML file so is quite easily modified.

Hope that helps.


Cam Bassignan

July 31, 2013 at 12:12 pm

Hey Dean, Yup the file from Githup is being used and I do know about the shortcode usage and the HTML template file.

The trouble is I need the certificate to be a link in the WP Admin area next to the Attendee under “Actions” and for it to also be a link on the USER event list just like the ticket. I’m sure I can get this working by “hacking” the core module using the files I listed above, but looking for a way to do it without hacking.

Ideally it would be nice to edit/select a template in the WP Admin area, too, which is already part of the files on Github but aren’t being displayed. Although this is not required to get it working for my needs.


Dean

August 5, 2013 at 12:19 am

Hi Cam,

I’m currently awaiting some feedback from one of the developers on this, so sorry for the slow response. I will get back to you as soon as it is possible.


Cam Bassignan

August 5, 2013 at 5:29 pm

Thanks for letting me know Dean…. I will wait to hear back.


Dean

August 6, 2013 at 1:41 am

Hi Cam,

I spoke to the developer on this (he’s busy moving so been a bit slow responding) and basically, what you need wont be possible with this version, at least not without hacking at the code.

This version is really just a proof of concept, designed to be a base for users (and ourselves) to build upon.

I will raise a few feature request tickets on this, to see if we can add these in in future versions, and perhaps make this a more formal add on.

I don’t know the timescale on this, as 4.X is taking up most of our resources (new features are actually on hold currently).


Cam Bassignan

August 7, 2013 at 1:03 pm

Okay. I guess I will have to hack the core module and keep the notes on the hacks for now.

Thanks again for all the help in looking into this and putting in the feature requests! Look forward to seeing this in a future version. I will let you know if and how it goes with the hacks to possibly give you guys some ideas.


Dean

August 8, 2013 at 12:08 am

Thanks Cam, feedback is always welcome especially with new beta products!

Viewing 20 reply threads

The support post ‘Simple Attendee Addon Action (Similar idea to Ticketing)’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso