Files

78 lines
2.3 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 displaying room similar rooms
*
* This template can be overridden by copying it to yourtheme/eb-templates/single-room/similar-rooms.php.
*
* Author: Eagle Themes
* Package: Eagle-Booking/Templates
* Version: 1.1.6
*/
defined('ABSPATH') || exit;
$branch_terms = get_the_terms( get_the_ID(), 'eagle_branch' );
$branch_id = join(', ', wp_list_pluck($branch_terms, 'term_id'));
// If a branch is assigend then display only rooms of the same branch
if ( $branch_id ) {
$args = array(
'post_type' => 'eagle_rooms',
'post__not_in' => array( get_the_ID() ),
'posts_per_page' => 3,
'orderby' => 'rand',
'suppress_filters' => false,
'tax_query' => array(
array(
'taxonomy' => 'eagle_branch',
'field' => 'term_id',
'terms' => $branch_id
),
),
);
} else {
$args = array(
'post_type' => 'eagle_rooms',
'post__not_in' => array( get_the_ID() ),
'posts_per_page' => 3,
'suppress_filters' => false
);
}
$similar_rooms_qry = new WP_Query($args);
?>
<div class="similar-rooms">
<h2 class="section-title"><?php echo esc_html__('Similar Rooms', 'eagle-booking')?></h2>
<div class="eb-g-lg-3 eb-g-sm-1">
<?php
if ( $similar_rooms_qry->have_posts() ) : while ($similar_rooms_qry->have_posts()) : $similar_rooms_qry->the_post();
$eagle_booking_room_id = get_the_id();
$room_title = get_the_title();
$room_thumbnail = get_the_post_thumbnail_url('', 'eagle_booking_image_size_720_470');
$room_url = get_permalink();
$eagle_booking_room_price = eagle_booking_room_min_price($eagle_booking_room_id);
?>
<div class="eb-col">
<div class="similar-room-item" style="background-image: url('<?php echo $room_thumbnail ?>');">
<a href="<?php echo esc_url( $room_url ) ?>">
<div class="room-details">
<h4 class="room-title"><?php echo esc_html( $room_title ) ?> </h4>
<?php eb_room_price( get_the_ID(), ' / '.__('night', 'eagle-booking') ) ?>
</div>
</a>
</div>
</div>
<?php endwhile; endif; ?>
<?php wp_reset_postdata(); ?>
</div>
</div>