Posted: April 4, 2024 at 1:11 am
I have multiple tickets for some events (courses). When the event is displayed, only one ticket is shown. When the customer clicks “Anmelden” (Register), all the tickets are presented but with an additional optional (grey) link, which distorts the display. |
|
Hi there, Are you referring to the details showing under “show details” dropdown? If so then can you please let me know what exact issue you are facing there, as I can see the dropdown showing the details fine. Also, please share a screenshot of the issue. You can use https://www.loom.com/ to share the screenshot. |
|
Kurs 32 has 2 differently priced tickets but when I click the “+” in the course list (https://www.lernen-im-quartier.ch/ front page) I only see the second ticket (CHF 600). When I click “Anmelden” (Register) I see both. |
|
I think I’ve mastered Loom. Have a look here: https://www.loom.com/share/b6853291e5654254994025b5f062dd7f |
|
Hi Viktor, Got what you are referring above, you are facing the issue because there is a limitation of words within the drop-down. Are you comfortable with editing the core file? Please let us know so that we can guide you with the path to adjust the limit. Looking forward to helping you. |
|
Are you referring to the template file I use (which I can edit with guidance) or another file? |
|
Hi there, The table view template by Event Espresso does not include the ticket prices on that section by default so I assume you’re using a custom template for the table view toggle template, right? To help I’m going to need to see the code for that template file as I have no idea how its currently pulling in the tickets to output there. Can you add the content of that template to something like PasteBin so I can take a look? |
|
Here it is: https://pastebin.com/vyGMvu2t |
|
There’s a fair bit going on within the template file and some of it is specific to your site so I can’t test it locally, but… This part stands out:
Within that code, It is first initialized outside of the foreach (line 175) with `$final_html = “”; Assigns the individual ticket from within Prices are pulled from the ticket and assigned to
( Then Loops over all prices assigned to the individual ticket it is currently working within on within the loop:
Which uses I looks like you are trying to output tickets assigned to a specific price type within your site and looping over a bunch of code on prices to output it in a specific way but it’s replacing itself on each loop which is the reason you are only getting 1 ticket output there. Drop line 187 and move I recommend working through that code to tidy it up further, I’m not sure why your looping over prices within a ticket and not just using the tickets themselves to pull the details you need directly and generate a |
|
The support post ‘Tickets not shown correctly’ 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.