Files

57 lines
2.1 KiB
PHP
Raw Permalink Normal View History

Hotel Raxa - Advanced Booking System Implementation 🏨 Hotel Booking Enhancements: - Implemented Eagle Booking Advanced Pricing add-on - Added Booking.com-style rate management system - Created professional calendar interface for pricing - Integrated deals and discounts functionality 💰 Advanced Pricing Features: - Dynamic pricing models (per room, per person, per adult) - Base rates, adult rates, and child rates management - Length of stay discounts and early bird deals - Mobile rates and secret deals implementation - Seasonal promotions and flash sales 📅 Availability Management: - Real-time availability tracking - Stop sell and restriction controls - Closed to arrival/departure functionality - Minimum/maximum stay requirements - Automatic sold-out management 💳 Payment Integration: - Maintained Redsys payment gateway integration - Seamless integration with existing Eagle Booking - No modifications to core Eagle Booking plugin 🛠️ Technical Implementation: - Custom database tables for advanced pricing - WordPress hooks and filters integration - AJAX-powered admin interface - Data migration from existing Eagle Booking - Professional calendar view for revenue management 📊 Admin Interface: - Booking.com-style management dashboard - Visual rate and availability calendar - Bulk operations for date ranges - Statistics and analytics dashboard - Modal dialogs for quick editing 🔧 Code Quality: - WordPress coding standards compliance - Secure database operations with prepared statements - Proper input validation and sanitization - Error handling and logging - Responsive admin interface 🤖 Generated with Claude Code (https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
2025-07-11 07:43:22 +02:00
<?php
/**
* The Template for the calendar
*
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/booking-form.php.
*
* Author: Eagle Themes
* Package: Eagle-Booking/Templates
* Version: 1.1.6
*/
defined('ABSPATH') || exit;
?>
<div class="eb-widget eb-widget-border calendar">
<h2 class="title"><?php echo __('Book Your Room','eagle-booking') ?></h2>
<div class="inner">
<form id="room-booking-form" action="<?php echo $eagle_booking_action ?>" class="room-booking-form" method="<?php echo $eagle_booking_action_method ?>" target="<?php echo esc_attr( $eagle_booking_target ) ?>">
<?php include eb_load_template('elements/custom-parameters.php') ?>
<input type="hidden" name="eb_room_id" value="<?php echo get_the_ID() ?>" />
<input type="hidden" name="eb_single_room" value="1">
<?php if (eb_get_option('booking_type') == 'custom' ) : ?>
<input type="hidden" name="<?php echo esc_html( $eagle_booking_room_param ) ?>" value="<?php echo esc_html( $eagle_booking_room_external_id ) ?>" >
<?php endif ?>
<?php
/**
* Include Date Picker
*/
include eb_load_template('elements/dates-picker.php');
/**
* Include Guests Picker
*/
include eb_load_template('elements/guests-picker.php');
?>
<?php
$eb_meta_box_room_custom_link = get_post_meta( get_the_ID(), 'eagle_booking_room_custom_link', true );
if ( empty($eb_meta_box_room_custom_link) ) { ?>
<button id="eb_search_form" name="submit" class="btn eb-btn mt30" type="submit">
<span class="eb-btn-text"><?php echo __('Check Availability','eagle-booking') ?></span>
</button>
<?php } else { ?>
<a target="_blank" class="btn eb-btn" href="<?php echo $eb_meta_box_room_custom_link ?>"><?php echo __('Book Now','eagle-booking') ?></a>
<?php } ?>
</form>
</div>
</div>