Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/maikunari/hts-manager/archive/refs/heads/main.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
A comprehensive WordPress plugin for managing Harmonized Tariff Schedule (HTS) codes in WooCommerce with AI-powered classification and ShipStation integration.
🚀 Features
- AI-Powered Classification: Automatically generates HTS codes using Claude AI
- ShipStation Integration: Seamlessly exports codes for customs forms
- Dashboard Widget: Monitor classification status at a glance
- Bulk Operations: Classify multiple products simultaneously
- Auto-Generation: Codes generate automatically on product publish/update
- Confidence Tracking: View AI confidence levels for each classification
- Manual Override: Edit codes directly when needed
📦 Installation
- Download the
hts-managerfolder - Upload to
/wp-content/plugins/on your WordPress site - Activate through the WordPress Plugins menu
- Configure your API key at WooCommerce → HTS Manager
⚙️ Configuration
Required Setup
- Get an Anthropic API key from console.anthropic.com
- Enter the API key in WooCommerce → HTS Manager
- Save settings
Optional Settings
- Auto-Classification: Enable/disable automatic classification on product publish (default: enabled)
- Confidence Threshold: Set minimum confidence for auto-approval (default: 60%)
- Country of Origin: Default country for all products (default: Canada)
💡 Usage
For Individual Products
- Edit any product
- Go to "HTS Codes" tab
- Click "Auto-Generate with AI" or enter manually
- Save product
For Bulk Classification
- Go to Products list
- Select products without codes
- Choose "Generate HTS Codes" from Bulk Actions
- Apply
Monitoring Status
- Check dashboard widget for overview
- Green = 95%+ products classified
- Yellow = 80-94% classified
- Red = <80% classified
🚢 ShipStation Integration
The plugin automatically:
- Exports HTS codes with orders
- Formats codes for customs forms (removes dots)
- Includes country of origin
- Populates customs descriptions
No additional configuration needed - it just works!
💰 Costs
- API usage: ~$0.003 per product classification
- 1,000 products ≈ $3.00
- One-time classification for existing catalog
- Ongoing costs only for new products
🔧 Troubleshooting
Codes Not Generating
- Check API key is configured
- Verify auto-classification is enabled
- Check dashboard widget for pending items
- Look for admin notices after saving
ShipStation Not Showing Codes
- Ensure products have HTS codes in WordPress
- Force sync in ShipStation
- Check ShipStation customs settings
- Verify orders were placed after codes added
Low Confidence Classifications
- Review products flagged with <60% confidence
- These are usually still correct but worth checking
- Use "Regenerate" option if needed
📝 Requirements
- WordPress 5.8+
- WooCommerce 5.0+
- PHP 7.4+
- SSL certificate for API communications
🔒 Security
- All inputs sanitized and validated
- Nonce verification on all forms
- Capability checks for user permissions
- API key stored securely in WordPress options
- No customer data sent to AI service
📄 License
GPL v2 or later
👨💻 Developer
Created by Mike Sewell
🆘 Support
For issues or questions, please contact the developer.
Note: This plugin requires an Anthropic API key for AI features. Get one at console.anthropic.com