Home Forums Event Espresso Premium Request for some code Josh expressed he could suppy

Request for some code Josh expressed he could suppy

Posted: October 18, 2018 at 1:15 pm


October 18, 2018 at 1:15 pm


You expressed that you could possibly give us some jquery code to add the amount of guest, guide and worker tickets to the cart and registration form.


Support Staff

November 29, 2017 at 8:59 am

I think that would work well, and with a bit of custom jQuery added to the page, you’d be able to enforce the quantity selection of guides. Technically speaking, that would involve adding an event listener to the ticket selector’s quantity fields to watch for the selections and automatically update the guide ticket quantity. For example if someone selected 8 tickets from the 2 team fee row, then the Free Guide option would automatically get set to be 2. If you need help with setting up that custom jQuery I can put together a code example for you.

If we used this code, I don’t believe it would be necessary to even show the “Free Guest/Guide” or “Worker” ticket selections on the register page at all. Does the short code for it have to be entered there for the code to be able to add the ticket?

(Site is in Maintenance Mode – not sure if you will need login to view this page, please let me know.)


  • Support Staff

October 18, 2018 at 3:51 pm


What I wrote was here:

That said, if I give you the example code to enforce the extra selections of guides, they’ll need to input guide information for each of the guide (like their names). It doesn’t sound like you want that.

Maybe you can explain what’s needed exactly with keeping track of numbers of guides per team and I can point you in the direction to make that happen.


October 25, 2018 at 10:09 am

Hello Josh,

Thanks for your help with this.

What we would like to see is the guide/guest and worker tickets that are included with the purchase of a Table Sponsorship or Team bundle to appear in the cart (which is what I understand your jQuery code can do) and then onto the registration form.

I believe we can place some description with the ticket explaining that these tickets will be included. But, in order for this to work, I would like to make sure that we don’t have to show these free tickets on the front end. I don’t want the user to be confused by the ability to select them as well as their automatic inclusion.

My professional coder will be changing the code to included placeholder text that will reflect the nature of the fields on the form, ie., Angler 01, Angler 02, or Guest/Guide 01, Guest/Guide 02, etc., etc. This placeholder text will then remain as the field entry if the user does not put anything in the field. This way the ticket is held and the user can return later and put in an attendee’s information that is able to attend closer to the event.


  • Support Staff

October 25, 2018 at 1:22 pm


Your professional coder should be able to adapt the following example code for use on your site:

The support post ‘Request for some code Josh expressed he could suppy’ 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.

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: closed

Updated by  Josh 5 months, 3 weeks ago ago

Topic Tags


This topic is: resolved
Do NOT follow this link or you will be banned from the site!