WooCommerce / Kunaki Integration
Wordpress plugin to allow customers to order from Kunaki within Woocommerce
by DSI · github.com/michaelspatrick/woocommerce-kunaki · website
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/michaelspatrick/woocommerce-kunaki/archive/refs/heads/main.zipA WordPress plugin that integrates WooCommerce with Kunaki.com to automatically fulfill physical media orders (like DVDs) when a customer places an order.
Features
- Automatically sends Kunaki product orders upon successful WooCommerce purchase
- Adds a custom "Kunaki Product ID" field to WooCommerce products
- Maps WooCommerce shipping info to Kunaki order API
- Supports multiple Kunaki products per order
- Admin panel for API credentials and testing
- Logging for debugging order processing
Requirements
- WordPress 5.0+
- WooCommerce 4.0+
- PHP 7.2+
- cURL enabled
- Kunaki.com publisher account
Installation
- Upload the plugin folder to
/wp-content/plugins/woocommerce-kunaki/ - Activate the plugin through the Plugins menu in WordPress
- Navigate to WooCommerce > Kunaki Settings
- Enter your Kunaki Publisher ID and other settings
Configuration
-
Assign Kunaki Product ID
Edit each WooCommerce product and set the Kunaki Product ID in the new custom field provided. -
Enable Auto Fulfillment
Under Kunaki settings, check “Enable Automatic Fulfillment” to start sending orders to Kunaki when WooCommerce marks them as completed. -
Shipping Mapping
Kunaki shipping is automatically handled based on the WooCommerce customer shipping address. You can customize or override mappings inshipping.php.
Order Processing
When a WooCommerce order contains one or more products linked to Kunaki Product IDs, the plugin will:
- Build a Kunaki XML order
- Submit it using the API endpoint
- Log the response for debugging
- Update the WooCommerce order notes with confirmation or error messages
Logging
Logs are stored in wp-content/uploads/kunaki-log.txt. Enable or disable logging from the admin panel.
Development
Main plugin entry: woocommerce-kunaki.php
Other modules:
kunaki-admin.php– Settings pagekunaki.lib.php– Core Kunaki API functionscustom-fields.php– Adds Kunaki product fields to WooCommerce productsprocess-order.php– Handles order submission logicshipping.php– Address translation functionsadd-product-column.php– Adds Kunaki ID column to product list
Roadmap
- Add test mode with mock API
- Track Kunaki shipment status in WooCommerce
- Add order retry on failure
Disclaimer
This plugin is not officially affiliated with or endorsed by Kunaki.com. Use at your own risk.
License
MIT License
Author
Developed by Michael Patrick.