Add info in all booking

Viewing 9 posts - 1 through 9 (of 9 total)
  • Author
    Posts
  • #788386
    Evgeniy Kutsenko
    Participant

    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.
    #790671
    J. Davis
    Keymaster

    Hi 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. Davis

    #790673
    Evgeniy Kutsenko
    Participant

    In 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?

    #792242
    J. Davis
    Keymaster

    Hi 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. Davis

    #816721
    Stacy Lind
    Keymaster

    Hi,

    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.

    #1063190
    Maurice Couwenberg
    Participant

    hello, 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?

    #1064721
    Andre Flores
    Moderator

    Hello 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,
    Andre

    #1066748
    Maurice Couwenberg
    Participant
    This reply has been marked as private.
    #1068191
    Andre Flores
    Moderator
    This reply has been marked as private.
Viewing 9 posts - 1 through 9 (of 9 total)
  • You must be logged in to reply to this topic.