Developer reference
Developer integration: start with the supported boundaries
Extend presentation and connect workflows while retaining validated pricing and private job access.
Guide source reviewed for PressFlow 2.0.5.
PressFlow extends WooCommerce products and order items with validated print configurations, private artwork, quotes and production records. Start with the hook reference, supported shortcodes and appearance tokens. Treat class methods and storage layouts as version-bound internals unless a contract is explicitly documented.
Use the commerce boundaries
One basket item represents one complete print job. Copies, width, height, sides and finishing are configuration values inside it. The server recalculates and validates a live job before purchase. Preserve current-configuration hashes, company context and quote-specific commercial snapshots. Do not set a managed product's nominal WooCommerce price and assume it prices every specification.
WooCommerce owns taxes, shipping, gateways, coupons and order totals. A browser VAT display preference never changes those calculations. Use WooCommerce CRUD for orders/products so HPOS and legacy storage remain compatible. A paid status is not a substitute for recorded company receipts or required financial/artwork clearance.
Keep private data private
Product access, company membership, job ownership, guest tokens, revision checks, nonces and feature/licence gates remain server-side. A signed-in user is not automatically authorised for another company's files. Public Media Library URLs are unsuitable for confidential print artwork. Never expose supplier costs, private cost assumptions, access tokens or account balances in public configuration payloads.
Compose the product and checkout
Use one configurator placement and one main product-description placement. Theme/builders can own page content while PressFlow owns print choices. The optional print checkout uses native WooCommerce forms and published Blocks extension contracts; build beside those controls rather than replacing gateway fields or depending on a particular metadata wrapper tag.
Dock retains its own configuration, artwork and fulfilment flow. Tradeprint mapped products have supplier freshness, environment and submission gates. Canva is a separate authorised export route, not a bundled account or a guarantee of press-ready colour output.
Test the extension
Test the installed theme, classic/Blocks checkout, HPOS/legacy storage, currency/tax basis, zero-rated/exempt customers, concurrent updates, stale responses and private cached pages. Use real external accounts in the appropriate test environments. The server acceptance guide contains the relevant workflows.
Example files
Reference examples for adapting to your shop. PHP examples are not plugin installers; review the guide and replace sample IDs before using them.
Need a hand?
Contact the PressFlow team with details of what you are trying to do.