Home › Forums › Welcome! › Pre-Sales Questions › Hook for WooTickets
- This topic has 6 replies, 1 voice, and was last updated 11 years, 11 months ago by
Casey D.
-
AuthorPosts
-
June 3, 2014 at 6:56 am #201024
Adrian Forster
GuestHI there,
I am planning a site that will enable registered and non registered users to book themselves in to events. There will be a limit to 8 people per event and the prices will change depending on whether they are a member or not (registered). For this I am planning to use Infusionsoft, Wootickets, event pro, Events Calendar Pro, WordPress InfusionSoft Plugin and filter bar.
I guess my question is… Can i use a hook in WooTickets to check the subscription status of the user?
Many Thanks,
A
June 3, 2014 at 1:49 pm #202019Casey D
MemberHello Adrian Forster,
Thanks for contacting us! I was unfamiliar with a possible solution for this, so I contacted a developer on our team. This is his notes:
You’ll need a means of differentiating between subscriber and non-subscriber tickets – an easy way is a naming convention, like call one “Gold Tickets (Member)”. A better approach would be to edit each ticket product in the WooCommerce product editor and assign some post meta data. Whichever works for you should work just fine.
To actually filter them out according to who is logged the best approach is not to use a hook but just override the wootickets/tickets.php template.
Then, use current_user_can() or similar to detect their ‘level’ and selectively ignore tickets in the loop (within the template) if he wanted to, though, he could set up a filter on parse_query and try to determine if it is the get_tickets_ids() query by looking at its parameters and modify from there … but I’d probably go with the easier option first off
This level of customization goes beyond the scope of the forums, but I’ll be happy to give pointers where I can.
Does this make sense? Let me know if this doesn’t work for you.
Cheers!
– Casey Driscoll
June 5, 2014 at 4:07 am #206042Adrian Forster
GuestThanks for this feedback. The other thing is I am developing this site on a different domain to the live site domain. If i purchase a single license can I use it for both domains?
June 5, 2014 at 5:20 am #206187Adrian Forster
GuestMy other question now is – we have 1 event at 11am – the workshop – only 8 tickets can be sold for it – but we actually have 2 tickets available – member & non-member – can tickets be linked to the same ‘availability’? so only 8 tickets are sold for each workshop – maybe 6 member and 2 non-member or 1 member and 7 non-member
June 9, 2014 at 2:46 am #214358Adrian Forster
GuestMy other question now is – we have 1 event at 11am – the workshop – only 8 tickets can be sold for it – but we actually have 2 tickets available – member & non-member – can tickets be linked to the same ‘availability’? so only 8 tickets are sold for each workshop – maybe 6 member and 2 non-member or 1 member and 7 non-member
June 9, 2014 at 2:47 am #214359Adrian Forster
GuestKeen to buy asap btw, just need to get answer for this question. Many Thanks.
June 9, 2014 at 9:22 am #214909Casey D
MemberHello Adrian Forster,
Sorry not sure why this question fell through the cracks!
Yes, you can use the plugin on the development or test site. Only register it on the live site. You can easily add/remove registrations in you Tri.be account as well.
Also, you can set a quantity for each type of ticket.
Cheers!
– Casey Driscoll
-
AuthorPosts
- The topic ‘Hook for WooTickets’ is closed to new replies.
