Support

Home Forums Event Espresso Premium Ticket Selector base price display errors

Ticket Selector base price display errors

Posted: July 2, 2017 at 12:36 pm

Viewing 1 reply thread


Folabi Ogunkoya

July 2, 2017 at 12:36 pm

Hi,

I have been trying to get the front end of my site to show only the best price but whenever I try all the code snippets (https://gist.github.com/joshfeck/8736a20cbfacf5d5b97a) found in this forums I get the following error with tickets no longer displayed

Warning: Missing argument 2 for change_ee_ticket_selector_base_price_display(), called in /home/folabi/public_html/wp-includes/class-wp-hook.php on line 298 and defined in /home/folabi/public_html/wp-content/themes/Avada-child/functions.php on line 148

Fatal error: Method EventEspresso\modules\ticket_selector\TicketSelectorStandard::__toString() must not throw an exception, caught Error: Call to a member function base_price() on null in /home/folabi/public_html/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/DisplayTicketSelector.php on line 0


Tony

  • Support Staff

July 3, 2017 at 6:05 am

Hi there,

It sounds like you are using the hook incorrectly.

From the above above can you double check you have this line:

add_filter( 'FHEE__ticket_selector_chart_template__ticket_price', 'change_ee_ticket_selector_base_price_display', 10, 2 );

Specifically that you have the number 2 at the end. 10 is the prioirty, 2 is the number of arguments passed to the filter and your function. It sounds like you have that set to 1 and it should be 2.

Viewing 1 reply thread

The support post ‘Ticket Selector base price display errors’ 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