=== CP Reservation Calendar === Contributors: codepeople Donate link: https://wordpress.dwbooster.com/calendars/booking-calendar-contact-form Tags: reservation calendar, booking calendar, bookings, reservations, paypal Requires at least: 5.8 Tested up to: 7.0 Requires PHP: 7.4 Stable tag: 1.2.05 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html CP Reservation Calendar is a booking calendar that allows visitors to select date ranges (such as check-in and check-out dates) and pay via PayPal. == Description == CP Reservation Calendar is a WordPress booking calendar plugin that allows website visitors to select a start date and end date for a reservation and complete payment through PayPal. **Recommended Next-Generation Plugin** Looking for seasonal pricing, extra services, modern booking forms, discount codes, or bookings without PayPal? We built an actively expanded successor plugin directly on top of this one: * **Booking Calendar Contact Form**: https://wordpress.org/plugins/booking-calendar-contact-form/ Need time-slot / appointment scheduling instead of date ranges? Check out our related plugins: * **Appointment Hour Booking**: https://wordpress.org/plugins/appointment-hour-booking/ * **Appointment Booking Calendar**: https://wordpress.org/plugins/appointment-booking-calendar/ = Main Features = 1. Supports **Partial Days** (hotel/night style) and **Complete Days** (inclusive) reservation modes 2. Integrated with PayPal for reservation payment processing 3. Automatic email notifications to both admin and customer 4. Multi-calendar management with per-calendar user ownership 5. Modern responsive styling and shortcode publishing This booking calendar is suitable for hotel bookings, vacation rentals, tour bookings, car rentals, office/room rentals, equipment rentals, and similar date-range services. In **Complete Days** mode, both the first and last booked days are charged as full days. In **Partial Days** mode, the arrival/pick-up and departure/drop-off days are treated as half-days so billing matches the number of nights or 24-hour periods. = More Features = * Visitors select a **start date and end date** and pay via **PayPal / credit cards**. * Total cost is automatically calculated on the server based on the number of reserved days. * Confirmed reservations automatically block booked dates to prevent double bookings. * Customizable confirmation emails to customers and notification emails to administrators. * Configurable PayPal product name, currency, language, return/cancel URLs, and daily rate. * Configurable calendar language, date format (`mm/dd/yyyy` or `dd/mm/yyyy`), start weekday, and min/max available dates. * Manually block or edit reserved date ranges from the calendar administration panel. * Assign calendars to specific WordPress users (Editors can manage only their assigned calendars). * Publish all public calendars with `[CP_RESERVATION_CALENDAR]`, a specific calendar with `[CP_RESERVATION_CALENDAR calendar="1"]`, or a user's calendars with `[CP_RESERVATION_CALENDAR user="admin"]`. == Installation == 1. Download and unzip the CP Reservation Calendar plugin. 2. Upload the `cp-reservation-calendar/` directory to `/wp-content/plugins/`. 3. Activate **CP Reservation Calendar** through the **Plugins** menu in WordPress. 4. Configure your calendars under the **CP Reservation Calendar** menu in the WordPress admin dashboard. 5. Insert the shortcode `[CP_RESERVATION_CALENDAR]` (or `[CP_RESERVATION_CALENDAR calendar="1"]`) into any post or page. == Frequently Asked Questions == = Q: What does each field in the booking calendar settings area mean? = A: Detailed documentation for each setting and customization option is available on the plugin page: https://wordpress.dwbooster.com/calendars/cp-reservation-calendar = Q: How can I customize the calendar colors and styling? = A: Open `cp-reservation-calendar/TDE_RCalendar/all-css.css` (or override the CSS custom properties in your theme's Additional CSS under **Appearance > Customize**): :root { --cpres-primary: #2563eb; --cpres-primary-hover: #1d4ed8; --cpres-accent-soft: #fef3c7; --cpres-border-light: #e2e8f0; --cpres-radius: 8px; } = Q: I'm getting the message "Destination folder already exists". How do I fix it? = A: Delete the previously installed version of the plugin before uploading a new ZIP file, or overwrite the files via SFTP. Your plugin database tables and settings are preserved. == Screenshots == 1. Inserting the reservation calendar into a page. 2. Booking / reservation form. 3. Booking calendar configuration and administration. == Changelog == = 1.2.05 = * Security hardening: PayPal IPN, calendar ownership and CSRF nonces across admin forms and AJAX endpoints. * Security & PHP 8+ hardening in `captcha/captcha.php`: bounded all image/noise/font query parameters to prevent DoS, switched to `random_int()`, removed client-side MD5 cookie exposure, and fixed PHP 8.1+ float/int deprecations. * Replaced full `wp_users` table scan on `the_content` with native WordPress `add_shortcode()` registration. * Fixed MySQL 8 strict-mode schema defaults during activation and removed external CDN stylesheet dependencies. * Fixed jQuery 3.x compatibility in the deactivation feedback modal. * Modernized admin dashboard, recommended plugin upgrade showcase, booking form, and scoped frontend/admin stylesheets. = 1.1.43 = * Compatible with WordPress 7.0. = 1.1.41 = * Compatible with WordPress 6.6. = 1.1.40 = * Compatible with WordPress 6.5. * Removed tags: calendar, reservation, booking, hotel, room. == Upgrade Notice == = 1.2.05 = Major security and modernization release: adds cryptographic PayPal IPN verification, SQL/CSRF/privilege hardening, PHP 8+ and MySQL 8 compatibility fixes, and a refreshed admin and frontend UI.