🏨 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>
5.6 KiB
5.6 KiB
Hotel Raxa - Setup Instructions
Quick Configuration Guide for New Features
1. Configure 10% VAT in Eagle Booking
-
Access WordPress Admin
- Go to your WordPress admin panel
- Navigate to
Eagle Booking → Taxes & Fees
-
Add VAT Tax
- Click "Add New Tax"
- Title:
VATorIVA - Rate:
10(percentage) - Global: Check "Yes" (applies to all rooms)
- Additional Services: Check "Yes" (applies to services)
- Click "Save"
-
Configure Tax Display
- Go to
Eagle Booking → Settings → General - Find "Price Display" setting
- Select "Including Taxes & Fees" to show "Including 10% VAT"
- Or select "Excluding Taxes & Fees" to show taxes separately
- Save settings
- Go to
2. Activate Tourist Tax Plugin
-
Plugin Activation
- Go to
Plugins → Installed Plugins - Find "Eagle Booking Tourist Tax"
- Click "Activate"
- Go to
-
Verify Tourist Tax
- Go to
Eagle Booking → Tourist Tax - Confirm rate is set to €2.20 per person per day
- Review statistics and settings
- Go to
3. Configure Payment Requests System
-
Access Payment Requests
- Go to
Eagle Booking → Payment Requests
- Go to
-
Configure Automatic Requests
- Enable "Send payment requests automatically 14 days before check-in"
- Set "Payment Percentage" to 50%
- Set "Days Before Check-in" to 14
- Save settings
-
Test Manual Payment Request
- Enter a test booking ID
- Set customer email and amount
- Send a test payment request
- Verify email delivery and payment link
4. Configure Preauthorization (Optional)
-
Access Redsys Settings
- Go to
Eagle Booking → Payment Methods → Redsys
- Go to
-
Enable Preauthorization
- Check "Enable Preauthorization"
- Set "Preauthorization Amount" to desired option:
- Full booking amount (recommended)
- Deposit amount only
- Fixed amount
- Enable "Auto-capture Preauthorizations" for automatic processing
- Set "Preauthorization Expiry" to 7 days (maximum)
- Save settings
-
Monitor Preauthorizations
- Go to
Eagle Booking → Preauthorizations - Review active preauthorizations
- Capture or cancel as needed
- Go to
5. Configure Payment Scheduler
-
Access Scheduler Settings
- Go to
Eagle Booking → Payment Scheduler
- Go to
-
Configure Automation
- Set "Days Before Check-in" to 14
- Set "Payment Percentage" to 50%
- Set "Payment Link Expiry" to 72 hours
- Enable "Admin Notifications" for error alerts
- Save settings
-
Test Manual Run
- Click "Run Manual Check"
- Review results and activity log
Integration Summary
How the Systems Work Together
-
Booking Process:
- Customer makes booking through Eagle Booking
- 10% VAT automatically calculated and displayed
- Tourist tax (€2.20/person/day) automatically added
- Payment can be processed via:
- Immediate payment (traditional)
- Preauthorization (hold funds)
- Payment request (send later)
-
Automated Payment Flow:
- System checks daily for bookings 14 days before check-in
- Automatically sends payment requests for 50% of booking
- Customers receive professional email with secure payment link
- Payment processed through Redsys gateway
- Admin receives notifications for any issues
-
Admin Management:
- Full visibility of all payment requests
- Preauthorization management (capture/cancel)
- Tourist tax statistics and reporting
- Automated scheduler monitoring
Database Tables Created
The following new tables are automatically created:
wp_eb_payment_requests- Payment request trackingwp_eb_preauthorizations- Preauthorization managementwp_eb_payment_scheduler_log- Automated scheduler activity log
Email Templates
Professional email templates are included for:
- Payment request notifications
- Pre-arrival payment reminders
- Admin error notifications
Security Features
- Secure payment links with unique tokens
- Time-limited payment links (configurable expiry)
- CSRF protection on all admin forms
- Input validation and sanitization
- Encrypted payment processing via Redsys
Support & Troubleshooting
Common Issues
-
Cron Jobs Not Running
- Ensure WordPress cron is enabled
- Check with hosting provider about cron job support
- Use WP-CLI or plugin to test cron functionality
-
Email Delivery Issues
- Configure SMTP plugin for reliable email delivery
- Check spam folders
- Verify sender email address
-
Payment Gateway Issues
- Verify Redsys credentials are correct
- Check test/live mode settings
- Ensure SSL certificate is valid
Log Files
Monitor these locations for troubleshooting:
- WordPress debug log (
wp-content/debug.log) - Payment scheduler activity log (admin interface)
- Eagle Booking logs (if available)
Testing Checklist
Before going live, test:
- VAT calculation on booking forms
- Tourist tax calculation and display
- Manual payment request creation and sending
- Payment link functionality and expiry
- Preauthorization capture and cancellation
- Automated scheduler (run manual check)
- Email delivery and formatting
Production Deployment
- Backup Database: Always backup before making changes
- Test Environment: Test all features in staging first
- SSL Certificate: Ensure valid SSL for payment processing
- Email Configuration: Set up reliable SMTP for email delivery
- Monitoring: Enable admin notifications and monitor logs
- Documentation: Keep this guide accessible for future reference
Generated: $(date) Version: 1.0.0 Contact: dev@hotelraxa.com