=== ShopFlow for asana === Contributors: Xplodman Tags: asana, woocommerce, order sync, task management, automation Requires at least: 5.6 Tested up to: 7.0 Requires PHP: 7.4 Stable tag: 1.0.1 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html Automatically sync WooCommerce orders to Asana tasks. Streamline your workflow by turning orders into actionable tasks. == Description == **ShopFlow for asana** seamlessly integrates WooCommerce with Asana, automatically creating tasks for new orders. Perfect for teams that want to manage WooCommerce orders directly in Asana. ### 🔥 Features: - **Automatic Task Creation** – New WooCommerce orders are automatically converted into Asana tasks. - **Order Details in Tasks** – Includes customer information, products, and order totals in the task description. - **Customizable Task Names** – Configure task names to include order ID, customer name, or other details. - **Error Logging** – Logs errors if sync fails and provides feedback in the WordPress admin. - **Dashboard Widget** – View sync statistics (successful/failed syncs) directly in the WordPress dashboard. ### 🛠️ Setup: 1. Install and activate the plugin. 2. Navigate to **WooCommerce → ShopFlow for asana**. 3. Enter your Asana API token and select the project where tasks should be created. 4. Configure optional settings (e.g., include customer info, product prices). 5. Start syncing orders to Asana! == Frequently Asked Questions == = How does the sync work? = When a new WooCommerce order is placed, the plugin creates a corresponding task in Asana. The task includes order details like customer name, products, and total price. = Can I customize the task name? = Yes! You can configure the task name to include the order ID, customer name, or other details. = What happens if the sync fails? = The plugin logs errors and displays them in the WordPress admin. You can retry syncing the order manually. = Does this plugin update Asana tasks when order status changes? = **Not currently.** The plugin only creates tasks for new orders. Updating tasks based on order status changes is planned for a future release. = Can I exclude certain orders from syncing? = Not yet, but this feature is planned for a future release. = Does this plugin support multiple Asana projects? = Currently, the plugin supports syncing to a single Asana project. Support for multiple projects is planned for a future release. == External Services == This plugin integrates with the Asana API to sync WooCommerce orders to Asana tasks. This allows users to manage their orders as tasks in Asana. **Data Sent to Asana:** - Order details (e.g., order ID, customer name, products, total price) are sent to Asana when an order status changes to "processing" or when manually synced. - The data is sent to Asana's servers via their API endpoint: `https://app.asana.com/api/1.0`. **Links:** - [Asana Terms of Service](https://asana.com/terms) - [Asana Privacy Policy](https://asana.com/privacy) == Changelog == = 1.0.1 = * Confirmed compatibility with WordPress 7.0. * Declared compatibility with WooCommerce High-Performance Order Storage (HPOS). * Added a Workspace setting, required for Asana accounts that belong to more than one workspace. Fixes the Project/Assignee dropdowns showing no options for such accounts, and fixes order sync failing silently in the same situation. * The Project and Assignee dropdowns now refresh live via AJAX when the Workspace selection changes, instead of only updating after saving the page. * Project, Assignee, and Workspace lists are now fetched across all pages from Asana, instead of only the first page. * Order sync errors now show the actual reason from Asana (e.g. an invalid token) instead of a single generic "Failed to sync order" message for every failure. * Fixed PHP warnings on order sync failure caused by an unguarded array access. * Fixed the order-sync meta key using the wrong plugin's prefix (a copy-paste leftover); orders already synced under the old key are still recognized via a compatibility fallback, so nothing needs to be re-synced. * Removed discouraged `load_plugin_textdomain()` call (translations are auto-loaded by WordPress.org since 4.6). * Added missing direct-file-access guards in `includes/helpers.php` and `includes/class-xsffa-orders-table.php`. = 1.0.0 = * Initial release. * Automatically sync WooCommerce orders to Asana tasks. * Include order details (customer info, products, total price) in task descriptions. * Dashboard widget for sync statistics. * Error logging and feedback in WordPress admin. == Upgrade Notice == = 1.0.1 = Compatibility update for WordPress 7.0 and WooCommerce HPOS, plus more reliable order sync error handling. Safe, non-breaking update. = 1.0.0 = Upgrade now to automate your WooCommerce order management with Asana. Turn orders into tasks effortlessly!