Support

Home Forums Event Espresso Premium buy non required tickets after buying a required one

buy non required tickets after buying a required one

Posted: November 21, 2016 at 12:52 pm

Viewing 4 reply threads


digitalsprinklr

November 21, 2016 at 12:52 pm

There is any way to allow users to buy non required tickets in a later purchase after they bought a required one for a event? Right now in my tests if i try to buy the extra tickets in a second purchase EE will not check if they already bought the required one and force the user to buy the same ticket again.
I am using the WP User Integration plugin so all the users will have a WP user tracking what they already bought.


Lorenzo Orlando Caum

  • Support Staff

November 21, 2016 at 1:44 pm

Hello,

The required option for a ticket / pricing options applies for a specific registration session so it does not look at prior registrations that a guest has made.

Are you trying to handle member and public registrations for an event?


Lorenzo


Tony

  • Support Staff

November 21, 2016 at 1:47 pm

Hi there,

Currently EE does not limit/allow users to purchase tickets based on other purchases. It would be possible to do but will require some custom development to add the functionality.

If you are not currently working with a developer I would recommend contacting one of the developers listed here:

https://eventespresso.com/developers/event-espresso-pros/


digitalsprinklr

November 22, 2016 at 5:42 am

We have developers here, can you shine a light for us in a direction to start doing this custom development? Would a hook suffice for that or do we need to dive deeper into the EE code to do those changes?


Tony

  • Support Staff

November 22, 2016 at 11:23 am

Note we do not provide any support for custom development, but I can point you in the direction I would try.

Within the ticket selector there is the hook:

FHEE__ticket_selector_chart_template__do_ticket_inside_row

Through that you can determine if each individual ticket should display.

As you have the EE4 Everything license you can take a look within the EE4 User Integration add-on for an example of how we use that hook to filter tickets based on capability.

(Look within EED_WP_Users_Ticket_Selector.module.php at the maybe_restrict_ticket_option_by_cap method)

Within the function you will need to pull the current users registration and confirm that have registered onto the event previously and that the ticket they purchased was the required ticket for the event. If they have you can check for the ticket ID and return ''; (nothing) back to for the above hook for that ticket which will remove the required ticket from the ticket selector.

I am using the WP User Integration plugin so all the users will have a WP user tracking what they already bought.

That is true if the user does not alter the registration info when registering. If you register whilst logged in and use different details to your user account (first name, last name, email) then the registration will not be ‘tied’ to your user accounts EE_Contact and will not show

Viewing 4 reply threads

The support post ‘buy non required tickets after buying a required one’ 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