=== SkyHS - Sell Domain, Cpanel Hosting and Subscription using WooCommerce ===
Contributors: siteskyline
Tags: hosting, woocommerce, domain, whm, cpanel
Requires at least: 6.9
Tested up to: 6.9
Stable tag: 1.0.3
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

A comprehensive web hosting management and domain registration solution for WordPress using WooCommerce.

== Description ==

A comprehensive web hosting management solution for WordPress, built on top of WooCommerce. It provides a complete system for selling, managing, and supporting hosting plans and domain registrations through WordPress with built-in subscription management.

== Features ==

### Hosting Management
* **WHM/cPanel Integration:** Automatically provision, suspend, and manage hosting accounts directly through WHM/cPanel.
* **Server Management:** Easily define and manage multiple servers.
* **Automated Suspension:** Automatically suspend or unsuspend hosting accounts based on customer payment status.

### Domain Registration & Management
* **eNom Integration:** Native API integration for real-time domain registration and transfers.
* **Domain Sync:** Automated domain synchronization with local caching and paginated owner lookup.
* **Domain Search:** Built-in domain availability checker so customers can find their perfect domain before purchasing.
* **Public Domain Lookup:** Allow non-logged-in users to check domain availability before signing up.
* **Domain Transfer:** Allow customers to transfer existing domains from other registrars with EPP authorization code support. Transfer includes 1-year renewal.
* **DNS Management:** Empower customers to manage their DNS records directly from their dashboard.

### Built-in Subscription & Billing Engine
* **No Extra Plugins Needed:** Includes a fully independent recurring billing system—no need for expensive third-party subscription plugins.
* **Flexible Renewals:** Allow customers to pay invoices manually, renew plans early, or disable auto-payment from their dashboard.
* **Smart Payment Retries:** Automatically retry failed subscription payments using customizable retry rules.
* **Subscription Switching:** Let customers upgrade or downgrade their hosting plans with full grouped product support and automatic proration.
* **Coupons & Free Trials:** Support for recurring discounts and packages with a zero-dollar initial setup fee.
* **Drip Downloads:** Schedule downloadable content delivery over time with configurable drip settings.

### Seamless WooCommerce Integration
* **Custom Product Types:** Sell hosting packages and domains like any standard WooCommerce product.
* **Product Management UI:** Dedicated interface to manage hosting products with add, edit, and delete functionality.
* **Optimized Checkout:** Custom cart and checkout experiences tailored specifically for domains and recurring subscriptions.
* **Flexible Payment Gateways:** Let customers change their payment methods mid-subscription, including PayPal handler support.
* **Role Management:** Granular role-based access control with a dedicated settings panel.

### Advanced Client Portal
* **Dedicated Client Dashboard:** A redesigned, modern dashboard with enhanced status indicators, grid layout, icon-based navigation, and dynamic header titles for clients to manage their hosting and domains.
* **Guest Dashboard Access:** Configurable guest access with custom welcome branding and navigation UI for pre-registration users.
* **WooCommerce Account Integration:** Seamlessly adds hosting and domain management panels into the standard WooCommerce "My Account" area.
* **Account Collaborators:** Allow account owners to grant secure access to their team members or web developers without sharing passwords.
* **Customizable Branding:** Set your own dashboard logo, site name, and welcome branding to match your brand identity.

== Installation ==

1. Upload the plugin folder to the /wp-content/plugins/ directory.
2. Activate the plugin through the 'Plugins' menu in WordPress.
3. Configure the plugin settings under the Hosting Solution menu.

== External services ==

This plugin connects to eNom (www.enom.com) to provide domain registration and management services.

* **What is sent:** When registering or managing a domain, your account credentials and the domain contact information are sent to eNom.
* **Why it's used:** This service is required for the core functionality of the plugin: domain search, registration, and DNS management.
* **Conditions:** The data is processed according to eNom's terms and conditions and privacy policy.

