=== NCM API === Contributors: nepalcangroup Tags: woocommerce, shipping, courier, delivery Requires at least: 6.5 Tested up to: 6.8 Requires PHP: 7.4 Stable tag: 1.1.0 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Connect WooCommerce orders with Nepal Can Move and manage delivery operations directly from WordPress. == Description == NCM API lets store operators create Nepal Can Move delivery orders from WooCommerce, sync NCM order details back into WordPress, manage comments and tickets, and receive webhook-driven delivery status updates. Features in this release: * Development and production environment switching with environment-specific API tokens * Assigned branch cache and destination branch selection * Manual and automatic order creation from WooCommerce orders * Refresh of NCM details, statuses, and comments * NCM comment creation from the WooCommerce order screen * Vendor ticket and COD transfer ticket management from a dedicated Tickets page * Webhook registration and test actions * Scheduled background sync for linked orders * One-time migration path for existing NCM API installs using the legacy token and order-link meta keys == Installation == 1. Upload the plugin to `/wp-content/plugins/`. 2. Activate the plugin through the Plugins screen in WordPress. 3. Ensure WooCommerce is active. 4. Go to NCM API > Settings and choose the environment you want to use. 5. Enter the API token for that environment. 6. Choose your default pickup branch and save settings. = Will existing NCM API installs upgrade safely? = Version 1.1.0 includes a one-time migration that imports the legacy `api_token` option and old order meta such as `vendor_id` and `branchname` into the new structure. == Frequently Asked Questions == = Does this change WooCommerce order statuses automatically? = No. NCM status updates are stored for reference only in this version. = Does the plugin prevent duplicate NCM orders? = The plugin prevents duplicate creation for orders that are already linked to an NCM order in WordPress. = Can I reply to tickets from WordPress? = You can add internal ticket responses in WordPress for your team. The current NCM API documentation does not expose a ticket-reply endpoint, so those responses are not pushed back to NCM. == Upgrade Notice == = 1.1.0 = This release replaces the legacy NCM API implementation with a new WooCommerce-focused architecture. Existing token and core order-link metadata are migrated automatically on first load. == Changelog == = 1.1.0 = * Rebuilt the plugin architecture for current WordPress and WooCommerce versions. * Added environment switching, ticket management, webhook tooling, HPOS support, and legacy upgrade migration.