Support

Home Forums Event Espresso Premium number of tickets purchased on the ticket

number of tickets purchased on the ticket

Posted: November 16, 2012 at 8:17 pm


sofostudios

November 16, 2012 at 8:17 pm

I cannot seem to figure out how to display the number of tickets purchased on the ticket that is sent to the purchaser. Can you please advise?


Josh

  • Support Staff

November 17, 2012 at 12:57 pm

Hi Chris,

In this case, you’d need to add the [ticket_qty] shortcode to your ticket template. Please see this section of the ticketing guide for further advice:

https://eventespresso.com/wiki/espresso-ticketing/#editing


sofostudios

November 17, 2012 at 2:29 pm

Josh, thank you very much. Will this apply retroactively to existing purchases or just to future purchases?


sofostudios

November 17, 2012 at 2:32 pm

Also, since updating to the latest version of the ticketing plugin, my tickets are showing up with $0.00 as the amount.


Marko Geisler

November 18, 2012 at 10:26 am

Hey Chris,

this this apply to every new click on the ticket-link.

I checked that, because i needed to display the ticket quantity as well.

Best regards,
Marko


Dean

November 19, 2012 at 1:39 am

@chris Hi, do you have template files in the uploads/espresso directory? If so please rename that folder to see if that resolves the issue. If you have made any modifications to the files in that folder you will need to review the new templates and swap over modifications.


sofostudios

November 19, 2012 at 6:40 am

I rolled back to 2.0.7 for the ticketing plugin which resolved the $0.00 issue and then edited my event to select the new ticket template with the quantity showing.

When I created a new ticket template I had the option to select Default Template or Index.php. I selected index, but the number still did not show up.

I have the template (index.php) and the css that were copied from the plugin and then edited to include the [ticket_qty] in my uploads/espresso/templates folder. I had the files in there directly, so @dean based on your suggestion, I create a folder and move the files in there so they now live at wp-content/uploads/espresso/templates/tickets-number.

This still hasn’t resolved the issue through. My event tickets show that they are using the new Ticket template because they have the revised wording I put in under WP-Dashboard > Event Espresso > Ticket Templates. When I created the new ticket, I selected index.php as the template file, but the quantity does not show up on the ticket.


Josh

  • Support Staff

November 19, 2012 at 8:58 am

It looks like you are still on Event Espresso 3.1.27, so that would make sense that rolling back to ticketing 2.0.7 would fix the 0.00 issue. To clarify, Event Espresso 3.1.27 works with ticketing 2.0.7, and Event Espresso 3.1.28 works with ticketing 2.0.8.

Here’s how to resolve your template issue now that you’ve renamed the directory to wp-content/uploads/espresso/templates/tickets-number:

1) Make your changes directly to the templates in espresso-ticketing/templates/
2) Test your tickets to make sure the changes you made work for you.
3) If they’re good, copy everything in the espresso-ticketing/templates folder to wp-content/uploads/espresso/tickets/templates


sofostudios

November 19, 2012 at 9:12 am

So at the end of this, I should have a folder in wp-content/plugins/espress-ticketing/templates called tickets-number, right?


Josh

  • Support Staff

November 19, 2012 at 11:41 am

Hi Chris,

If you do, then Event Espresso will not know what to do with the contents of tickets-number. It will ignore it.

What it does is looks for ticket templates in /wp-content/uploads/espresso/tickets/templates first, and if it doesn’t find any there, it will fall back to the default location for templates in the plugin location: /wp-content/plugins/espresso-ticketing/templates.

Here is a screenshot of file directory structure of uploads/espresso after customized ticket templates have been copied over.


sofostudios

November 24, 2012 at 11:18 am

Thank you Josh that is what I needed. I was trying to put it in Uploads > Espresso > Templates not >Espresso > Tickets > Templates.

The support post ‘number of tickets purchased on the ticket’ 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