Support

Home Forums Event Espresso Premium Ticket count based on custom user field

Ticket count based on custom user field

Posted: September 21, 2022 at 6:23 am

Viewing 4 reply threads


Bart De COck

September 21, 2022 at 6:23 am

Hi,

Is there a way I can limit the amount of tickets with discount based on a custom field (number)?
We have users that can sign in and buy tickets for their family and family only. The custom field has the number of family members. If they want to buy more tickets than they have family members the need to choose other tickets without discount.


Tony

  • Support Staff

September 21, 2022 at 8:34 am

Hi there,

Possible, likely yes, but we don’t have this feature within Event Espresso so you will need some custom code to do it and likely the help of a developer.

Is there a way I can limit the amount of tickets with discount based on a custom field (number)?

Where would this custom field be stored? On an event or the user? I’m assuming as this is based on the user it would be something from their wp user account.

So you want say:

Regular ticket ($10)
Family member ticket ($8)

Based on a custom field set on the user account they can register say up to 4 family member tickets but any number of regular?


Bart De COck

September 21, 2022 at 8:42 am

Where would this custom field be stored?
Yes in wp user.
Based on a custom field set on the user account they can register say up to 4 family member tickets but any number of regular?
That is correct.

Do you offer this kind of development?


Tony

  • Support Staff

October 6, 2022 at 12:53 pm

Hi there,

Apologies for the delayed reply, we had to switch gears to make sure EE4 was ready for PHP8.

I looked into doing this and it will need an additional filter added to the core plugin to allow for it and I have created a pull request to add it in.

I will open a discussion on this as we may be able to implement this feature using a support token if you are still interested?


Bart De COck

October 7, 2022 at 12:45 am

Hi, yes that would make our lives easier. Much appreciated.

Viewing 4 reply threads

The support post ‘Ticket count based on custom user field’ 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