Support

Home Forums Event Espresso Premium "Available Tickets" and price "per ticket" change text options?

"Available Tickets" and price "per ticket" change text options?

Posted: October 22, 2014 at 1:27 pm


Ryan Kline

October 22, 2014 at 1:27 pm

Is there a simple way to change “Available Tickets” to, let’s say: “Registration Options” and where the price per ticket displays “$xx / ticket” could it be changed to “$xx / participant” or something along that line on the event details page.


Lorenzo Orlando Caum

  • Support Staff

October 22, 2014 at 2:18 pm

There is an example here:

https://gist.github.com/b4bbd1bb839a1c80b2b4

The left side is the existing text and the right side (after the arrow) is what it should be changed to.

This can be added to your child themes functions.php file or a site specific plugin.


Lorenzo


Ryan Kline

October 23, 2014 at 6:02 am

That worked perfectly! It looks like the only spot that was missed was the “required” text: “This ticket is required and must be purchased.” Is that modifiable as well in the code?


Dean

October 23, 2014 at 6:11 am

Hi Ryan,

The required text is not translatable, but can be edited from within the question themselves.

When you add or edit a question via the Registration From menu, there is a field called Required Text, simply add the text that you wish to display there.


Ryan Kline

October 23, 2014 at 6:22 am

I do know where to edit the required fields for the questions, however, I was wondering if when you set a ticket to be required, can you edit the text that is displayed. Currently it says “This ticket is required and must be purchased.” In the ticket selector.


Dean

October 23, 2014 at 6:47 am

Hi,

Apologies, I got mixed up there.

It looks like that string isn’t in the language files for some reason. Once those are updated it should include it.

In the meantime you could add the following to the bottom of the PO file

#: ../modules/ticket_selector/templates/ticket_selector_chart.template.php:89
msgid “This ticket is required and must be purchased.”
msgstr “”

and then open it in Poedit and save it (to update the MO file), then you can translate it as normal.


Ryan Kline

October 23, 2014 at 6:59 am

That will work for now. Thank you!

The support post ‘"Available Tickets" and price "per ticket" change text options?’ 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