Skip to content

6.3.2

Pre-release
Pre-release
Compare
Choose a tag to compare
@michelve michelve released this 25 Nov 20:05
· 7 commits to master since this 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.
  • Enhanced Templates:
    • Added templates for license management, including:
      • Renewal pages.
      • License product suggestions for empty carts.

Improvements

  • License Creation Enhancements:
    • Refactored wc_slm_create_new_license to manage:
      • Expiration dates.
      • Logging.
      • Associated orders for traceability.
  • Database Updates:
    • Added missing columns (e.g., associated_orders) with proper schema management.
    • Ensured backward compatibility and smoother upgrades.
  • Utility Functions:
    • Enhanced SLM_Utility::slm_get_associated_orders to retrieve well-formatted data for associated orders.

Fixes

  • Metadata Dependency:
    • Replaced _slm_lic_key usage with database lookups to improve accuracy and reliability.
  • 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.