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,79 @@
|
||||
<?php
|
||||
/**
|
||||
* @author ThemePunch <info@themepunch.com>
|
||||
* @link https://www.themepunch.com/
|
||||
* @copyright 2024 ThemePunch
|
||||
* @since 6.2.0
|
||||
*/
|
||||
|
||||
if(!defined('ABSPATH')) exit();
|
||||
|
||||
class RevSliderLicense extends RevSliderFunctions {
|
||||
/**
|
||||
* Activate the Plugin through the ThemePunch Servers
|
||||
* @before 6.0.0: RevSliderOperations::checkPurchaseVerification();
|
||||
* @before 6.2.0: RevSliderAdmin::activate_plugin();
|
||||
**/
|
||||
public function activate_plugin($code){
|
||||
$rstrack = new RevSliderTracking();
|
||||
$rstrack->_run(true);
|
||||
|
||||
$rslb = RevSliderGlobals::instance()->get('RevSliderLoadBalancer');
|
||||
$data = array(
|
||||
'code' => urlencode($code),
|
||||
'version' => urlencode(RS_REVISION),
|
||||
'product' => urlencode(RS_PLUGIN_SLUG),
|
||||
'addition' => apply_filters('revslider_activate_plugin_info_addition', array())
|
||||
);
|
||||
|
||||
$response = $rslb->call_url('activate.php', $data, 'updates');
|
||||
$version_info = wp_remote_retrieve_body($response);
|
||||
|
||||
if(is_wp_error($version_info)) return false;
|
||||
if($version_info == 'valid'){
|
||||
update_option('revslider-valid', 'true');
|
||||
update_option('revslider-code', $code);
|
||||
update_option('revslider-deregister-popup', 'false');
|
||||
|
||||
return true;
|
||||
}
|
||||
if($version_info == 'exist') return 'exist';
|
||||
if($version_info == 'banned') return 'banned';
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Deactivate the Plugin through the ThemePunch Servers
|
||||
* @before 6.0.0: RevSliderOperations::doPurchaseDeactivation();
|
||||
* @before 6.2.0: RevSliderAdmin::deactivate_plugin();
|
||||
**/
|
||||
public function deactivate_plugin(){
|
||||
$rstrack = new RevSliderTracking();
|
||||
$rstrack->_run(false);
|
||||
|
||||
$rslb = RevSliderGlobals::instance()->get('RevSliderLoadBalancer');
|
||||
$code = get_option('revslider-code', '');
|
||||
$data = array(
|
||||
'code' => urlencode($code),
|
||||
'product' => urlencode(RS_PLUGIN_SLUG),
|
||||
'addition' => apply_filters('revslider_deactivate_plugin_info_addition', array())
|
||||
);
|
||||
|
||||
$res = $rslb->call_url('deactivate.php', $data, 'updates');
|
||||
$vi = wp_remote_retrieve_body($res);
|
||||
|
||||
if(is_wp_error($vi)) return false;
|
||||
|
||||
if($vi == 'valid'){
|
||||
update_option('revslider-valid', 'false');
|
||||
update_option('revslider-code', '');
|
||||
update_option('revslider-deregister-popup', 'true');
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user