Support

Home Forums Ticketing Add-on Adding info to the ticket

Adding info to the ticket

Posted: January 14, 2013 at 4:58 am

Viewing 12 reply threads


SBonnefont

January 14, 2013 at 4:58 am

Hello,

Is it possible to add extra infos on the ticket from a “Question” field ?
Because I added some questions in addition to the basic name and email stuff, and I’d like one of them (user’s organization) to be visible on the ticket.

Can I add something there to make it show, I guess it should be around here in the Templates > Index.php file (Ticketing) :

      [fname] [lname] (ID: [att_id])
      [registration_id]

I tried adding : [DROPDOWN_11] after [fname] [lname] (ID: [att_id]) because it’s the name of the field I’d like to show, but it didn’t work (justed showed “Dropbodown_11” on the ticket, instead of the real dropdown info selected by the user).

Do you have any clue ?

Thanks !


Dean

January 14, 2013 at 5:46 am

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]


SBonnefont

January 14, 2013 at 2:01 pm

This is super cool, thanks ! 🙂


SBonnefont

January 14, 2013 at 2:55 pm

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 ?
Thanks !


Josh

  • Support Staff

January 18, 2013 at 8:54 am

Hi there,

Is that for the answer? If so you can try changing line 384 in the ticketing add-ons functions.php file from

$v = $q['answer'];

to

$v = stripslashes_deep($q['answer']);


Peter

January 22, 2013 at 3:56 pm

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:
$pdf->Text($left_alignment, 28, iconv(“UTF-8”, “ISO-8859-1”,[answer_Company]));//Text(float x, float y, string txt)

Any help appreciated


Josh

  • Support Staff

January 22, 2013 at 6:56 pm

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.


Peter

January 22, 2013 at 7:15 pm

Yes, I am using an older version of the template. I will need to update thanks.


Peter

January 22, 2013 at 10:03 pm

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.
1) Please correct me if I am wrong, but it looks like there is no “basic.html” file as in the documentation, it is the index file that needs to be changed?
2) Where does [ticket_content] pull from? I can’t find where the content for the heading “Ticket Instructions:” comes from on the default template.
3) How do I stop the page break? I want to print all on one page to save paper.
Thanks


Peter

January 24, 2013 at 9:40 am

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.


Josh

  • Support Staff

January 24, 2013 at 10:11 am

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.


Peter

January 24, 2013 at 11:11 am

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.


Josh

  • Support Staff

January 24, 2013 at 12:16 pm

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.

Viewing 12 reply threads

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.

Event Espresso