6.3.2
Pre-release
Pre-release
feat: New license renewal workflow and enhanced templates
Features
- New License Renewal Workflow:
- Tracks historical orders and updates the
associated_orders
column for licenses. - Ensures seamless handling of WooCommerce order IDs during renewals.
- Tracks historical orders and updates the
- Enhanced Templates:
- Added templates for license management, including:
- Renewal pages.
- License product suggestions for empty carts.
- Added templates for license management, including:
Improvements
- License Creation Enhancements:
- Refactored
wc_slm_create_new_license
to manage:- Expiration dates.
- Logging.
- Associated orders for traceability.
- Refactored
- Database Updates:
- Added missing columns (e.g.,
associated_orders
) with proper schema management. - Ensured backward compatibility and smoother upgrades.
- Added missing columns (e.g.,
- Utility Functions:
- Enhanced
SLM_Utility::slm_get_associated_orders
to retrieve well-formatted data for associated orders.
- Enhanced
Fixes
- Metadata Dependency:
- Replaced
_slm_lic_key
usage with database lookups to improve accuracy and reliability.
- Replaced
- Database Versioning:
- Fixed database version handling logic to ensure schema updates are properly applied.
Templates
- License Cart Template:
- Displays suggested license products when the cart is empty.
- Dynamically handles renewal messages and new license purchases.
Notes
- The new renewal workflow improves traceability by appending historical orders to the
associated_orders
column. - Templates integrate seamlessly with WooCommerce workflows, providing a consistent and user-friendly experience.