Support

Home Forums Event Espresso Premium tkt-slctr-max-atndz and ticket-selector-tbl-qty-slct php vars?

tkt-slctr-max-atndz and ticket-selector-tbl-qty-slct php vars?

Posted: November 10, 2019 at 11:51 pm

Viewing 5 reply threads


rmazook4

November 10, 2019 at 11:51 pm

Where can I find the PHP vars for these two fields? I need to ensure that I don’t allow more than the max attendees per event, and I need to be able to pull the max number of tickets allowed to be sold per transaction. I can almost get it with this max number of attendees with this:

<?php if ( $post->EE_Event instanceof EE_Event ) { $ticket_array = $post->EE_Event->first_datetime()->tickets(); $the_max = array_shift($ticket_array); echo $the_max;} ?>

but that spits out “General Admission (5)”. I just need the number 5 which will go into tkt-slctr-max-atndz. And I need my quantity select list to populate the correct quantity of tickets available.


Tony

  • Support Staff

November 11, 2019 at 5:57 am

Hi there,

I replied to your other thread with some details here:

https://eventespresso.com/topic/custom-ticket-selector-not-working/

You can see how the quantity selector is generated in:

\event-espresso-core-reg\modules\ticket_selector\TicketSelectorRowStandard.php::331

We don’t provide support for customizations so can’t go through each function you need, but the above should guide you through.


rmazook4

November 11, 2019 at 10:29 am

Fantastic, thank you for your input on both posts. I will have a look and see what I can come up with!


Tony

  • Support Staff

November 11, 2019 at 11:55 am

You’re most welcome 🙂

As mentioned we (support) can’t give in-depth customization support but we can help point you in the right direction/clarify what something is/does if it’s not clear so please feel free to ask questions just be aware that sometimes the answer may sometimes be something we can’t really step through on the forums.


rmazook4

November 11, 2019 at 12:11 pm

This reply has been marked as private.


Tony

  • Support Staff

November 11, 2019 at 3:34 pm

Just renaming single-espresso_events.php should do it yes?

I can’t really answer that as I have no idea what else you have done.

But if you rename single-espresso_events.php EE events should be output using your themes single post output.

And removing:
add_filter( ‘FHEE__EED_Event_Single__template_include__allow_custom_selected_template’, ‘__return_true’ );

Sure, that tells EE to continue to inject the event details into the_content()

Viewing 5 reply threads

The support post ‘tkt-slctr-max-atndz and ticket-selector-tbl-qty-slct php vars?’ 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