Support

Home Forums Event Espresso Premium Customize ticket display-name

Customize ticket display-name

Posted: April 9, 2021 at 8:48 am

Viewing 1 reply thread


Pauli29

April 9, 2021 at 8:48 am

Hello,
I customized the ticket-display-name in the TicketSelectorRowStandard.php (line 245). But since the last big update the customization does not work anymore.


  protected function ticketNameTableCell()
    {
        $html = EEH_HTML::td(
            '',
            '',
            'tckt-slctr-tbl-td-name',
            '',
            'headers="details-' . $this->EVT_ID . '"'
        );
		$startdate = date("j.n.Y", $this->ticket->first_datetime()->start());		
        $html .= '<b>Start: </b>' . $startdate . ' ||| ' . EEH_HTML::strong($this->ticket->get_pretty('TKT_name'));
		$html .= ' | ' . $this->ticket->first_datetime()->start_time() . ' | <b>Dauer:</b> '.count($this->ticket->datetimes()).' Termin(e)';
        $html .= $this->ticket_details->getShowHideLinks();
        if ($this->ticket->required()) {
            $html .= EEH_HTML::p(
                apply_filters(
                    'FHEE__ticket_selector_chart_template__ticket_required_message',
                    esc_html__('This ticket is required and must be purchased.', 'event_espresso')
                ),
                '',
                'ticket-required-pg'
            );
        }
        $html .= EEH_HTML::tdx();
        return $html;
    }


Tony

  • Support Staff

April 12, 2021 at 4:42 am

Hi there,

We don’t provide support for modifying core files/method as above, however, I did try your function on a local install and it works fine for me.

Example: https://monosnap.com/file/Tj7K2pPQdoCRcZ49VZVHDh2eKnOHpc

Does it show differently on your site?

Viewing 1 reply thread

The support post ‘Customize ticket display-name’ 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