Support

Home Forums Event Espresso Premium Ticket QTY field needs changing

Ticket QTY field needs changing

Posted: February 25, 2019 at 6:20 am

Viewing 3 reply threads


cmventures2

February 25, 2019 at 6:20 am

Hi

Our client has asked if the qty field for tickets can be changed per event as on this particular event you select the ticket instead of qty

http://gima.org.uk/events/set-up-judging-day-2019/


Tony

  • Support Staff

February 25, 2019 at 7:27 am

Hi there,

Yes it can, you’ll need this snippet of code to do it, like this:

https://gist.github.com/Pebblo/01368b45b94e43dbb10c69b3b245361c

Then add a custom field to the events you want to change the text to and set the text to use, like so:

https://monosnap.com/file/h7P1Z1BmyCIYOptFSdzWJgVSbLOs12

The ‘name’ of the custom field needs to be whatever key is set in get_post_meta() on Line 7 of the snippet.

The value you set is the text that will display on the ticket editor.


cmventures2

February 25, 2019 at 7:58 am

This reply has been marked as private.


Tony

  • Support Staff

February 25, 2019 at 8:07 am

You can add that to a custom functions plugin on your site, we have some documentation on creating one here:

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

Viewing 3 reply threads

The support post ‘Ticket QTY field needs changing’ 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