🏨 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>
123 lines
4.2 KiB
Markdown
123 lines
4.2 KiB
Markdown
# CLAUDE.md
|
|
|
|
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
|
|
|
|
## Project Overview
|
|
|
|
This is a WordPress website for Hotel Raxa, built with:
|
|
- **WordPress Core**: Standard WordPress installation
|
|
- **Main Theme**: Himara theme with child theme customizations
|
|
- **Booking System**: Eagle Booking plugin for hotel reservations
|
|
- **Page Builder**: Elementor Pro for advanced layouts
|
|
- **Contact Forms**: Contact Form 7 for customer inquiries
|
|
- **Slider**: Revolution Slider for visual content
|
|
- **Maintenance Mode**: Under Construction plugin
|
|
|
|
## Site Structure
|
|
|
|
### Core WordPress Files
|
|
- `wp-config.php` - Database configuration and WordPress settings
|
|
- `wp-content/themes/himara/` - Main theme directory
|
|
- `wp-content/themes/himara-child/` - Child theme with customizations
|
|
- `wp-content/plugins/` - Plugin directory with hotel-specific functionality
|
|
|
|
### Key Theme Files
|
|
- `wp-content/themes/himara-child/functions.php` - Child theme customizations
|
|
- `wp-content/themes/himara-child/style.css` - Child theme styles
|
|
- `wp-content/themes/himara/` - Parent theme (Himara hotel theme)
|
|
|
|
### Important Plugins
|
|
- `eagle-booking/` - Hotel booking and reservation system
|
|
- `eagle-booking-advanced-pricing/` - Booking.com-style advanced pricing and availability management
|
|
- `informatiq-eb-redsys/` - Redsys payment gateway integration for Eagle Booking
|
|
- `elementor/` - Page builder for layouts
|
|
- `contact-form-7/` - Contact form management
|
|
- `revslider/` - Revolution Slider for image galleries
|
|
- `eagle-core/` - Core functionality for the hotel theme
|
|
|
|
## Database Configuration
|
|
|
|
Database settings are in `wp-config.php`:
|
|
- Database name: `sql_hotelraxa_co`
|
|
- Database user: `sql_hotelraxa_co`
|
|
- Host: `localhost`
|
|
- Table prefix: `dfgergeww323_`
|
|
|
|
## Development Tasks
|
|
|
|
### Theme Customization
|
|
- Edit child theme files in `wp-content/themes/himara-child/`
|
|
- Never modify parent theme files directly
|
|
- All customizations should go through the child theme
|
|
|
|
### Booking System
|
|
- Eagle Booking plugin handles reservations
|
|
- Templates located in `wp-content/plugins/eagle-booking/templates/`
|
|
- Booking forms and checkout process managed through plugin
|
|
- Advanced pricing features in `wp-content/plugins/eagle-booking-advanced-pricing/`
|
|
- Redsys payment integration in `wp-content/plugins/informatiq-eb-redsys/`
|
|
|
|
### Plugin Configuration
|
|
- Elementor widgets and layouts
|
|
- Contact Form 7 forms
|
|
- Revolution Slider configurations
|
|
- Under Construction mode management
|
|
|
|
### WordPress Admin Access
|
|
- Admin URL: `/wp-admin/`
|
|
- Login page: `/wp-login.php`
|
|
|
|
## Common WordPress Operations
|
|
|
|
### Backup Before Changes
|
|
Always backup the database and files before making changes to:
|
|
- Theme files
|
|
- Plugin configurations
|
|
- WordPress core files
|
|
|
|
### Plugin Management
|
|
- Install/activate plugins through WordPress admin
|
|
- Check plugin compatibility with current WordPress version
|
|
- Update plugins regularly for security
|
|
|
|
### Theme Development
|
|
- Use child theme for all customizations
|
|
- Follow WordPress coding standards
|
|
- Test changes on staging environment first
|
|
|
|
## Security Considerations
|
|
|
|
- Database credentials are stored in `wp-config.php`
|
|
- WordPress debug mode is disabled in production
|
|
- Regular security updates for WordPress core and plugins
|
|
- Backup files regularly
|
|
|
|
## Hotel-Specific Features
|
|
|
|
### Booking System (Eagle Booking)
|
|
- Room management and availability
|
|
- Booking forms and checkout process
|
|
- Payment integration including Redsys gateway
|
|
- Calendar and availability management
|
|
|
|
### Advanced Pricing System (Eagle Booking Advanced Pricing)
|
|
- Booking.com-style rate management
|
|
- Dynamic pricing per guest, per room, or per person
|
|
- Advanced availability control with restrictions
|
|
- Deals and discounts (early bird, length of stay, mobile rates, secret deals)
|
|
- Professional calendar interface for revenue management
|
|
- Bulk operations for rate and availability updates
|
|
- Integration with original Eagle Booking without modifications
|
|
|
|
### Theme Features (Himara)
|
|
- Hotel-specific layouts and templates
|
|
- Room galleries and descriptions
|
|
- Contact and location information
|
|
- Service and amenity listings
|
|
|
|
## File Permissions
|
|
|
|
Ensure proper WordPress file permissions:
|
|
- Directories: 755 or 750
|
|
- Files: 644 or 640
|
|
- wp-config.php: 600 or 644 |