Different tickets for different shows
-
I’ve been playing around, trying to see if it’s possible to achieve a situation where different ticket templates are used for different shows.
What I’m trying to achieve is that the outline template of every ticket is the same, but for different shows, different blocks are included, containing specific information for that show.
I’ve been trying to use the showID variable to achieve this.
I’ve got the loop running to output the showID of the ticket(s) purchased, so that the email generated shows the subject etc, and the ‘thank you for your purchase….’ section. Then in the template where you would normally include all the short codes to produce the ticket, I am trying to get it to include what I want by referencing another template file. So, instead of the loop displaying [showname] [perfDateTime] etc etc., all of that is in a separate file for each show, and is then dragged in, and included into the main template to generate the email.
I’ve tried using php include() to achieve this, but it’s not doing what I want – which may be due to my very limited php skills! For a show with a [showID] of 7 I would want it to include 7.php which has all the ticket information and short codes included.
Has anyone else tried to achieve this, or have any pointers as to how I may be able to achieve this?
The topic ‘Different tickets for different shows’ is closed to new replies.