[wp-trac] [WordPress Trac] #33853: Missing button msg for closed bookings-implemented in working copy
WordPress Trac
noreply at wordpress.org
Sun Sep 13 23:54:21 UTC 2015
#33853: Missing button msg for closed bookings-implemented in working copy
-------------------------+-----------------------------
Reporter: ghezino | Owner:
Type: enhancement | Status: new
Priority: normal | Milestone: Awaiting Review
Component: General | Version: 4.2.2
Severity: normal | Keywords:
Focuses: |
-------------------------+-----------------------------
Hi,
We have encountered a booking with a rsvp date in the past (so booking is
already closed), and some seats still remaining. In the event table the
status of the booking only shows the number of seats available. Therefore
the users assume they can book in that event. They open the booking and
see that it is closed for booking. This case is a bit misleading. We'd
better display a button message (like the ones we have for "Fully Booked"
and "Book Now" in the status column saying "Booking Closed".
I have already implemented it in my working copy. But we really want to
have this change to be included in the commercial version.
Changes needed to implement this:
1. wp-content/plugins/events-manager/admin/settings/tabs/bookings.php
added at line 81:
{{{
em_options_input_text ( __( 'Booking closed', 'dbem' ),
'dbem_booking_button_msg_closed', '');
}}}
2. fill customised feedback in /events/wp-
admin/edit.php?post_type=event&page=events-manager-options#bookings
3. wp-content/plugins/events-
manager/templates/placeholders/bookingbutton.php line 36-38:
{{{
else { //not open
if( $EM_Event->get_bookings()->get_available_spaces() <= 0
){
?><span class="em-full-button"><?php echo $notice_full
?></span><?php
}else {
?><span class="em-booked-button"><?php echo
$notice_closed ?></span><?php
}
}
}}}
--
Ticket URL: <https://core.trac.wordpress.org/ticket/33853>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list