Support

Home Forums Event Espresso Premium Can QR Code be Scanned Multiple Times

Can QR Code be Scanned Multiple Times

Posted: November 7, 2013 at 8:51 pm

Viewing 8 reply threads


Keith Simmons

November 7, 2013 at 8:51 pm

I need my ticket or QR Code to be able to be scanned at 4 different locations. How do I set a limit of 4 scans per ticket? Can’t find where to do that. Thanks


Dean

November 8, 2013 at 1:15 am

Hi Keith,

The QR codes can be increased to be scanned more than once, but it is based on the number of tickets. So, for example, if one person buys 5 tickets (with No Info Required set for the additional attendees) then they can have that ticket scanned more than once.

To have a single ticket purchase be scanned more than once, you would need to modify the plugin as that is non standard behaviour.

If you need assistance with modifying the plugin, you can contact one of our recommended developers – https://eventespresso.com/developers/event-espresso-pros/


Keith Simmons

November 8, 2013 at 11:09 am

Thanks for the reply – not what I wanted to hear. Another thought to work around this…..How I’m selling tickets is a package. Buy one ticket and receive admission into 4 attractions. Can I set it up where when a person buys one ticket, it will email them 4 unique tickets? The demo site is


Keith Simmons

November 8, 2013 at 11:10 am

http://travelertickets.com


Dean

November 11, 2013 at 4:57 am

Hi,

I looked at this in a variety of ways and using the default plugin it isn’t going to work for what you need.

We do however have a bunch of hooks and filters that can be used to modify the plugin.

For example:

function change_ticket_count($attendee_data) {
if($attendee_data['event_id'] != '166') { return false;}
global $wpdb;
$wpdb->update( EVENTS_ATTENDEE_TABLE, array("quantity" => "5"), array("id" => $attendee_data['attendee_id']), array("%d"), array("%d") );
return;
}
add_action('action_hook_espresso_save_attendee_data', 'change_ticket_count');

Adding that to the custom_functions.php file in the upload/espresso folder will make the plugin check to see if the even has an ID of 166 and if it does, it updates the primary registrants ticket count to 5.

You could use something similar on your own site, but it might be worthwhile setting the check to be a category name/id or a custom meta field rather than the event id.

The above code is only an example, and is not supported.

You can also contact one of our recommended developers should you need assistance with customising the code. https://eventespresso.com/developers/event-espresso-pros/


Keith Simmons

November 11, 2013 at 9:45 am

That’s a great suggestion- thanks Dean. By inserting the hook, would that insert an attendee multiple times in the mobile app attendee log?


Dean

November 12, 2013 at 12:34 am

Hi Keith,

What the above example would do is increase the quantity of tickets that they are marked as having, and that is what the scanning app looks for.

There is a flaw to the above code as it will charge the user five times (I didnt realise this yesterday), so you may need to reconsider the hook used to one that fires after payment is successful – https://eventespresso.com/wiki/event-espresso-3-1-action-hooks/.

action_hook_espresso_track_successful_sale seems to work better.


Keith Simmons

November 13, 2013 at 2:16 pm

Hello Dean, I stumbled upon this on the EE blog….seems that it would solve my problem. Number of Uses per Ticket: https://eventespresso.com/2013/09/event-espresso-4-feature-showcase-ticket-quantity-uses-min-and-max/

Do you know when Espresso 4 this will be released? Could I run beta version on site? Thanks


Josh

  • Support Staff

November 14, 2013 at 8:30 am

Hi Keith,

Event Espresso 4 isn’t ready for release yet. When the beta is ready we will make an announcement that it can be downloaded for beta testing.

Viewing 8 reply threads

The support post ‘Can QR Code be Scanned Multiple Times’ 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