Company portals
Set up company approvals and account credit
Configure company purchasing, financial review, account credit and the relationship to spending budgets.
Guide source reviewed for PressFlow 2.3.0.
Recover a company account update (1.44.1)
Open PressFlow → B2B storefronts → Manage company → Purchasing & billing.
If the final bank receipt saved but the WooCommerce paid-order update failed, the account balance already reflects the receipt. Use Retry paid order update to finish the order change. It does not record a new receipt or collect money. Repeating the original receipt with the same reference and amount is also safe; a different amount under that reference is rejected. Closed/cancelled orders cannot be revived through this recovery action.
If a native order change arrived while another company account update was in progress, new credit purchases and account production clearance wait for a balance refresh. WordPress cron schedules the refresh; staff can use Refresh account balances to run it immediately. It checks current orders, refunds and saved receipts without recording a new payment. A missing or reassigned order keeps its financial record and requires review before more credit is offered. Restore/review that commercial order and refresh again; do not delete receipt history to clear the hold.
A failed credit activation leaves the amount reserved. Once the cause is corrected, use Recheck credit & release approved order. Existing approval and proof rules continue to apply.
See RELEASE-ACCEPTANCE.md for staging checks and CREDIT-STORAGE-PLAN.md for indexed storage, conversion and recovery. Account summaries remain current-balance summaries, not VAT invoices.
PressFlow 1.43.0 adds three optional company workflows. They use the existing company portal, WooCommerce orders, private artwork and checkout. No second website is needed. The public-shop-plus-portals and B2B-only modes both support these tools.
Enable the tools
- Open PressFlow settings → Features & integrations.
- Enable B2B storefronts, then the tools you want: Locked brand templates, Company financial approvals, and Company credit accounts. All B2B tools are off by default for a new setup; upgrades preserve existing choices.
- Open PressFlow → B2B storefronts → Manage company.
- Use Company setup & team, Brand templates, and Purchasing & billing.
Company access, approved products, pricing and addresses are explained in B2B-STOREFRONTS.md. Enabling a tool does not grant every company credit or require every company to use financial approvals. Choose each company’s rules.
Locked brand templates
Prepare the product and background
- Configure the PressFlow product’s Artwork checks: finished size, bleed and printed sides/pages must be correct. Tradeprint products need confirmed artwork mappings too. Native simple non-print products and Dock products cannot use this template flow.
- In the company’s Brand templates tab, expand Create an approved brand template.
- Select the product’s starting specification, or a shared print job with the exact required options. Use a shared job when creating a template for a different size or page count from the product’s defaults.
- Upload a print-ready background PDF, containing the fixed logo, images, text, shapes and colours. Leave the areas customers will personalise blank.
The PDF must include the full bleed and exactly the required number of pages. For 85 × 55 mm business cards with 3 mm bleed, supply 91 × 61 mm PDF pages. PressFlow does not resize a mismatched background. Use an unencrypted PDF 1.4 without object streams; unsupported compressed/encrypted PDFs produce an explanation before saving. An existing PressFlow designer preview is a compatible starting point, provided you remove its variable text before exporting the fixed background.
Import the permitted fields instead of placing each one
In the new-template form, expand Import or reuse text fields. You can upload or paste PressFlow field-settings JSON, including files from the PressFlow B2B demo artwork pack. Or choose Read text fields from background PDF for actual named PDF text form fields. Review, then replace the field list or update only matching field positions. The latter retains your existing fonts, colours, labels and text. Nothing publishes automatically. Undo last import restores the previous list until you make another manual edit. Export current fields as JSON saves a reusable definition with its size, bleed and pages.
Use names such as employee_name in the PDF form. A variable prefix is optional; flattened printed text or visible markers are not a reliable source of editable positions. Read B2B-FIELD-IMPORT.md for limits and the JSON format.
Add the permitted text fields
- Enter a template name that colleagues will recognise.
- Select Show background & place text areas.
- Add an editable text field and give it a useful label, such as Employee name. Its field ID must be unique, for example
employee_name. - Focus that field’s settings, then click its top-left position on the background. Change the background page selector for another side/page. Exact millimetre coordinates remain available for keyboard use and precise positioning.
- Set its fixed font, font size, text colour, alignment, text-area width/height, maximum lines/characters and whether customers must complete it.
- Enter representative example text. Use Check PDF preview and inspect every page.
- Leave Require approved template artwork… selected for strict brand control, then publish the template.
Customers see only the approved text fields. They cannot move the logo, alter the font or colours, add objects, or replace the background in this workflow. Text that does not fit is rejected; PressFlow does not silently shrink the corporate font. The server generates and seals the final PDF from the private background and field values. A replacement PDF or transfer link cannot pass as approved template artwork.
Without the product requirement, templates are an optional convenience and ordinary artwork uploads remain available. Turning off a requirement is an explicit brand policy change, rather than a cosmetic setting.
Customer use and template versions
Customers open Company portal → Brand templates, choose a template and review the print specification. In Artwork, they select Personalise approved template, fill the approved fields, check the PDF preview and choose Use this artwork. They must then save the print job or artwork through the existing flow. The same control works in the product configurator, Quick Order and editable basket/order artwork panels.
Changing the size or pages requires a matching template and freshly generated artwork. Copies can change without changing the document size. Generated handoffs last an hour; at most five temporary generated files are retained per customer, and preview/generation requests are rate limited. Final jobs receive independent private artwork copies under the shop’s normal retention policy. WordPress cron removes temporary originals.
Publishing creates an immutable template version. Publish a replacement and retire the old template when branding changes. Retirement prevents new use; existing ordered PDFs retain their recorded version. If you retire the final template for a required product, new artwork stays blocked until a replacement is available or you deliberately clear the requirement under Products that must use approved templates.
The background is a persistent private template asset rather than an expiring customer upload. Include the complete WordPress database, including non-autoloaded options, in backups/migrations. Corporate customer PDFs still use normal artwork retention. Changing WordPress authentication salts invalidates old artwork seals; regenerate affected queued artwork and review it again rather than treating it as newly approved.
Template limits
- Up to 16 pages, 40 editable text fields and a background PDF up to 5 MB, subject to the site’s lower upload limit. Up to 100 template versions per company.
- PHP mbstring is required for server text generation. Ask the host to enable it if the setup preview reports it missing.
- Text uses the bundled local fonts; no Google/Canva account or remote font request is needed. Unsupported characters and right-to-left text are rejected with an explanation. This first text-overlay renderer does not perform complex-script shaping.
- Images, logos and graphical elements belong in the fixed PDF background. Variable image replacement, conditional layouts, automatic imposition and PDF/X conversion are not included. Keep the existing colour, artwork and proof checks.
- Brand control never counts as artwork acceptance or approval of the customer’s proof.
Financial approval before payment and production
Choose company rules
Open the company’s Purchasing & billing tab:
- Tick Require financial approval for company orders.
- Set the threshold using the complete order total, including VAT and shipping. Enter 0 to review every order, including zero-value orders.
- Optionally set a second approval threshold. Enter 0 for one review level.
- Save the settings.
Company administrators and Purchasing approvers can review another person’s order. Add Purchasing approvers under Company setup & team, or Company portal → Team. They receive company financial/order access without WordPress admin capabilities.
A second review needs a different company administrator. Nobody can approve their own purchase or perform both company review levels. The printer can review with a recorded reason. Ensure enough reviewers exist before enabling two levels.
The order flow
At checkout, an order needing approval offers Submit for company approval, plus Pay on company account if that company has credit. Ordinary payment methods cannot take payment before the required approval. Classic checkout and Checkout Blocks use the same server rules. The pending WooCommerce order is recorded for review and held from production; creating that record does not mean the purchase has been approved.
Reviewers open Company portal → Financial approvals, inspect the full order, delivery and print specifications, then approve their level or reject the order. Rejection cancels the order. After the final approval:
- A normal order becomes available for WooCommerce payment. Financial approval alone does not mark it paid.
- An account order activates its reserved credit if the account still permits it.
- Artwork acceptance and approval of the current proof remain required before printing.
Accepted company quotes enter the same financial hold before payment. Changing the order’s commercial amounts, specifications or addresses invalidates its financial approval. The printer can Request fresh approval, with a reason, before production; previous decisions remain in the audit history. Artwork/proof decisions are separate.
Approval notifications are scheduled through WordPress cron and WooCommerce mail. Only current eligible company reviewers are notified; the second-level notification excludes the first reviewer. Test outgoing mail and cron on your server. The portal queue remains the source of truth when an email is delayed.
This release supports one or two order-level review stages. It does not add arbitrary department trees, cost-centre accounting or per-line approval routing. Optional company and delivery-branch budgets are described in B2B-BUDGETS.md.
Company credit and purchase orders
Agree and enable an account
In Purchasing & billing, tick Offer an agreed company credit account and set:
- A positive credit limit, including VAT and shipping, in the store currency.
- Payment terms, from 1 to 90 calendar days; the default is 30.
- Whether a purchase order / reference is required; it is required by default.
- Whether an overdue balance blocks new account orders; enabled by default.
- Payment instructions, such as the bank-reference format and accounts contact.
This is credit provided by the printer to its customer. PressFlow does not fund the order, collect bank payments automatically, assess creditworthiness or add interest. The printer remains responsible for agreeing terms and reconciling actual receipts.
The WooCommerce payment list also has the native enable/disable switches for PressFlow’s approval and account methods. Leave the required method enabled there. Disabling every permitted method leaves checkout unavailable; it does not bypass the company rule.
Limits, reservations and due dates
Pending approval reserves the complete gross amount against the company’s limit, so simultaneous purchases cannot each spend the same available credit. Company-level locking protects reservation/payment updates. An account with an overdue balance can be blocked from making new credit purchases while existing authorised work remains recorded. Other payment methods may still be used after any required financial approval.
Once approved, a credit order uses On company account, not a paid status. Its due date starts when credit activates, using the WordPress site’s calendar. It may proceed to production after the ordinary artwork/proof checks even though its invoice is unpaid. Changing an order’s status manually does not record money received in the account ledger.
If credit activation fails after approval, for example because the limit was reduced, the order stays held. Correct the account and use Recheck credit & release approved order in billing. Closed, cancelled and settled orders cannot be reopened by that action.
Credit does not perform currency conversion. Existing outstanding debt must be settled before the company account’s currency is changed. Configure any multi-currency extension so account purchases use the agreed store currency.
Record receipts and inspect balances
Customers see their account limit, reserved/outstanding balance, overdue balance, due dates and permitted order records under Company portal → Account & billing. Company administrators/Purchasing approvers can inspect company records; ordinary purchasers see their own detailed order records. Catalogue viewers have no billing tab.
After checking your bank or accounting system, the printer uses Record a payment received. Choose the order, amount and unique bank/payment reference. Partial receipts reduce its outstanding balance. Duplicate references and overpayments are rejected. The order is marked paid only when the remaining balance reaches zero. Allocate a batch bank payment across its orders explicitly rather than marking an unrelated order paid.
WooCommerce refunds reduce the receivable; cancelling an order releases its unused credit. Recorded receipts remain in the ledger. Use your normal refund/accounting process for money that must be returned. There is no automatic bank transfer or payout.
Monthly account summaries
Company administrators, Purchasing approvers and the printer can open a printable monthly account summary. It groups account orders placed in the selected month and shows PO references, original totals, due dates, recorded receipts and current outstanding balances as at the date printed. Print it or save it as PDF in the browser.
This is an account summary, not a VAT invoice or a historical closing-balance reconstruction. Existing WooCommerce order/tax records remain available for your invoicing/accounting system. This release does not issue a second consolidated tax invoice, collect online partial instalments, or connect to a bank/accounting provider.
Billing is paginated at 25 records. Printable summaries use 100-record pages with a whole-month total. The printer can download a private account recovery JSON export; keep database backups too. See CREDIT-STORAGE-PLAN.md.
Failed account/approval mail is surfaced under Ready to sell → Operational needs attention. Check outgoing mail, then use the relevant Retry company notification or Retry account confirmation email control. Successful approval recipients are skipped on normal retries; an external mail handoff cannot promise exactly-once inbox delivery. Acknowledging an alert alone does not resend anything.
Troubleshooting
| Symptom | What to check |
|---|---|
| No matching template | Confirm product, size, bleed and sides/pages. Open the template’s company-portal link to restore its specification. |
| Background rejected | Exact full-bleed dimensions/pages; unencrypted PDF 1.4 without object streams; upload limit; PHP mbstring. |
| Text will not fit | Shorten the text or ask the printer to revise the approved field. The customer’s font cannot silently shrink. |
| Ordinary upload rejected | The company requires an approved template for this product. Use Personalise approved template. |
| Reviewer cannot approve | Current membership, correct company, another person’s order, current commercial version, correct review level. |
| Order changed | Printer requests fresh approval; check quoted commercial terms separately where applicable. |
| No reviewer receives email | Current eligible reviewers, no self-approval, second-level different administrator, cron and outgoing mail. |
| Account option absent | Central feature, company credit setting, store currency, overdue policy and native WooCommerce gateway enable switch. |
| Credit remains reserved | Complete all review levels; then check available limit and use Recheck credit if needed. |
| Order looks paid but balance remains | A native status change does not record a receipt. Reconcile it through Record a payment received. |
| Monthly figure differs from an old printout | The summary shows current balances, including later receipts/refunds; it is not a frozen statement. |
Caching, switch-off and staging acceptance
Keep logged-in users, My Account/company portal, basket, checkout, session and AJAX routes out of page/CDN caches. Exclude pfw_company_job and pfw_brand_template query parameters. Dynamic B2B responses send private/no-cache headers; a CDN must honour the site’s exclusions before serving a cached response. Purge caches after visibility changes.
Turning tools off keeps company data, financial holds, account records and required brand restrictions. It does not cancel already submitted supplier orders or erase debt. Re-enable the relevant tool to complete pending operations. Existing approved PDFs and authorisations remain recorded. The main B2B switch and licence rules still apply.
Before using this on a live site, test separate customer logins for a purchaser, each reviewer level, a viewer and another company. Test classic and Blocks checkout with your actual payment, tax, shipping, theme and cache plugins. Include zero totals, a changed order, self-approval, rejection, simultaneous credit use, a reduced limit, overdue debt, partial/full payments, refunds, retired templates, oversized/Unicode text, artwork expiry and supplier submission gates. Shop managers bypass customer catalogue restrictions.
Developer reference
- Optional switches:
b2b_templates,b2b_approvals,b2b_credit; parent:b2b. PFW_B2B_Finance::initialize($order)creates the current financial review after the company/line items/totals are established. Custom order-creation integrations should explicitly use the company workflow; a WordPress REST order created by trusted staff is not automatically a customer checkout submission.PFW_B2B_Finance::approval_valid($order)verifies commercial approval.cleared($order)accepts actual payment or a valid authorised credit record, while preserving the separate production artwork/proof checks. Do not replace it with a global filter that pretends every account order is paid.- Gateways:
pfw_approval,pfw_credit. Checkout Blocks registers both through the native payment integration and passespfw_poin payment method data. Server checks remain authoritative. Existing WooCommerce gateway enable options are respected. - Company settings:
_pfw_b2b_finance. Indexed credit tables replace the writable_pfw_b2b_credit_ledgerarray; that legacy metadata is retained read-only after conversion. See the storage guide for transactions, backups and bounded queries. Order metadata:_pfw_b2b_approval,_pfw_b2b_approval_state,_pfw_b2b_approval_history,_pfw_b2b_approval_required,_pfw_b2b_credit,_pfw_b2b_po. PFW_B2B::order_query($args, $meta)uses supported HPOS queries or translates a private argument through the legacy order datastore filter. Company IDs are also checked after fetching records.- Templates use private
pfw_brand_templateposts,_pfw_brand_templatemetadata, company_pfw_b2b_brand_templatesindexes and_pfw_b2b_brand_requiredpolicies. Backgrounds usepfw_b2b_brand_pdf_{ID}non-autoloaded private options, loaded only for the selected renderer, rather than loading every background in a catalogue list. - Template customer requests use existing upload-context authorisation plus current company/product/version checks. Only approved plain-text values are accepted. Signed metadata and the PDF digest live in the existing private artwork record’s
designcolumn. These are sealed PDFs, not editable free-designer sources. - FPDI/tFPDF run locally with isolated PressFlow namespaces, bundled fonts and disabled executable font caches. Licences, pinned sources, hashes and local changes are under
vendor/brand-pdf/. No Composer installation is required on the printer’s website.
Version 1.44.0 adds an optional Canva connector; see CANVA.md for company connections, approved Autofill templates and print/plan limits. Native locked templates continue to work without an external account. Existing financial approval and credit rules apply to orders regardless of the permitted artwork method.
Related guides
- Update your shop to PressFlow 2.3.0
- Create team print jobs from a spreadsheet
- Set up private company and branch storefronts
- Set company budgets and report branch spending
- Explain artwork-check results to customers
- Generate, download and print Business reports
Need a hand?
Contact the PressFlow team with details of what you are trying to do.