COCO TABLE BOOKING REPORTS - INSTALLATION GUIDE ================================================ QUICK START ----------- 1. Upload the entire 'coco-table-reports' folder to your WordPress plugins directory: /wp-content/plugins/ 2. In WordPress admin, go to: Plugins → Installed Plugins 3. Find "Coco Table Booking Reports" and click "Activate" 4. Done! The plugin will automatically: - Schedule daily reports at 7 PM - Add "Table Reports" to your admin menu VERIFY INSTALLATION ------------------- ✓ Check admin menu: You should see "Table Reports" in the left sidebar ✓ Visit the page: Select an upcoming event from the dropdown ✓ Load bookings: Click "Load Table Bookings" to test the functionality CONFIGURE EMAIL RECIPIENT -------------------------- To change who receives the automated reports: 1. Open: coco-table-reports/coco-table-reports.php 2. Find line 22: private $report_email = 'updates@cococure.com'; 3. Change to your email: private $report_email = 'your-email@example.com'; 4. Save the file TEST THE AUTOMATED REPORT -------------------------- Option 1 - Wait for 7 PM: The plugin will automatically send reports for events starting 3 hours later (10 PM onwards) Option 2 - Trigger Manually: Install the "WP Crontrol" plugin and manually run the "coco_pre_event_table_report" cron job WHAT THE PLUGIN DOES -------------------- ✓ Sends email reports at 7 PM for events starting in 3 hours ✓ Shows all table bookings (tickets ≥ £100) ✓ Displays customer names, ticket details, amounts paid ✓ Calculates gender breakdown (males/females) ✓ Provides admin dashboard to view any upcoming event ✓ Exports data to CSV REQUIREMENTS ------------ • WordPress 5.0+ • PHP 7.0+ • WooCommerce (active) • The Events Calendar (active) • Event Tickets or Event Tickets Plus (active) TROUBLESHOOTING --------------- Problem: Admin page shows "No events" Solution: Check that you have upcoming events in The Events Calendar Problem: "No bookings found" Solution: - Verify tickets are priced ≥ £100 - Check order status is "Completed" or "Processing" - Ensure tickets are linked to the event via Event Tickets Problem: Email not sending Solution: - Check WordPress cron is working (use WP Crontrol plugin) - Test email delivery with WP Mail Test plugin - Check PHP error logs Problem: Gender counts showing as 0 Solution: - Install Table Booking Manager plugin for accurate counts - Or ensure ticket names contain "Gents"/"Ladies" keywords NEED HELP? ---------- Check the README.md file for detailed documentation.