=== Order Tools for WooCommerce === Contributors: aisimpleplugin Tags: phone order, manual payment, local pickup, woocommerce email, order management Requires at least: 6.0 Tested up to: 6.9 Requires PHP: 8.0 WC tested up to: 10.7 Stable tag: 1.2.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Streamline your WooCommerce admin workflow: manage phone orders, assign users, handle manual payments, and send smarter notifications. == Description == **Order Tools for WooCommerce** enhances your store management workflow with tools built for store owners, managers, and support teams handling orders manually. == Features == - **Assign / Unassign Users Easily** Search for existing customers and attach them to an order — or switch to *Guest mode* instantly. - **Phone Order Gateway** Create orders manually and register phone sales directly from the admin. - **Admin Manual Payment Gateway** Allow administrators to process pending or on-hold orders securely through `/order-pay`. - **Custom Email Notifications** Customize subjects and notification flow for pending, completed, or pickup orders. - **Smart “Local Pickup” Email** Automatically notify customers when their pickup order is ready. - **Google Maps Links** Adds direct map links in admin order views and order listings. - **Customer Orders Quick Access** Quickly access all WooCommerce customer orders directly from the WordPress user profile page. - **Additional Admin Utilities** Includes a one-click “Empty Cart” button, a dedicated **Company column** in orders and user lists (with search support), SKU display in cart, and other workflow enhancements. == Order Security and Privacy == This plugin follows WooCommerce’s standard security practices: - Guest orders can be paid securely using the order key link sent by email. - Orders assigned to registered users require login before accessing the payment page. These safeguards ensure that personal data remains protected according to WooCommerce policies. == HPOS (High-Performance Order Storage) == Fully compatible with WooCommerce HPOS (custom order tables). All order interactions are handled through WooCommerce official APIs. == Installation == 1. Upload the plugin to `/wp-content/plugins/`. 2. Activate the plugin from WordPress. 3. Ensure WooCommerce is active. 4. Configure settings under **WooCommerce → Settings → Order Tools**. == Frequently Asked Questions == = Can I assign a user after the order is created? = Yes! You can search and assign existing customers directly from the order edit screen. = What happens when I click “Use as guest”? = The assigned user is removed, and the order switches to *Guest mode* while preserving billing details. = Can I manually trigger emails? = Yes — all custom email notifications appear under **WooCommerce → Settings → Emails**. = Is the plugin compatible with HPOS? = Yes, full compatibility is provided. == Screenshots == 1. Assign / unassign users directly from an order. 2. Confirmation popup for guest mode switching. 3. Custom email layout. 4. Phone order and manual payment configuration. 5. CC-email setup. 6. Additional tools settings panel. == Changelog == = 1.2.1 = * Improved: Admin redirect after checkout is now enabled by default to streamline backend order workflows. * Improved: Changed the default redirect destination to the created order page for faster admin access. = 1.2.0 = * Added: "View customer orders" button on user profile pages. * Fixed: Unified all classes under the `AISP_OTOOLS` namespace for better consistency across the plugin. * Fixed: Moved orphaned hooks into their appropriate classes. * Fixed: Removed duplicate `manage_users_columns` filter registration in the Other Tools settings. * Fixed: Corrected a syntax issue in the pickup email directions HTML output. * Fixed: Removed duplicate settings save handling in the Phone Order module, as `WC_Settings_Page` already manages it natively. * Fixed: Moved Safe Admin Checkout `init()` loading to the main plugin file for more reliable initialization. * Improved: Normalized all plugin files to LF line endings for better cross-platform consistency. * Fixed: Removed leftover debug `console.log` statements from `floating-panel.js`. * Improved: Clarified popup button labels in the Assign User interface to reduce confusion. * Removed: Post-payment redirect feature due to cart clearing issues after checkout. * Removed: Admin mode banner due to theme compatibility conflicts. * Removed: Frontend CSS loading on `order-pay` and `order-received` pages for improved theme compatibility. * Removed: Unused legacy files related to frontend asset loading and order page UI handling. = 1.1.0 = * New: Added native WooCommerce duplicate order on on-hold and process order = 1.0.0 = * Initial public release. == Upgrade Notice == = 1.2.0 = This update adds quick access to customer orders from WordPress user profiles, improves plugin stability and initialization, and enhances overall WooCommerce theme compatibility. No action required. = 1.0.0 = First release. == License == GPLv2 or later