Solopress / Dock
Connect Solopress through Dock
Install the official plugin, enter the Tenant ID and keys, import and check mixed orders.
Guide source reviewed for PressFlow 2.0.5.
PressFlow 1.32.0 includes an optional compatibility connector for the separately installed Dock for WooCommerce plugin. It was checked against the supplied official plugin 1.2.11. This is a way to sell your own print alongside Dock products in one WooCommerce shop. It does not implement another Solopress order API or replace Dock's configurator.
Install and connect
Follow SUPPLIERS.md for the short walkthrough and connection troubleshooting. All normal connection fields, the test and the importer are now in PressFlow → Print suppliers → Solopress.
- Back up the shop and test on staging. Install PressFlow and the official Dock plugin separately. Keep both updated; PressFlow does not bundle or modify the official plugin.
- In Dock → Settings → Widget Integration, find the Tenant ID, Widget API key and Server secret. Enter them in the matching fields in the Solopress tab. The Tenant ID is the full account UUID, including its dashes.
- Configure Dock → Settings → Webhooks using the shop address shown in this tab and add its matching Webhook secret. Leave the advanced Hub address at its default unless Solopress tells you otherwise.
- Save the connection, run Test connection, then use Import / refresh Dock products. The test uses the official plugin's catalogue read and harmless order-credential probe; it does not create an order. Opening the tab performs no supplier request.
- Choose Keep mixed orders under my control before accepting mixed orders. Optionally choose Match my PressFlow colours. Save the shop settings. Both switches retain your existing choice and start off on a new installation.
- Review imported drafts, retail prices and margin, tax treatment, artwork and delivery before publishing. Agree a paid-order test procedure with Dock; the Processing submission trigger can incur supplier charges.
The connection form edits the official woocommerce_soloflo_hub_settings option and uses Dock's encryption for the separate server/webhook secret options. Blank key/secret fields retain saved values; fields supplied by server constants are read-only. Existing native order behaviour and unknown native settings are preserved. The original WooCommerce Dock integration screen remains available for advanced submission/status controls and uses the same saved connection. Its standalone import menu is hidden while PressFlow provides the supplier hub; the original import URL still works.
The official WooCommerce guide remains the provider reference. Account availability and prices need verification with Dock. The direct Solopress API is a different integration route and is not needed for this bridge.
One product, one configuration owner
A product with a saved Dock product ID (_soloflo_product_id) belongs to Dock. PressFlow does not render its configurator, move its description, provide an invented starting price, automatically apply a PressFlow offer, or include it in Quick Order. A previously saved PressFlow setup remains in the database but is inactive while the Dock mapping exists. The product list labels it Managed by Dock; Print setup provides a link to the normal WooCommerce editor instead of a second options editor. PressFlow setup saves and CSV price imports reject mapped products.
To convert a product to in-house printing, remove its Dock mapping in the WooCommerce product editor, then review its PressFlow setup, prices and availability. Existing baskets may need to be configured again. Historical orders retain their original supplier/configuration records; changing a product today does not convert an existing order. If Dock is disabled or an unsupported older version is installed, its mapped products cannot be bought through ordinary WooCommerce controls while PressFlow is active.
Customer journey
| Product | Configuration, price and artwork | Checkout | Production |
|---|---|---|---|
| In-house PressFlow | PressFlow configurator, saved jobs and artwork tools | WooCommerce | PressFlow production tools |
| Tradeprint through PressFlow | Its existing PressFlow supplier setup | WooCommerce | Existing Tradeprint job tools |
| Dock / Solopress | Official Dock product-page widget | WooCommerce | Official Dock order tools and Dock workspace |
| Ordinary WooCommerce | Normal product controls | WooCommerce | Your usual shop workflow |
Customers can put these different products in the same basket. Dock's plugin passes only its configured lines to Dock; PressFlow does not submit a second supplier order. Dock determines whether artwork is required during configuration or may follow later. Late or replacement Dock artwork is managed in Dock under the current official contract. It is not uploaded through PressFlow's private artwork portal.
PressFlow's graphical cards, quantity/date matrix, saved configurations, per-job proofing, production board and Quick Order currently apply to PressFlow-managed products. This connector does not import Dock lines as PressFlow production jobs or claim per-item supplier status when Dock supplies only aggregate order events. Dock provides its own widget and order panel.
Mixed-order protection
The official 1.2.11 plugin can map a Dock dispatch to WooCommerce Completed, a supplier cancellation to Cancelled, a supplier hold to On hold, and optionally production to its whole-order production status. Those statuses describe the entire WooCommerce order, including your other products.
With Keep mixed orders under my control enabled:
- Incoming Dock status mappings preserve the overall WooCommerce order status when the stored order has Dock and non-Dock product lines. This includes holds, cancellations and production updates, so the merchant decides how the supplier issue affects other items.
- Dock keeps its own event, job reference, artwork-check information and normal order notes. A note explains when a whole-order transition was suppressed.
- A previous plugin-created hold is not automatically released by a subsequent supplier recovery event on a mixed order. Staff must review and release the order themselves.
- Supplier dispatch reports are retained separately in an admin-only Mixed fulfilment panel on the WooCommerce order, with the relevant Dock line IDs/names. They are not pushed as a shipment for the whole mixed order into another tracking plugin.
- Dock-only orders retain the official plugin's normal status and tracking behaviour. Ordinary orders are unchanged. Switching the setting does not rewrite past order statuses or undo emails already sent.
You must review all items and manually update the whole order when appropriate. A Dock dispatch report can describe a partial dispatch; it does not prove every Dock item has shipped. Supplier cancellation/refund events do not create a customer refund in WooCommerce. Review customer refunds separately.
The connector does not disable Dock's initial submission checks. For example, the official plugin may hold a paid order if supplier order creation is rejected. Review that failure and use the official recovery tools. Submission defaults to the WooCommerce Processing status; changing a paid order to that status can submit to Dock and trigger charges to your supplier account. Agree a test procedure with Dock before exercising paid fulfilment.
Existing-order protection and its settings remain available during a PressFlow licence pause; this does not enable paused PressFlow ordering or production workflows. Dock remains a separately operated plugin.
Appearance and VAT
Optional colour matching maps the supported Dock --sp-* widget variables to your contrast-checked PressFlow front-end palette. It affects accent, accent text/hover, surfaces, text, border and radius. It leaves the official widget's fields, layout, logo, typography sizes and workflow under Dock's control. Turn it off to use Dock's own branding. Clear generated CSS/cache after changing appearance.
Dock's prices are not PressFlow engine prices. In supplied 1.2.11, its cart code sets the line to the quoted gross price and sets that cart product's tax status to none, retaining quoted net/VAT as supplier metadata. The connector deliberately does not reinterpret those amounts or change WooCommerce tax settings. Verify invoices, VAT display, exemptions and international selling with Dock and your accountant before customer use. PressFlow's VAT display switcher does not automatically control Dock's widget, and PressFlow automatic promotions are not extended to supplier prices. Test normal WooCommerce coupons with Dock separately rather than assuming a supplier margin change.
Cache and optimisation
Keep WooCommerce's normal cart, checkout, My Account, session and personalised-request exclusions. Follow Dock's own requirements for its remote widget assets and REST routes. In particular, never page-cache or redirect the official /wp-json/soloflo/v1/cart and /wp-json/soloflo/v1/status endpoints; confirm the exact routes in the installed version. Do not block the signed webhook behind a login page, challenge or cache. A firewall must preserve the raw body and X-Soloflo-Signature header. Keep WordPress cron working for the official reconcile process. Test script delay/defer/minification with the widget before enabling it for those pages.
Server acceptance test
Use a test procedure approved by Dock. The supplied plugin does not expose the Tradeprint Sandbox/Production switch; never infer that changing your PressFlow Tradeprint environment changes Dock's account or prevents charges.
- Verify the official connection test, saved credentials and signed webhook delivery.
- Open an imported draft preview: one Dock configurator, valid options, live retail prices and expected colours. Your own PressFlow and ordinary products should still use their usual pages.
- Configure a Dock product and a PressFlow product, with separate artwork, and check cart/checkout totals, VAT, delivery and discounts. Test classic and block cart/checkout if used on your site.
- Follow the agreed paid-order test. Confirm one supplier submission containing only Dock lines, no duplicated supplier order, and the correct delivery address and retail/production amounts.
- Test mixed-order production, hold, recovery, cancellation and partial dispatch: the whole WooCommerce status stays under merchant control, supplier notes remain visible, and supplier-only tracking appears in Mixed fulfilment. Review artwork-later and failed-preflight handling in Dock.
- Test a Dock-only order and a normal in-house order. Confirm their original status, artwork and tracking workflows remain intact.
- Disable Dock on staging: mapped products must not become ordinary unconfigured purchases. Re-enable and retest. Clear page/asset caches after deployment.
Developer reference
Source: includes/class-dock.php; settings option pfw_dock contains only booleans mixed_orders and match_colours. No provider credentials are copied into this option. Connection editing lives in class-dock-admin.php and templates/supplier-solopress.php, with the shared navigation in class-suppliers.php. The authenticated admin_post_pressflow_dock_connection action validates the account fields before writing native options. Keys are never put into notices, URLs or transients, and private keys remain encrypted using Dock’s Crypto implementation. The provided third-party source remains a reference outside the PressFlow release.
PFW_Config::dock_product($product)recognises the official mapping.PFW_Config::active()excludes such products independently of the optional status switch.PFW_Dock::lines($order)derives ownership from stored_soloflo_configJSON, not the product's present mapping. A line carrying both provider configuration and_pfw_snapshotis treated as needing mixed-order review.soloflo_status_to_wc_status($mapping, $order, $event)is Dock's existing filter. The connector runs atPHP_INT_MAX, before native status persistence. The official signed webhook and reconcile process still own validation and fetching. No additional REST route, anonymous event handler, API client, polling job, or submission action is registered. The supplier tab calls the official test-connection and sync REST routes only after a staff click.- The native recovery marker
_soloflo_on_hold_by_pluginis cleared only when it would otherwise resume a held mixed order after the filter. The held status is preserved for staff review. _pfw_dock_dispatchesis private WooCommerce order metadata: at most 20 distinct supplier tracking-number/URL pairs with optional expected date and receipt timestamp. It has no customer artwork URL, payment link or credential. It is displayed to authorisedmanage_woocommercestaff only and follows the parent order's retention/deletion policy. The provider's normal event notes remain in the order too.- Settings saves use an authenticated
admin_post_pressflow_dock_settingsaction,manage_woocommerceand apressflow_dock_settingsnonce. Order access uses WooCommerce CRUD for HPOS compatibility. - Styling uses only the vendor's documented CSS variables on
.soloflo-configurator solopress-configurator. The connector does not add credentials to widget attributes or override the native bridge.
Native internal names use Soloflo\\WooCommerce and _soloflo_* in Dock 1.2.11. These are required third-party API identifiers, not PressFlow branding. Future supplier changes require compatibility testing; detection of a newer plugin is not proof of full live compatibility.
Need a hand?
Contact the PressFlow team with details of what you are trying to do.