Support

Home Forums Event Espresso Premium Hide ticket type for multiple events and tickets

Hide ticket type for multiple events and tickets

Posted: October 7, 2016 at 4:03 am

Viewing 5 reply threads


Heather

October 7, 2016 at 4:03 am

Hello Support!

First, thank you for responding to my last post Seth. I didn’t get back in time to respond that I found the answer to the cart modal placement in my css file 🙂 It had been set to relative.

I am administrator at a non-profit human services organization for the dev disabled and have been working for sometime on offering ee4 registration for our member families and guardians. Members register for 30+ paid events per quarter and events/registrations require significant visible and hidden metadata attached to records. I have had some trouble going live as a result of our requirements. I have a few questions that I hope I can get some help with:

1) How can I hide a single ticket type ‘companion’ from multiple events. Your function works great for a single event/ticket but I need to hide 7 different companion tickets with different names/prices each quarter. I tried a recent template snippet for multiple hidden tickets which doesn’t seem to work for me. Several members are required to purchase a companion ticket to attend specific outings.

2) I have S2 Member Pro, with custom fields containing meta re diet restrictions, level of care, emergency contact et al, which I need to be visible on the reg csv (can we tweak the wonderful csv edit function in snippets to include s2 member meta?). I would also love to add meta as columns on the admin reg page, I have edited columns in WP user admin page, but really need it on a per event/attendee basis. I have made many attempts to track this data with ee4 registration form additional questions, but the data (as an array) has proven very difficult to work with and does not sync with WP or stay with user records requiring re-submission for every registration.

3) Can you recommend how to add a print div button/submit to the admin pages? The csv file needs re-formatting and event managers are not very app savvy.

One last request… I purchased and am using ee4 everything license and yet my account support license reflects ee3 everything. I did request to test ee3 many months ago to see if we should switch but decided on ee4.

I thank you for your help.

Teri


Tony

  • Support Staff

October 17, 2016 at 8:11 am

Hi Teri,

1) How can I hide a single ticket type ‘companion’ from multiple events. Your function works great for a single event/ticket but I need to hide 7 different companion tickets with different names/prices each quarter. I tried a recent template snippet for multiple hidden tickets which doesn’t seem to work for me. Several members are required to purchase a companion ticket to attend specific outings.

Which snippets are you referring to here?

Can you provide further details on what you are trying to do please? I can’t find a previous post detailing this so I’m not sure what you are trying to achieve.

2) I have S2 Member Pro, with custom fields containing meta re diet restrictions, level of care, emergency contact et al, which I need to be visible on the reg csv (can we tweak the wonderful csv edit function in snippets to include s2 member meta?).

How would you connect the registration row with the correct user meta?

Are you using the EE4 User Intergration? Meaning your users are all logged into their own account when registering? Are they only purchasing a ticket for themselves?

I have made many attempts to track this data with ee4 registration form additional questions, but the data (as an array) has proven very difficult to work with and does not sync with WP or stay with user records requiring re-submission for every registration.

We have a snippets that show examples of pulling in additional details for the registrations:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-wp-user/jf_filter_address_answer_for_wpuser.php

Or you can use custom questions and display the details after they have been entered the first time:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-wp-user/mn_wp_user_addon_save_custom_answers_too.php

However as you are currently pulling the information from user meta you would need to alter the above to suit your use case.

3) Can you recommend how to add a print div button/submit to the admin pages? The csv file needs re-formatting and event managers are not very app savvy.

You want a button to use the browsers print function on the admin pages?

Can you provide further details on the problem you have with the CSV, we have snippets to remove details and re-order the fields if needed.

One last request… I purchased and am using ee4 everything license and yet my account support license reflects ee3 everything. I did request to test ee3 many months ago to see if we should switch but decided on ee4.

You should be able to switch your license type within your account page.

Click here: https://eventespresso.com/users/mtas/

Under your downloads you should see a dropdown that allows you to switch your license type, select EE4 Everything license and follow the on screen instructions.

If you have any problems just lets us know and a member of our sales to team can investigate.


Heather

October 18, 2016 at 5:14 am

Good morning Tony and thanks so much for your response.

Ticket type coding snippet here:
https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/jf_ee_hide_show_tickets_based_on_id.php

