Support

Home Forums Event Espresso Premium Removal of ticket balance in events – Not working in templates

Removal of ticket balance in events – Not working in templates

Posted: January 26, 2016 at 11:46 am


British America Business London

January 26, 2016 at 11:46 am

Event Espresso -> Events -> Templates.

set the ‘Show Ticket Sale Info?’ and “Show Expired Tickets?” option to No and saved the settings.

not updating event in tickets, see example:

https://www.babinc.org/events/babc-annual-transatlantic-conference-2016/


Lorenzo Orlando Caum

  • Support Staff

January 26, 2016 at 12:41 pm

Hi Michael,

Is there any custom templates in use? For example a custom template for the ticket_selector_chart.template.php file?

If so, you’ll want to deactivate that file so that Event Espresso 4 uses the updated ticket selector chart template file. If that works, then try updating your customized file by getting a copy of the latest ticket selector chart template and updating it with your changes.

Here is an example of what I’m referring to. The following filter would set Event Espresso 4 to look for the ticket selector in a specific spot:

//* Set Event Espresso to look for the ticket selector template in the espresso templates folder within the uploads folder for WordPress
add_filter ('FHEE__EE_Ticket_Selector__display_ticket_selector__template_path', 'ee_custom_ticket_selector_template_location');

function ee_custom_ticket_selector_template_location(){
    return WP_CONTENT_DIR . '/uploads/espresso/templates/ticket_selector_chart.template.php';
}

If something like that is in use, then it would not use the latest ticket selector template which has the needed changes to support the hiding certain areas of the ticket selector.


Lorenzo


British America Business London

January 28, 2016 at 7:59 am

Hi Lorenzo, I don’t think there are any templates active as I never created one. I’m not sure where to look. Under the Templates tab in Events I don’t see any php files. Thanks for your help I really need to resolve this as soon as possible. Can you give more details as to where I can find this php file?


Tony

  • Support Staff

January 28, 2016 at 8:11 am

Hi Michael,

I can’t see any expire tickets or any ticket sales info within your ticket selector.

The ‘Show Ticket Sale Info?’ section is this section – http://take.ms/j0yvU

And no expired tickets are showing on the event as far as I can see?

Can I ask what sections are you looking to remove?


British America Business London

January 28, 2016 at 11:29 am

This is the page for the event in question:

https://www.babinc.org/events/babc-annual-transatlantic-conference-2016/

We would like to remove Sale Dates and Access sections.


Lorenzo Orlando Caum

  • Support Staff

January 28, 2016 at 12:09 pm

Hi Michael,

You can inspect any element on a page using a free tool like Chrome Developer Tools (available with Google Chrome) or Firebug (available as a web browser extension).

This will show you the CSS that is handling the styling including the file and line number. Then you can add new styling to your website and there are a couple ways to add new CSS to a site. If your theme has a Custom CSS area built-in, then you can add it there.

Otherwise, you could use a free plugin that adds an additional stylesheet to your WordPress site such as Simple Custom CSS or Reaktiv CSS Builder.

Try this CSS:

section.tckt-slctr-tkt-sale-dates-sctn, section.tckt-slctr-tkt-datetimes-sctn { display: none; }

You can then go back to your site and refresh the page to see the new changes.


Lorenzo


British America Business London

January 28, 2016 at 12:20 pm

Lorenzo, thanks for your help. I had thought about editing CSS but I was trying to work within the EE4 Template settings. Nevertheless, that CSS edit worked.

Thanks,

The support post ‘Removal of ticket balance in events – Not working in templates’ 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