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>
This commit is contained in:
@@ -0,0 +1,73 @@
|
||||
<?php
|
||||
/**
|
||||
* Date Field.
|
||||
*
|
||||
* @package ReduxFramework/Fields
|
||||
* @author Dovy Paukstys & Kevin Provance (kprovance)
|
||||
* @version 4.0.0
|
||||
* @noinspection PhpIgnoredClassAliasDeclaration
|
||||
*/
|
||||
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
// Don't duplicate me!
|
||||
if ( ! class_exists( 'Redux_Date', false ) ) {
|
||||
|
||||
/**
|
||||
* Main Redux_date class
|
||||
*
|
||||
* @since 1.0.0
|
||||
*/
|
||||
class Redux_Date extends Redux_Field {
|
||||
|
||||
/**
|
||||
* Field Render Function.
|
||||
* Takes the vars and outputs the HTML for the field in the settings
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function render() {
|
||||
$placeholder = $this->field['placeholder'] ?? '';
|
||||
|
||||
echo '<input
|
||||
data-id="' . esc_attr( $this->field['id'] ) . '"
|
||||
type="text"
|
||||
id="' . esc_attr( $this->field['id'] ) . '-date"
|
||||
name="' . esc_attr( $this->field['name'] . $this->field['name_suffix'] ) . '"
|
||||
value="' . esc_attr( $this->value ) . '"
|
||||
placeholder="' . esc_attr( $placeholder ) . '"
|
||||
class="redux-datepicker regular-text ' . esc_attr( $this->field['class'] ) . '" />';
|
||||
}
|
||||
|
||||
/**
|
||||
* Enqueue Function.
|
||||
* If this field requires any scripts, or css define this function and register/enqueue the scripts/css
|
||||
*
|
||||
* @since 1.0.0
|
||||
* @access public
|
||||
* @return void
|
||||
*/
|
||||
public function enqueue() {
|
||||
if ( $this->parent->args['dev_mode'] ) {
|
||||
wp_enqueue_style(
|
||||
'redux-field-date',
|
||||
Redux_Core::$url . 'inc/fields/date/redux-date.css',
|
||||
array(),
|
||||
$this->timestamp
|
||||
);
|
||||
}
|
||||
|
||||
wp_enqueue_script(
|
||||
'redux-field-date',
|
||||
Redux_Core::$url . 'inc/fields/date/redux-date' . Redux_Functions::is_min() . '.js',
|
||||
array( 'jquery', 'jquery-ui-core', 'jquery-ui-datepicker', 'redux-js' ),
|
||||
$this->timestamp,
|
||||
true
|
||||
);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
class_alias( 'Redux_Date', 'ReduxFramework_Date' );
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* Silence is golden.
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
_deprecated_file( 'field_date.php', '4.3', 'class-redux-date.php', 'This file has been renamed and is no longer used in Redux 4. Please change any references to it as it will be removed in future versions of Redux.' );
|
||||
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
/**
|
||||
* Silence is golden.
|
||||
*
|
||||
* @package Redux Framework
|
||||
*/
|
||||
|
||||
echo null;
|
||||
@@ -0,0 +1,7 @@
|
||||
#ui-datepicker-div { z-index: 15 !important; }
|
||||
|
||||
.ui-datepicker-header { background-color: #00abef; }
|
||||
|
||||
/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVkdXgtZGF0ZS5jc3MiLCJzb3VyY2VzIjpbInJlZHV4LWRhdGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxBQUFBLGtCQUFrQixDQUFDLEVBQ2YsT0FBTyxFQUFFLGFBQWEsR0FDekI7O0FBRUQsQUFBQSxxQkFBcUIsQ0FBQyxFQUNsQixnQkFBZ0IsRUFBRSxPQUFPLEdBQzVCIn0= */
|
||||
|
||||
/*# sourceMappingURL=redux-date.css.map */
|
||||
@@ -0,0 +1 @@
|
||||
{"version":3,"sources":["redux-date.scss","redux-date.css"],"names":[],"mappings":"AAAA,qBCCI,sBAAsB,EAAA;;AAG1B,wBACI,yBAAyB,EAAA;;AAD7B,iUAAiU","file":"redux-date.css","sourcesContent":["#ui-datepicker-div {\r\n z-index: 15 !important;\r\n}\r\n\r\n.ui-datepicker-header {\r\n background-color: #00abef;\r\n}\r\n\r\n","#ui-datepicker-div { z-index: 15 !important; }\n\n.ui-datepicker-header { background-color: #00abef; }\n\n/*# sourceMappingURL=data:application/json;charset=utf8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicmVkdXgtZGF0ZS5jc3MiLCJzb3VyY2VzIjpbInJlZHV4LWRhdGUuc2NzcyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxBQUFBLGtCQUFrQixDQUFDLEVBQ2YsT0FBTyxFQUFFLGFBQWEsR0FDekI7O0FBRUQsQUFBQSxxQkFBcUIsQ0FBQyxFQUNsQixnQkFBZ0IsRUFBRSxPQUFPLEdBQzVCIn0= */\n\n/*# sourceMappingURL=redux-date.css.map */\n"]}
|
||||
@@ -0,0 +1,58 @@
|
||||
/*global jQuery, redux*/
|
||||
|
||||
(function( $ ) {
|
||||
'use strict';
|
||||
|
||||
redux.field_objects = redux.field_objects || {};
|
||||
redux.field_objects.date = redux.field_objects.date || {};
|
||||
|
||||
redux.field_objects.date.init = function( selector ) {
|
||||
selector = $.redux.getSelector( selector, 'date' );
|
||||
|
||||
$( selector ).each(
|
||||
function() {
|
||||
var el = $( this );
|
||||
var parent = el;
|
||||
|
||||
if ( ! el.hasClass( 'redux-field-container' ) ) {
|
||||
parent = el.parents( '.redux-field-container:first' );
|
||||
}
|
||||
|
||||
if ( parent.is( ':hidden' ) ) {
|
||||
return;
|
||||
}
|
||||
|
||||
if ( parent.hasClass( 'redux-field-init' ) ) {
|
||||
parent.removeClass( 'redux-field-init' );
|
||||
} else {
|
||||
return;
|
||||
}
|
||||
|
||||
el.find( '.redux-datepicker' ).each(
|
||||
function() {
|
||||
$( this ).datepicker(
|
||||
{
|
||||
'dateFormat': 'mm/dd/yy', beforeShow: function( input, instance ) {
|
||||
var el = $( '#ui-datepicker-div' );
|
||||
var popover = instance.dpDiv;
|
||||
|
||||
$( this ).parent().append( el );
|
||||
|
||||
el.hide();
|
||||
setTimeout(
|
||||
function() {
|
||||
popover.position(
|
||||
{ my: 'left top', at: 'left bottom', collision: 'none', of: input }
|
||||
);
|
||||
},
|
||||
1
|
||||
);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
}
|
||||
);
|
||||
};
|
||||
})( jQuery );
|
||||
1
wp-content/plugins/eagle-booking/include/redux/inc/fields/date/redux-date.min.js
vendored
Normal file
1
wp-content/plugins/eagle-booking/include/redux/inc/fields/date/redux-date.min.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
!function(n){"use strict";redux.field_objects=redux.field_objects||{},redux.field_objects.date=redux.field_objects.date||{},redux.field_objects.date.init=function(e){e=n.redux.getSelector(e,"date"),n(e).each(function(){var e=n(this),t=e;(t=e.hasClass("redux-field-container")?t:e.parents(".redux-field-container:first")).is(":hidden")||t.hasClass("redux-field-init")&&(t.removeClass("redux-field-init"),e.find(".redux-datepicker").each(function(){n(this).datepicker({dateFormat:"mm/dd/yy",beforeShow:function(e,t){var i=n("#ui-datepicker-div"),d=t.dpDiv;n(this).parent().append(i),i.hide(),setTimeout(function(){d.position({my:"left top",at:"left bottom",collision:"none",of:e})},1)}})}))})}}(jQuery);
|
||||
@@ -0,0 +1,8 @@
|
||||
#ui-datepicker-div {
|
||||
z-index: 15 !important;
|
||||
}
|
||||
|
||||
.ui-datepicker-header {
|
||||
background-color: #00abef;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user