Support

Home Forums Event Espresso Premium Changing ticket selector table wording EE4

Changing ticket selector table wording EE4

Posted: March 27, 2015 at 2:55 am

Viewing 2 reply threads


Russell

March 27, 2015 at 2:55 am

I just cant find the bit of code i need anywhere. I want to change the ticket selector table so the price colum reads “Price (inc Booking Fee)”

A simple change I know but important to me. I just cant find where to change it

Thanks all


Dean

March 27, 2015 at 3:19 am

Hi,

Oddly enough it isn’t as straight forward as it seems.

You could use the language files to change it, but as the original word Price is fairly generic, so it will change it at various places throughout the plugin.

You could edit the file direct, but we do NOT recommend this, nor support it.
/wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/templates/ticket_selector_chart.template.php

This leaves creating a new template. If you copy /wp-content/plugins/event-espresso-core-reg/modules/ticket_selector/templates/ticket_selector_chart.template.php over to a different folder such as wp-content/uploads/espresso/templates you can edit the file there to make your chnages.

Then in a site specific plugin drop in this function (you may need to change the URL if you didnt use the uploads one mentioned above):

function use_a_different_ticket_selector_template($path, $event) {

	$x = wp_upload_dir();

	$path = $x['basedir'] . '/espresso/templates/ticket_selector_chart.template.php';

	return $path;
}
add_filter('FHEE__EE_Ticket_Selector__display_ticket_selector__template_path','use_a_different_ticket_selector_template', 10, 2);

This will load your modified template instead of the default one.

(site specific plugin info: https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/)


Russell

March 27, 2015 at 7:16 am

Thanks Dean,

That’s a project for the weekend then!

Viewing 2 reply threads

The support post ‘Changing ticket selector table wording EE4’ 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