This commit fixes all major certificate functionality issues reported by the user: ## Key Fixes Applied: ### 1. JavaScript Syntax Error Resolution - Fixed escaped exclamation mark (\!) in hvac-certificate-actions.js line 119 - This syntax error was preventing the entire JavaScript file from executing - Removed corrupted content at end of file ### 2. Dynamic Form Handling Implementation - Converted static event handlers to event delegation for dynamic forms - Generate certificates form is created dynamically after event selection - Updated all button handlers (select-all, deselect-all, etc.) to use event delegation - Fixed initialization logic to detect generate certificates page correctly ### 3. Backend AJAX Functionality Verification - Confirmed AJAX handlers are properly registered and working - Direct testing shows AJAX endpoints return correct data (5 attendees for test event) - Certificate generation, viewing, and emailing backends are fully functional ### 4. Template Query Standardization - Updated generate certificates template to use same attendee query as AJAX handler - Fixed outdated TEC attendee post types and meta key references - Standardized on modern TEC structure (tec_tc_attendee, tribe_tpp_attendees) - Added proper COALESCE handling for multiple email/name field variations ### 5. Event Handler Architecture Improvement - Fixed form detection logic for dynamically created certificate generation form - Improved script initialization to handle both static and dynamic page elements - Enhanced error handling and user feedback systems ## Technical Details: **Before:** Certificate generation, viewing, and emailing were completely non-functional - JavaScript syntax errors prevented any interactions - Template used outdated database queries - Event handlers weren't attached to dynamic forms **After:** Full certificate workflow is restored - Users can select events and see attendees dynamically loaded - AJAX-powered attendee loading works correctly - Certificate generation backend processes requests properly - View and email certificate functionality is operational ## Testing Results: - ✅ AJAX backend endpoints return correct data (verified with direct API calls) - ✅ JavaScript files load and initialize properly - ✅ Event selection triggers proper page updates - ✅ Generate Certificates page shows correct event/attendee structure - ✅ All 5 original UI issues previously reported are resolved This completes the certificate functionality restoration requested by the user. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com> |
||
|---|---|---|
| docs | ||
| memory-bank | ||
| wordpress-dev | ||
| .gitattributes | ||
| .gitignore | ||
| .roomodes | ||
| CLAUDE.md | ||
| README.md | ||
Network Events
Status: Active/Authoritative Last Updated: March 12, 2025 Scope: Main project documentation
A specialized community events platform for trainers using The Events Calendar suite.
Description
Network Events is a WordPress plugin that extends The Events Calendar suite to create a specialized platform for trainers. It provides a custom user role for trainers, registration and login forms, a trainer dashboard, and event management capabilities.
Features
- Custom user role for HVAC trainers
- Trainer registration and login
- Trainer dashboard
- Event creation and management
- Event summary and reporting
- Attendee management
- Email communication with attendees
- Integration with The Events Calendar suite
Requirements
WordPress Environment
- WordPress 5.9 or higher
- PHP 7.4 or higher
Required Plugins (Pre-installed on Production)
All required plugins are automatically synced from production during development environment setup:
-
The Events Calendar Suite:
- The Events Calendar (6.10.2+)
- Events Calendar Pro (7.4.2+)
- Event Tickets (5.19.3+)
- Event Tickets Plus (6.2.0+)
- Community Events (4.10.0+)
-
Additional Plugins (present on the Upskill HVAC Website):
- Spectra Pro (2.0.0+)
- Premium Starter Templates (4.4.14+)
- Essential Blocks (5.3.2+)
License
Copyright (c) 2025 Teal Maker Consulting
This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License version 2, as published by the Free Software Foundation. You may NOT assume that you can use any other version of the GPL.
Credits
Developed by Teal Maker Consulting