Skip to content

v2.0.0 — Host Ownership Custom Details & Conditional Fields

Latest

Choose a tag to compare

@rahulkcreation rahulkcreation released this 11 Jun 22:46
· 4 commits to main since this release

🚀 What's New

  • Host Detail Dropdown Selection: Admins can now explicitly assign property ownership directly from the property creation/editing form:
    • Admin Ownership: Default option, assigning the logged-in admin's ID as the host_id.
    • Existing Host Ownership: Retains existing host ID in edit mode for non-admin hosts.
    • NULL Ownership (Unregistered/Custom Host): Disables host association (host_id set to NULL) and opens fields to capture details manually.
  • Conditional Host Contact Fields: Choosing NULL dynamically renders two new required input fields:
    • Host Email (validated for correct email formatting)
    • Host Mobile Number
  • Dynamic Dashboard Display: If a property has no associated host_id (NULL), the property management dashboard card displays the Host Mobile Number in place of the Host username.

🛠️ Technical Details & Refactoring

  • Database Updates: Altered schema to add host_email and host_mobile_number columns.
  • AJAX Hook Integrations: Enhanced creation, update, and autosave AJAX endpoints to extract, validate, and persist the custom host credentials.
  • Asset Optimization: Ensured complete synchronization of templates, JS scripts, and PHP hooks across standard and minified paths in minify-version/.