Skip to content

Customer ordering

Use the print basket and checkout

Manage exact-job artwork, specifications, edit and duplicate actions in classic and Blocks flows.

PressFlow 3.0.0 · 5 min read

Guide source reviewed for PressFlow 2.0.5.

PressFlow adds a print-focused layout to the existing WooCommerce basket and checkout. No new pages or checkout shortcode are required. It works with WooCommerce Cart/ Checkout Blocks and the classic cart/checkout shortcodes.

Turn it on or off

Open PressFlow settings → Features & integrations → Shopping tools and use Print basket & checkout. It is enabled by default. Switch it off to restore the previous presentation. Your pages, products, jobs, orders and settings remain. The layout activates when the current basket contains a PressFlow-configured job, including supported Tradeprint imports. Ordinary products retain native quantities and metadata. Dock-owned products keep their own integration; a Dock-only basket does not activate PressFlow job cards.

The design uses your frontend colours from PressFlow settings → Appearance, including the readable text colour for primary actions. Purge static/page caches after installing the new ZIP. Custom theme/builder checkout templates can require their own styling adjustments; test your actual checkout and gateway combination.

Basket

  • Clear print-order heading, progress indicator and current artwork reminder.
  • Card-style product rows with the complete-job price and actual copy count.
  • Folded specifications, including stock, finishes, production speed and estimated dispatch. Open View print specification to inspect every saved choice.
  • A per-job artwork action opens the existing private popup. Direct Edit print options and Duplicate job links sit beside it on each basket job.
  • The fixed native quantity box is hidden for print jobs; their actual copy count remains visible. Ordinary products keep their usual editable quantities.
  • WooCommerce still controls remove/undo, ordinary quantities, discount codes, delivery, taxes, totals and the checkout action.

One print basket line means one complete print job. The number of printed copies is inside that job; it must not multiply the job price again. Use Edit print options to change copies rather than changing the native basket quantity.

Checkout

Review your print jobs sits above the native checkout. Each job has its own thumbnail, copies, job reference where supplied, subtotal, artwork action and direct edit/duplicate links. Expand the specification without leaving checkout.

The narrow order summary stays compact: it retains product identity, the print-job count, other extensions' metadata and artwork status. The full PressFlow choices are in the review cards above. This avoids repeating a long specification in the sidebar. Billing/contact, delivery, gateway fields, terms and Place order remain native controls.

Job cards show WooCommerce's calculated line subtotals and line tax using the cart tax display setting. They do not read a restored nominal catalogue price. If calculated line amounts are unavailable, the card says Calculated in order summary until the normal checkout has established those amounts. Basket discounts, delivery and taxes are resolved in WooCommerce's order summary. The catalogue VAT preference does not rewrite checkout totals. Estimates and artwork provided badges do not mean a printer has approved artwork or guaranteed dispatch. Existing financial approvals, pay-on-account, PO and proof requirements still apply.

Artwork and updates

Artwork opens in the existing popup outside the payment form. Save selected artwork before ordering; an unsaved selection continues to block checkout through the existing guard. Missing artwork can be supplied later through My Account where the normal workflow permits. Tradeprint's upload-only and file-format policies are preserved.

Blocks refresh the print review from a namespaced Store API cart extension. Classic checkout refreshes from a session-nonce-protected read endpoint. Saving artwork also refreshes the review. Older responses are ignored; open specifications are retained and native address/payment fields are never replaced by the print-review script. A failed refresh offers Retry print review. Refresh the whole page if the basket session changed. Without JavaScript, scalar classic specifications and native checkout remain available; Blocks normally require JavaScript and artwork management has its existing upload-later guidance.

Before taking orders

On your server, test both the installed page layout and real gateway in test mode. Include two different jobs of the same product, a mixed basket, coupons, shipping/ collection, tax-exempt customers and both cart tax display settings. Check that job subtotals and native totals agree before/after discounts. Try uploading/replacing artwork, editing/removing jobs, a phone, keyboard navigation and any company account gateway/PO fields. Exclude basket, checkout, session requests and AJAX from public caches. Do not cache Store API cart responses or delay scripts needed for checkout.

Automated release checks use the actual PressFlow renderer/scripts and isolated WooCommerce contract/DOM fixtures. They are not an installed WooCommerce/theme or live payment-provider acceptance certificate.

Developers

The existing woocommerce_get_item_data filter preserves incoming extension metadata. PressFlow labels its own Store API rows with scalar raw_key and className values. The separate pressflow_order_review CartSchema extension returns has_print, cart_html and checkout_html for the current authorised basket. No cost metadata, artwork bytes, download tokens or credentials are included. Do not publicly cache it.

The print script owns its sibling review mount and a small control container appended to each recognised basket job. It does not reparent or replace WooCommerce's existing form or React children. Rich controls come from inert templates in cart_html, matched to an opaque hash of the exact basket key. Native metadata stays as separate scalar fields: initial page preloading and later Store API requests follow the same contract. Both span and list metadata wrappers are supported. If a custom renderer cannot be recognised, the readable native fields and artwork fallback remain. The published cartItemClass filter adds a class while retaining existing classes. Native HTML and payment controls stay with WooCommerce. Scoped CSS may be extended through .pfw-print-flow, .pfw-checkout-review and .pfw-print-review-job. The layout uses the existing --pfw-* presentation tokens. Request actions are not mutation APIs.

Internal coordination events pressflow:cart-artwork-saved and pressflow:order-review-updated refresh display only; neither authorises an upload, financial approval, price change or purchase.

Primary API references: WooCommerce cart line filters and namespaced Store API data.

PressFlow basket with separate print jobs, artwork actions and expandable specifications
Illustrative PressFlow screen with sample data.
PressFlow checkout on a narrow screen
Illustrative PressFlow screen with sample data.

Need a hand?

Contact the PressFlow team with details of what you are trying to do.