🏨 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>
53 lines
3.1 KiB
Markdown
53 lines
3.1 KiB
Markdown
# Contributing to CMB2
|
|
|
|
Thank you for your interest in contributing back to CMB2. Please help us review your issues and/or merge your pull requests by following the below guidelines.
|
|
|
|
#### NOTE: The issues section is for bug reports and feature requests only.
|
|
_Support is not offered for this library, and the likelihood that the maintainers will respond is very low. If you need help, please use [stackoverflow](http://stackoverflow.com/search?q=cmb), or the [wordpress.org plugin forums](http://wordpress.org/support/plugin/cmb2)._
|
|
|
|
Before reporting a bug
|
|
---
|
|
1. Please review the [documentation](https://github.com/CMB2/CMB2/wiki). Most questions revolve around the [field types](https://github.com/CMB2/CMB2/wiki/Field-Types), [field parameters](https://github.com/CMB2/CMB2/wiki/Field-Parameters), or are addressed in the [troubleshooting](https://github.com/CMB2/CMB2/wiki/Troubleshooting) section.
|
|
2. Search [issues](https://github.com/CMB2/CMB2/issues) to see if the issue has been previously reported.
|
|
3. Install the trunk version of CMB2 and test there.
|
|
|
|
|
|
How to report a bug
|
|
---
|
|
1. Specify the version number for both WordPress and CMB2.
|
|
3. Describe the problem in detail. Explain what happened, and what you expected would happen.
|
|
4. Provide a small test-case and a link to a [gist](https://gist.github.com/) containing your entire metabox registration code.
|
|
5. If helpful, include a screenshot. Annotate the screenshot for clarity.
|
|
|
|
|
|
How to contribute to CMB2
|
|
---
|
|
All contributions welcome. If you would like to submit a pull request, please follow the steps below.
|
|
|
|
1. Make sure you have a GitHub account.
|
|
2. Fork the repository on GitHub.
|
|
3. **Check out the trunk version of CMB2.** If you submit to the master branch, the PR will be closed with a link back to this document.
|
|
4. **Verify your issue still exists in the trunk branch.**
|
|
5. Make changes to your clone of the repository.
|
|
1. Please follow the [WordPress code standards](https://make.wordpress.org/core/handbook/coding-standards).
|
|
2. If possible, and if applicable, please also add/update unit tests for your changes.
|
|
3. Please add documentation to any new functions, methods, actions and filters.
|
|
4. When committing, reference your issue (if present) and include a note about the fix.
|
|
6. [Submit a pull request](https://help.github.com/articles/creating-a-pull-request/).
|
|
|
|
**Note:** You may gain more ground and avoid unecessary effort if you first open an issue with the proposed changes, but this step is not necessary.
|
|
|
|
Translations
|
|
---
|
|
If you are looking to provide language translation files, Please do so via [WordPress Plugin Translations](https://translate.wordpress.org/projects/wp-plugins/cmb2).
|
|
|
|
Additional Resources
|
|
---
|
|
|
|
* [CMB2 Documentation Wiki](https://github.com/CMB2/CMB2/wiki)
|
|
* [CMB2 Snippet Library](https://github.com/CMB2/CMB2-Snippet-Library)
|
|
* [CMB2 API Documentation](http://cmb2.io/api/)
|
|
* [General GitHub Documentation](http://help.github.com/)
|
|
* [GitHub Pull Request documentation](http://help.github.com/send-pull-requests/)
|
|
* [PHPUnit Tests Guide](http://phpunit.de/manual/current/en/writing-tests-for-phpunit.html)
|