This service is provided by "eNom":
* [eNom Terms and Conditions](https://www.enom.com/reseller/legal-policy-agreements/certified-reseller-terms-and-conditions/)
* [eNom Privacy Policy](https://www.enom.com/reseller/legal-policy-agreements/privacy-policy/)

== Screenshots ==

1. **Admin Dashboard:** A central hub providing a quick overview of servers, hosting accounts, and registered domains.
2. **Hosting Account List:** Manage all customer hosting accounts, including subscription status and linked domains.
3. **Server Management:** A list of all connected WHM servers within the WordPress admin.
4. **Domain Management:** A comprehensive list of all registered domains and their active status.
5. **eNom Settings:** Configure nameservers, API credentials, and pricing markups for domain registrations.
6. **General Settings:** Configure core plugin options including Test Mode and the Client Dashboard page.
7. **Billing Settings:** Manage grace periods, renewal reminders, and failed payment thresholds.
8. **Email Notifications:** Toggle various automated customer emails for provisioning, suspension, and renewals.
9. **Invoice Settings:** Customize company details and footer text for generated invoices.
10. **Email Templates:** A full HTML editor for customizing the look and feel of automated system emails.
11. **Export Tool:** Export all plugin data (Users, Servers, Orders, Subscriptions) to a UUID-based JSON file.
12. **Import Tool:** Seamlessly migrate data from another SkyHS installation using the import utility.
13. **Guest Welcome Page:** A custom welcome screen for non-logged-in users with direct navigation to hosting plans and domain searches.
14. **Hosting Plans List:** Displays all configured monthly and yearly hosting plans to prospective customers.
15. **Hosting Plan Detail:** Detailed card view of individual hosting plans showing pricing and key features.
16. **Client Dashboard Overview:** The modern front-end dashboard homepage where authenticated clients see an overview of their active services.
17. **Client Hosting Accounts:** A dedicated panel for clients to manage their purchased hosting plans and access support/control options.
18. **Client Domains List:** Allows clients to view their registered domains and manage DNS settings.
19. **Register New Domain:** A real-time search interface for clients to search and check domain availability.
20. **Transfer Domain:** An interface for customers to initiate domain transfers from other registrars using EPP codes.
21. **Client Subscription Management:** A detailed dashboard view for clients to manage their recurring hosting and domain subscriptions.
22. **Admin Subscription List:** A central admin view for store managers to monitor and manage all recurring subscriptions.


== Changelog ==

= 1.0.3 =
* Domain Transfer feature — customers can now transfer existing domains from other registrars directly from their dashboard
* Redesigned client hosting dashboard with enhanced status indicators, grid layout, icon-based navigation, and dynamic header titles
* Customizable branding settings for dashboard logo, site name, and welcome branding
* Guest dashboard access with custom welcome branding and navigation UI for pre-registration users
* Public domain availability lookup — non-logged-in users can check domain availability before signing up
* Product management UI with dedicated add, edit, and delete functionality
* Optimized checkout flow with add-to-cart redirects to checkout
* Improved subscription card UI and layout management
* Various bug fixes and performance enhancements

= 1.0.2 =
* Subscription switching with grouped product support, configuration settings, and frontend toggle buttons
* Early renewal functionality with dedicated settings and management
* Manual renewal and disable auto-payment options on the client dashboard
* PayPal payment method change handler
* Drip downloads, zero initial payment, and independent subscription processing settings
* Role Manager tab in settings with refined dashboard access capabilities
* Security improvements with input sanitization and WordPress coding standard compliance
* Various bug fixes and performance enhancements

= 1.0.1 =
* Streamlined admin experience with custom Server and Product management screens
* Edit hosting products directly from a dedicated interface
* Automated review reminders and quick plugin rating links
* New hosting manager interface with broader subscription product compatibility
* Centralized domain management page with AJAX-powered real-time registration
* Enom domain sync module with local caching for faster domain lookups
* Pagination and automated owner lookup on synced domains
* Overall performance improvements and sanitization enhancements

= 1.0.0 =
* Initial release
