Free and Premium WordPress Plugins & Themes Forums WordPress Plugins Hotel Booking Add info in all booking
- This topic has 8 replies, 2 voices, and was last updated 3 years, 10 months ago by Andre Flores.
- AuthorPosts
- March 28, 2019 at 7:57 am #788386Evgeniy KutsenkoParticipant
Can add this to the next update?
…/wp-content/plugins/motopress-hotel-booking/includes/admin/manage-cpt-pages/booking-manage-cpt-page.php
$reservedRooms = $booking->getReservedRooms();
if ( !empty( $reservedRooms ) && !$booking->isImported() ) {
$adultsTotal = 0;
$childrenTotal = 0;
foreach ( $reservedRooms as $reservedRoom ) {
$adultsTotal += $reservedRoom->getAdults();
$childrenTotal += $reservedRoom->getChildren();
$guestNames .= $reservedRoom->getGuestName() . ‘<br/>’;
$room = MPHB()->getRoomRepository()->findById( $reservedRoom->getRoomId() );
$rooms .= $room->getTitle() . ‘<br/>’;
}
_e( ‘Adults: ‘, ‘motopress-hotel-booking’ );
echo $adultsTotal . ‘<br/>’;
if ( $childrenTotal > 0 ) {
_e( ‘Children: ‘, ‘motopress-hotel-booking’ );
echo $childrenTotal . ‘<br/>’;
}
echo ‘<br/>’;
echo $guestNames . ‘<br/>’;
echo $rooms . ‘<br/>’;
} else {
echo static::EMPTY_VALUE_PLACEHOLDER;
}
break;- This topic was modified 5 years, 8 months ago by Evgeniy Kutsenko.
April 4, 2019 at 6:55 am #790671J. DavisKeymasterHi Evgeniy,
Could you clarify your request more detailed so we’ll be able to review the best way to implement the changes you offer? Thanks.
best regards,
J. DavisApril 4, 2019 at 7:05 am #790673Evgeniy KutsenkoParticipantIn fact, I need to provide booking information for printing.
The “All bookings” section is the only way to do this, but there is not enough guest name and room.
Just this will make this section more informative.
You do not plan to add the ability to print bookings for different conditions?April 8, 2019 at 2:47 pm #792242J. DavisKeymasterHi Evgeniy,
Thank you for your explanation. We’ve added your request to our list of features. We’ll notify you when we have any news about this printing bookings.
best regards,
J. DavisJune 18, 2019 at 2:29 pm #816721Stacy LindKeymasterHi,
We are glad to inform you that now it is possible to export all the booking info in the CSV format for reporting. Make sure to update the MotoPress Hotel Booking plugin to its latest version (3.5.0) to use this and other new features.
January 22, 2021 at 6:01 am #1063190Maurice CouwenbergParticipanthello, in my case the csv export does not show the currency corretly (€ 168.80), I learned to import differently to excel and select a file origin “65001:unicode utf8”, the it load correctly the currency. This takes quite some extra steps, anybody knows how to correct this once, in stead of doing this at every csv export?
January 25, 2021 at 11:33 pm #1064721Andre FloresModeratorHello Maurice,
Kindly submit a request to our Help Desk providing temporary access to your WordPress dashboard, so we take a closer look at the issue.
Regards,
AndreJanuary 29, 2021 at 8:48 am #1066748Maurice CouwenbergParticipantThis reply has been marked as private.February 2, 2021 at 12:56 am #1068191Andre FloresModeratorThis reply has been marked as private. - AuthorPosts
- You must be logged in to reply to this topic.