It works great with s2member levels, but I need to have multiple tickets. I tried to include an array in that code, but no luck. The other option I found in support was to hide companion ticket in css with naming convention as shown here:
/* Hide tickets that begin with Partners from the front-end ticket selector*/
tr.tckt-slctr-tbl-tr[class*=”ee-ticket-partners”] {display: none;}
This is ok, but can I do this to hide from certain levels as we still want user to admin their own ticket purchase. Only a few of our members require a companion with them at events.

I am using WP user integration yes. And I have edited the shortcode loop for attendees using add_filter( ‘FHEE__EEM_Answer__get_attendee_question_answer_value__answer_value’, ‘jf_filter_address_answer_for_wpuser’, 10, 4 ); along with other code to get attendee meta, however I need some emergency contact information, guardian etc which remains constant, and therefore do not want to require registration question for every event. Can’t I add s2member meta into shortcode loop for attendees or for the csv output? Either would work for us.

Re printing… I have tried a few plugins to help me print screens, but I can’t get the scripts in the templates correctly to print only a certain div. Would love to have admin able to print only the content div in the registered table listing (per event).

Asking a lot I know, but our org is ready to trash this project and I have been working on it for sometime. Was hoping I would not have to contact a developer for such a seemingly simple function as adding external meta to either admin pages or a csv report. Ahhhh simple for you … not so simple for me 🙂


Josh

  • Support Staff

October 19, 2016 at 10:54 am

Hi there,

I’m afraid that it would not be simple for us to build a function that adds external data to the admin pages and CSV report. Along with that, this type of customization would need to be maintained over time. That’s why I mentioned contacting a developer in the support token request.

To your question about including an array of tickets, Tony wrote up an example in this snippet:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/templates/tw_ee_password_protect_tickets.php


Heather

October 20, 2016 at 8:04 am

Sorry, Josh this thread was posted prior to support token and not attached to that request, and yes, I have looked into a developer for our needs. However, I have since changed reg process and hope that I can achieve necessary results through a better setup.

So can we use the Support Token here and I can ask your help for a better set up?

So we have 150 members who can purchase only one ticket to each of 30+ events per quarter. As multi event considers multiple tickets as additional attendees, the custom questions need to be submitted under additional attendees and the check out process, although they can copy to all registrations is very cumbersome and not pretty as they have to scroll down thousands of pixels to get to the select payment button. We do require this meta data for each event, however, it remains the same. I would like them to be able to view their profile and edit as needed.

I did add Tony’s function that loads custom question values from past registrations which works great, but still having issues with csv data unless each event requires additional questions and values are copied to each attendee registration.

1) is there a function to update custom questions to each registration and hide ‘additional addendees’ modals from check out process via css, or,

2) is there a way to set wp users add-on, or advanced custom fields, to store wp-user meta in the attendee/contact table where I can then add to the shortcode loop for attendees and call into the csv?

The hidden tickets I think I can handle if you tell me where I can edit the php (in my child theme of course) for the ticket table (‘additional ticket’) for level 2 members. We need to edit the text from

“Glass Blowing with Companion ($140.00 (USD)) is available to members only. On Sale”

To something less alarming as certain logged in levels (that require this ticket type) will see both tickets. All of our users are members, this would add a lot of controversy.

Perhaps the Ticket name only “Glass Blowing with Companion Ticket”

These ‘companion tickets’ are required for our more handicapped individuals that require a personal assistant/care giver with them at all times, they are not kids trying to get into Grateful Dead concert :). I am not trying to be difficult, just trying to give our members an easier way to register for events and outings. I am hoping that after almost a year of development and several iterations and testing that we will be able to move forward with this.


Josh

  • Support Staff

October 21, 2016 at 11:11 am

You might be able to make use of this code snippet that will auto populate the custom question answers to the reg forms if they’re logged into the site:

https://github.com/eventespresso/ee-code-snippet-library/blob/master/addons/eea-wp-user/mn_wp_user_addon_save_custom_answers_too.php

I still think you’ll need to team up with a developer to be able to extend Event Espresso’s to your specifications though.

Viewing 5 reply threads

The support post ‘Hide ticket type for multiple events and tickets’ 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