benitolopez
Forum Replies Created
-
Forum: Plugins
In reply to: [WP Hotelier] Installing Manila themeEverything seems ok to me. The theme is installed correctly. And the fact that you don’t see images or pages that are not created is completely normal. You installed a theme, and a theme should not import images or create pages randomly. This is what happens if you install Twenty Twenty-Five or another default WordPress theme.
Anyway, WP Hotelier has some demo data you can import to see how to create rooms. You can find the XML in wp-hotelier/sample-data/sample_data.xml and you can import it in WP > Tools > Import.
Manila is a blank theme made for developers/users who want to start from scratch. It is very minimal, and no demo data. If you need a complete solution, you may consider Hello Elementor + Elementor.
Forum: Plugins
In reply to: [WP Hotelier] Installing Manila themeHi,
Can you elaborate? What do you mean by “nothing happens”? Do you see any errors?
Can you send me some screenshots?
Forum: Plugins
In reply to: [WP Hotelier] Rooms without Date pickerHello,
I suspect that this is a theme issue because WP Hotelier has the setting to disable all those elements on the room page here: https://lopezb.d.pr/i/NCYNU4
You can also see this: https://ww.wp.xz.cn/support/topic/hide-the-price-of-the-room/
Forum: Plugins
In reply to: [WP Hotelier] Hotelier and WPML – unable to set certain translationsHi,
To change the word room please check this https://docs.wphotelier.com/advanced/change-room-slug.html and this https://gist.github.com/benitolopez/eeb7ee3707544ae9a4450497d454a817.
Regarding the strings, those are admin text strings. Please refer to the WPML documentation or contact their support: https://wpml.org/documentation/getting-started-guide/string-translation/finding-strings-that-dont-appear-on-the-string-translation-page/#register-admin-and-setting-strings-for-translation
Best,
Forum: Plugins
In reply to: [WP Hotelier] Hiding the line “number of adults”Hello,
That is visible when you have this option enabled: https://lopezb.d.pr/i/JtIQmr
So, I assume that you have it enabled and you are showing the selection on the listing page. If this is the case the only possibility is to hide with CSS:
.reservation-table__room-guests--booking {
display: none !important;
}Forum: Plugins
In reply to: [WP Hotelier] Allow customer to pay in Manual Booking modeHello,
Yes, this is possible. Just set the booking method to “manual”. Then, from the reservation admin page, use this to send an email to the guest. The email will contain a link to pay for the reservation: https://lopezb.d.pr/i/ldOGW4
Leave the reservation status set to “pending”. It will change to “confirmed” after the guest pays the deposit.
Forum: Plugins
In reply to: [WP Hotelier] Who created the reservationAdded in version 2.17.0
Forum: Plugins
In reply to: [WP Hotelier] Addition Column in Admin Reservation screen.Added in version 2.17.0
Forum: Plugins
In reply to: [WP Hotelier] Addition Column in Admin Reservation screen.Hello,
No, there isn’t a quick way to do that at the moment. Additionally, this can be complicated if a reservation includes multiple rooms. However, it is a great idea, and it may be helpful to enable/disable this using a hook or a setting. I will implement it in the next weeks and release a quick update.
Forum: Plugins
In reply to: [WP Hotelier] Who created the reservationHello,
This is a great idea. I will add this functionality in the next update.
Forum: Plugins
In reply to: [WP Hotelier] Custom Additional Booking Field – Not in databaseYes, the current action has a typo, “requets”. I will fix it in the next update. That’s why my code has two lines, because the new action will be “hotelier_reservation_after_guest_special_requests”. So you will be ready.
Forum: Plugins
In reply to: [WP Hotelier] Custom Additional Booking Field – Not in databaseI’m using the exact same code and it works:
https://lopezb.d.pr/i/1gmQf0Did you copy the exact same code I sent above? Note that there are two:
add_action( 'hotelier_reservation_after_guest_special_requests', 'custom_fields_in_reservation_data' );
add_action( 'hotelier_reservation_after_guest_special_requets', 'custom_fields_in_reservation_data' );Forum: Plugins
In reply to: [WP Hotelier] Custom Additional Booking Field – Not in databaseThis is the correct code:
// Display the "Recommended by" custom field in the admin reservation details
function custom_fields_in_reservation_data() {
global $post;
$custom_field = get_post_meta( $post->ID, 'zswcustom_field', true );
if ( $custom_field ) {
$field = array(
'id' => 'zswcustom_field',
'label' => esc_html__( 'Recommended by', 'text-domain' ),
'value' => $custom_field,
);
HTL_Meta_Boxes_Helper::text_input( $field );
}
}
add_action( 'hotelier_reservation_after_guest_special_requests', 'custom_fields_in_reservation_data' );
add_action( 'hotelier_reservation_after_guest_special_requets', 'custom_fields_in_reservation_data' );Forum: Plugins
In reply to: [WP Hotelier] Custom Additional Booking Field – Not in databaseOk, the code works automatically if you use the “hotelier_booking_default_address_fields” filter. To update the reservation meta when you use the “hotelier_booking_additional_information_fields” filter, you can use this code:
function hotelier_custom_update_reservation_meta( $reservation_id, $form_data ) {
if ( isset( $form_data['zswcustom_field'] ) ) {
update_post_meta( $reservation_id, 'zswcustom_field', $form_data['zswcustom_field'] );
}
}
add_action( 'hotelier_booking_update_reservation_meta', 'hotelier_custom_update_reservation_meta', 10, 2 );Forum: Plugins
In reply to: [WP Hotelier] Search/Filter RoomsWP > Appearance > Widgets. You need a theme that supports widgets and that has a sidebar where you can drag it.