collinr3
Forum Replies Created
-
Forum: Plugins
In reply to: [Contact Form 7] Duplicate response emailsInterestingly and probably related, our users are currently experiencing receiving two acknowledgement emails after submitting a form. CFDB7 Version 1.2.6.5
Here is a link to a screenshot illustrating the issue… Screenshot
What I expected to be listed is simply who has booked a Ticket of that type, and the count, whereas it appears to be counting/showing all of the tickets on the booking.
Furthermore, when calculating spaces available, it appears that the spaces remaining of a ticket type is affected by whether there is a deliberate overbooking on another ticket type. In the example screenshot an overbooking of 3 adult tickets, incorrectly reduces the available capacity of Picnics (by 3), leaving jsut 2 picnics available, when there are actually 5 available.
- This reply was modified 4 years, 4 months ago by collinr3.
@angelo_nwl I’ve been probing! This appears to work, but I’m not confident about the lines I’ve commented out – is that acceptable?
function my_em_custom_booking_form_cols_ticket_types($val, $col, $EM_Booking, $EM_Bookings_Table, $csv){ if( $col == 'book_tickets' ){ $EM_Tickets_Bookings = $EM_Booking->get_tickets_bookings(); //$attendee_datas = EM_Attendees_Form::get_booking_attendees($EM_Booking); $attendee_list = ""; foreach( $EM_Tickets_Bookings->tickets_bookings as $EM_Ticket_Booking ){ //Display ticket info //if( !empty($attendee_datas[$EM_Ticket_Booking->ticket_id]) ){ $val .= "Ticket name: ".$EM_Ticket_Booking->get_ticket()->ticket_name. "<nbsp> (".$EM_Ticket_Booking->get_spaces().")"."<br>"; //} } } return $val; }
I then commented out the If test:
if( !empty($attendee_datas[$EM_Ticket_Booking->ticket_id]) )
and this now returns me the name of each ticket type purchased in each booking, so what I need now is some way of annotating that ticket name with the count of tickets purchased of that type for that booking e.g:Ticket name: Adult Ticket - (4)
Ticket name: Manor Garden Picnic (3)
Hope that makes sense…
@angelo_nwl I have a similar requirement insofar as I want to see how many tickets of each type a user has booked. Based on your earlier response, I’ve created a plugin for snippet 2, which has added the ‘Booked Tickets’ to the ‘cog’ fields to display, but when I add that as a column and refresh my view, the view simply whirs without returning anything.
Here is the plugin Github
Here is an example of the event, I’m trying to get ticket numbers per booking
EventEssentially I want to show how many picnics are booked for each booking, without having to view the details of each individual booking.
Any further guidance you can give will be appreciated…
UPdate: Just switched on DEBUG mode and I get:
Fatal error: Uncaught Error: Class 'EM_Attendees_Form' not found in /Users/robertcollins/Sites/ticketfactory/mtf_wp/wp-content/plugins/wp-events-tweaks.php_/wp-events-tweaks.php:27
If I comment out the relevant line then the column displays, but no data, so I think what I need is an alternative for this line…
$attendee_datas = EM_Attendees_Form::get_booking_attendees($EM_Booking);
that will get me a count of tickets by type for each booking. Am I on the right track?Hi @marcguenther,
I’m guessing you saw the warning, saying that the recurring events do get regenerated, in the recurring Events form when you attempted to change the end date. If so, then I believe that confirms it is designed behaviour. The only option, as you say, to change ‘future events’ appears to be to edit each generated event individually.
FYI: I had a similar need and inadvertently deleted all bookings to date because I didn’t spot the warning. A lesson learned the hard way ??
Hope that helps.
Bob
Hey, @marcelolz @angelo_nwl – it looks good ??
https://novoolharrua.org/eventos/locais/rota-1/
Aproveite e fique seguro!
@marcelolz you can contact me here if you’d like to do a walkthrough comparison of settings
@marcelolz That’s curious. This is what I get…
https://www.kathybrownsgarden.com/locations/kathy-browns-garden/
@marcelolz
Try adding this to Settings > Formatting > Locations – Single Location Page – Event List Formats…<div>
<table class=”events-table” >
<h3>#_EVENTDATES</h3><thead>
<tr>
<th class=”event-time” scope=”col”>Available Times</th>
<th class=”event-description” scope=”col”>Event</th>
</tr>
</thead><tbody>
<tr>
<td>
#_EVENTTIMES
</td>
<td>
Ticket type: #_EVENTLINK
</td>
</tr>
</tbody>
</table></div>Hi @marcelolz is this the sort of Event Listing per location you want?
Hi @kirby68,
I think all of your requirements can be implemented as follows:
Req 1: after a user logs in, he can choose attendees from a drop down list?
A Solution: Once a user has logged in, when they choose an event that has been created by a Coach, they can book themselves in without having to enter their details because the system uses their login details. Note: the Coach should limit the number of tickets per booking to 1 so that only a logged-in user is booked into the session.Req 2: can I set up a prepopulated list of organisers?
A Solution: You can create Booking categories ie one per Organiser so. that a user can choose to only see sessions available from a named coach [Category]Req 3: Can the system show an event and display who has booked already (so my gym-buddies can be together lol!!!)
A Solution: Yes. Create a Page and add Placeholders to the page to show the information you require… https://wp-events-plugin.com/documentation/placeholders/@loiaro The Documentation has a page dedicated to the feature you are looking for, which should enable you to make your buying decision…
https://wp-events-plugin.com/documentation/custom-booking-email-templates/
Ahhh – yes, I did. I have now unchecked that box for each ticket type and they now default to zero.
I interpreted that setting to indicate that a ticket was required to gain entry to the event, rather than the usage inferred by your question ie that it determines whether the user must have a ticket of that type to gain entry. I can now see that one usecase for this option is where all users must purchase an ‘entry’ ticket, but can optionally choose to purchase a backstage add-on ticket.
Thank you for guidance.
PS: Is this option covered in the documentation – I couldn’t find it in the Set Up Event Bookings section https://wp-events-plugin.com/documentation/set-up-event-bookings/
If it isn’t, I’d be happy to Draft something for inclusion in a future documentation update, if that would be helpful.
Cheers, and stay safe ??
I am not connected with the development team, so this is just my opinion… I don’t think there is a beta available for the next release yet, so in my experience, it is likely to be measured in months, rather than weeks, before the QR functionality is available.
If it helps, I’m in a similar situation to you. For the project I am working on I have decided that wp-events has enough valuable functionality today to make me want to stick with the plugin, rather than switch. So, I have decided to manage the expectations of my customer accordingly.
Of course, your project constraints may require you to make a different decision.
Hope that helps.