Posted: January 14, 2013 at 4:58 am
|
Hello, Is it possible to add extra infos on the ticket from a “Question” field ? Can I add something there to make it show, I guess it should be around here in the Templates > Index.php file (Ticketing) :
I tried adding : Do you have any clue ? Thanks ! |
|
Hi, Yes this can be done with the [answer] shortcode tag. The documentation is here (at the bottom) but it is a little brief https://eventespresso.com/wiki/espresso-ticketing/#process Basically you append the answer shortcode with your question name E.g for a question titled “Your Organisation” you would use: [answer_Your Organisation] |
|
This is super cool, thanks ! 🙂 |
|
Oh, one last thing : it’s working fine, but I’m having some trouble displaying some character : “L’Organisation” appears “L\’Organisation”, like in php.. Can I do something about it ? |
Hi there, Is that for the answer? If so you can try changing line 384 in the ticketing add-ons functions.php file from
to
|
|
|
I have been unable to get the answer shortcode to work on the ticket I have questions “Company” and “Company Description” I would like to add. I have used the following code in the template: Any help appreciated |
Hi Peter, [answer_Company] should work, all of the other stuff will not work in an HTML document. Are you using an older version of the ticketing add-on? The newer version uses an HTML template and converts to pdf after the HTML view is downloaded. |
|
|
Yes, I am using an older version of the template. I will need to update thanks. |
|
Working with the new ticketing Templates now, but am I having some problems and can’t find information on in the forum to resolve them. |
|
I have solved 3) by reducing the amount of info being added in the Venue Description, but am still no wiser about 2). I have changed the index.php file to make changes to the template, but can’t find the basic.html file or the file that should be associated with the ” Standard” ticket I created. |
Hi Peter, It sounds like you may be referring to some older documentation. The documentation on the website is kept up to date, and you can find that here: https://eventespresso.com/wiki/espresso-ticketing/ To answer your questions, yes, it’s index.php. If you look near the bottom of that file, you’ll find “Ticket Instructions” and the [ticket_content] shortcode. The [ticket_content] shortcode pulls from the editor box on the Manage Ticket Templates screen. You may be able to scale things down smaller with CSS if the amount of content spills over onto a second page. The CSS files are located in the ticketing plugin in /templates/css. |
|
|
Thanks Josh. I was reading the README file that came with the ticketing download. I can see how you can enter the “Ticketing Instructions” on a custom template, but I wanted them on the default for when I did not have a custom template associated with an event (I have lots of existing events). I thought there would be file (the basic.html) I could hack for the default to add Ticketing information so I could use both default and custom tickets. |
Yeah, you can copy everything in espresso-ticketing/templates/ over to wp-content/uploads/espresso/tickets/templates and add all your instructions to the index.php template directly. |
|
The support post ‘Adding info to 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.