Home › Forums › Ticket Products › Event Tickets Plus › woo tickets save template
- This topic has 6 replies, 2 voices, and was last updated 8 years, 7 months ago by
Alyson Evans.
-
AuthorPosts
-
September 1, 2017 at 1:44 am #1343510
Alyson Evans
ParticipantHI
I am using event tickets plus
i have had a bit of a nightmare because recurring events do not do individual tickets.
You have told me i have to break the set up to create individual tickets
so my question now is is there a way to create a ticket template? so that i can just add a ticket template to save time ?for example on the first event make a ticket with the cost of the individual class and group discount and then save this and then on the next event reuse the same ticket settings (same price and group discount)
September 1, 2017 at 2:44 pm #1343969Andras
KeymasterHello Alyson,
Thanks for reaching out!
I’m sorry for your negative experience with our plugins.
Unfortunately there is no way at the moment to create a ticket template. What you can save is the additional fields / fieldset for a ticket and that can be re-used.
As a workaround you could try a user script manager like Tampermonkey or Greasemonkey. I’m sure it would be possible to create a script that could pre-fill the fields for you on a keypress with the data you need.
Though this might not be the answer you were hoping for, I still hope this helps.
Do you have any other questions I could help you with?
Cheers,
AndrasSeptember 1, 2017 at 4:10 pm #1343995Andras
KeymasterHello Alyson,
I found this challenge super exciting so I created a userscript script that should help you with what you need. It will add a blue button to the top right of the screen. If you click that then ticket data will be automatically filled based on what you have in the script.
I tested it with the Firefox browser and the Greasemonkey extension, but I believe it should also work with Chrome and either Greasemonkey or Tampermonkey or anything that handles userscripts.
I’ll give you the example using Greasemonkey. Here is what you need to do after having installed it:
1. Click on the Greasemonkey icon in the toolbar and select ‘New user script’.
2. In the popup window fill out the name (put there whatever) and click OK. This will create an empty script and should popup a new window with some code in it already.
3. Delete whatever you see there and paste in this one fully:
https://gist.github.com/andrasguseo/6137bcba54151b653c43bb71bd11eb93
4.Do your modifications to the code as needed, like ticket name, description etc. Should be easy.
Don’t forget to either adjust the url after “@include” to your site’s url at the top. Without this the button will not show up on the page.
Alternatively you can delete the whole “@include” line, but then you will see a button on every website.5. Click on the Save button and close the window.
6. Go to your event or add a new one. A blue button should show up like this.
7. Click the button and the ticket information will be automagically filled out. You just need to click on the create ticket button.
That’s it! I hope this helps!
Cheers,
AndrasSeptember 2, 2017 at 1:27 am #1344031Alyson Evans
ParticipantHi Andras
that is great thank you. what and where do i put if i need to have a product category on the template?September 4, 2017 at 1:41 am #1344395Andras
KeymasterHi Alyson,
Somewhere before the end curly bracket “}” put something like this:
document.getElementById("in-tribe_events_cat-19").checked = true;where the number (19 in this example) is the ID of the category you want to select.
You can find out the ID of a category if you open it up for editing. Your URL will look something like this:
https://domain.com/wp-admin/term.php?taxonomy=tribe_events_cat&tag_ID=19&post_type=tribe_events&wp_http_referer=%2Ftec%2Fwp-admin%2Fedit-tags.php%3Ftaxonomy%3Dtribe_events_cat%26post_type%3Dtribe_eventsYou see the “tag_ID=19”, that is the number you need to copy.
Good luck! Let me know if you get it to work!
Cheers,
AndrasSeptember 26, 2017 at 9:35 am #1354992Support Droid
KeymasterHey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.
Thanks so much!
The Events Calendar Support Team -
AuthorPosts
- The topic ‘woo tickets save template’ is closed to new replies.
