Download the PHP package pickhero/craft-commerce without Composer
On this page you can find all versions of the php package pickhero/craft-commerce. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download pickhero/craft-commerce
More information about pickhero/craft-commerce
Files in pickhero/craft-commerce
Package craft-commerce
Short Description Connect your Craft Commerce store to PickHero WMS for streamlined warehouse management and order fulfillment.
License MIT
Informations about the package craft-commerce
Commerce PickHero
Connect your Craft Commerce store to PickHero WMS (Warehouse Management System) for streamlined order fulfillment and inventory management.
Features
- Order Synchronization: Automatically submit orders to PickHero when they reach specific statuses
- Order Processing: Trigger stock allocation and picklist generation in PickHero
- Webhook Integration: Receive shipment notifications from PickHero to update order status
- Stock Import: Console command for bulk stock synchronization
Requirements
- Craft CMS 4.0+ or 5.0+
- Craft Commerce 4.0+ or 5.0+
- PHP 8.2+
- A PickHero account with API access
Installation
- Add the plugin to your project's composer requirements
- Run
composer install - Install the plugin via
./craft plugin/install commerce-pickhero
Configuration
API Connection
Configure the plugin in your Craft admin panel under PickHero → Settings, or add a config file at config/commerce-pickhero.php:
Environment Variables
Add these to your .env file:
Usage
Automatic Order Sync
Configure which order statuses should trigger synchronization:
- Submit on Status Change: Orders are created in PickHero
- Process on Status Change: Orders are processed (stock allocated, picklist created)
Manual Order Actions
Users with the "Manually submit orders to PickHero" permission can:
- Submit orders to PickHero from the order edit screen
- Trigger order processing manually
Product Export (Craft → PickHero)
Export your Craft Commerce products to PickHero:
Options:
--limit=N: Process maximum N products--offset=N: Skip first N products--only-new: Only create products that don't exist in PickHero--update: Update existing products in PickHero--dry-run: Show what would be done without making changes--debug: Stop on first error
Examples:
Stock Import (PickHero → Craft)
Import stock levels from PickHero to update your Craft Commerce inventory:
Options:
--limit=N: Process maximum N products--offset=N: Skip first N products--debug: Stop on first error
Webhook Setup
- Enable "Sync Order Status" in the plugin settings
- Click "Register" next to the webhook status
- Configure status mapping to update Craft order status when shipments are created
Events
The plugin provides several events to customize data before it's sent to PickHero. Register these in your module's init() method or in a custom plugin.
Modify Order Payload
Modify the complete order payload before submission, including adding custom fields:
Modify Order Line Items
Filter or modify which line items are sent to PickHero:
Transform Address
Modify address data before sending to PickHero (useful for custom address fields):
Available address types: AddressEvent::TYPE_DELIVERY, AddressEvent::TYPE_INVOICE, AddressEvent::TYPE_CUSTOMER
Configuration Reference
All available settings for config/commerce-pickhero.php:
Troubleshooting
Orders not syncing
- Verify
pushOrdersis enabled in settings - Check that the order status matches one in
orderStatusToPush - Review the PickHero log in Utilities → Logs → PickHero
Products not found
Enable createMissingProducts to automatically create products, or export products first:
Webhook not receiving updates
- Ensure your site is publicly accessible (webhooks won't work on localhost)
- Check webhook registration status in plugin settings
- Verify the webhook secret matches in PickHero dashboard
Permissions
The plugin adds the following permissions:
- Manually submit orders to PickHero: Allows users to submit/resubmit orders from the order edit screen
Documentation
For full documentation, visit pickhero.nl/docs/craft-commerce.
Support
For support, please contact PickHero.
All versions of craft-commerce with dependencies
craftcms/cms Version ^5.0.0
craftcms/commerce Version ^5.0.0
guzzlehttp/guzzle Version ^7.0