Skip to content

Company portals

Set up private company and branch storefronts

Choose public plus private or B2B-only ordering, set the company address and branding, and configure approved members and products.

PressFlow 3.0.0 · 12 min read

Guide source reviewed for PressFlow 2.3.0.

PressFlow provides optional company storefronts on the same WordPress/WooCommerce installation. Companies can use the account portal or a dedicated branded landing page at /portal/your-company/. No second site, physical directory, multisite installation or company-specific checkout is required.

Company access, private catalogues, company pricing, members/roles, approved addresses, order history and a shared print library are included. Version 1.43.0 also adds optional locked brand templates, one/two-level financial approvals and company credit accounts. Read B2B-PURCHASING.md for those workflows and their limits. Artwork/proof checks remain separate. Account summaries do not replace VAT invoices.

Enable and choose a shop mode

  1. Update PressFlow and ensure your product key is active.
  2. Open PressFlow → PressFlow settings → Features & integrations.
  3. Tick B2B storefronts and save. It is off by default, including on upgrades.
  4. Open PressFlow → B2B storefronts.
  5. Choose Public shop + private B2B portals or B2B portals only.

In public + B2B mode, ordinary visitors can use the public shop. Company members see only their approved products. In B2B-only mode, visitors and unassigned customers need an approved company login before they can browse or order products. Normal pages such as Home, About and Contact stay public. Add your WooCommerce My Account link to the website navigation as the company sign-in entrance.

Every member can use My Account → Company portal, normally /my-account/company/. The signed-in account determines the company. There is no company ID selector a customer can use to open another company. Company members are redirected to their portal after a normal WooCommerce login. If the endpoint returns 404, visit Settings → Permalinks → Save Changes and check the My Account page configuration.

Give a company its own storefront

  1. Create and save the company, approved products and members as described below.
  2. Open the company in PressFlow > B2B storefronts and choose Storefront appearance.
  3. Tick Use a dedicated company storefront and choose an address such as harbour-estates.
  4. Add a welcome heading/message, accent colour and optional company logo from the media library.
  5. Save, then test the displayed link using an approved customer account.

The result is a focused company print shop with product images, company prices, approved-template links, basket access and navigation to company orders, saved jobs, addresses and permitted financial tools. One approved native brand template links directly into its product’s personalisation flow. Products without templates still use their ordinary approved configuration. Template and artwork rules stay in force.

The welcome area previews actual approved products, rather than private template backgrounds. Order it again, Saved print jobs and the template shortcut open existing company tools without creating an order. The Company tools menu groups history, library, delivery, purchasing and account links with short explanations. It works without JavaScript; with JavaScript, Escape closes it and returns focus to its button, and clicking outside closes it. Icons and buttons follow the selected company accent. The mobile catalogue uses the same company prices and permissions.

Only signed-in active members of that company see its identity, products and prices. Anonymous visitors get a generic sign-in page; other companies and unassigned accounts get a generic unavailable page. Storefront addresses are not access keys. Shop administrators must test with a company customer account; they are not granted company membership automatically. Viewer accounts retain browse-only access.

Enabling this changes company portal/login destination links to the dedicated page. The existing account endpoint remains available, and switching the dedicated page off restores those account links without deleting members, templates or orders. Other company tabs reuse their existing permission checks. Basket, checkout, taxes, financial approvals and payments still use WooCommerce’s normal flow.

Company pages send private/no-store and noindex headers. Exclude /portal/ from any full-page cache or CDN rule that overrides application headers. Companies with dedicated pages must not share cached HTML. Plain permalinks use a query URL and WordPress subdirectory installations are supported. If a pretty address gives a 404, save Settings > Permalinks once. Do not create a physical server folder.

Products whose required specification fields each have one preset value display those values together under Print specification, without redundant dropdowns or accordion sections. Quantity/date and artwork remain available. Optional extras, multiple choices, text inputs and custom dimensions remain interactive. This also applies to public products and Quick Order, and does not change product configuration, server prices or artwork requirements.

Logos are public WordPress media assets. Use only a logo that can be publicly stored; private artwork/template backgrounds remain in PressFlow’s protected storage. Accent button text automatically uses a light or dark colour with the better contrast.

For developers: PFW_B2B_Storefront::url($company) returns the configured landing URL or an empty string, and PFW_B2B::url() returns the signed-in member’s preferred portal. pfw_company_store is a public route variable, never an authorisation grant. Do not bypass PFW_B2B::company() or render cached product prices across companies.

Create a company

Select Create company portal and work through the numbered sections:

  1. Company and access: give it a name and leave access enabled. Pausing it keeps records and product restrictions while denying member access.
  2. Approved products: search by name/SKU and select the company’s products. Simple WooCommerce products and PressFlow products, including Tradeprint imports, are supported. Dock and variable/grouped/external products are not included in this release.
  3. Company pricing: choose a company discount or keep 0 to use existing selling prices. Save the product selection to reveal optional per-product discount overrides.
  4. Central billing: optional. Enter a complete central billing address if it should be required at checkout. Leave its street address blank to use customer billing details.
  5. Branch delivery addresses: optional. Add the destinations colleagues may select. Country and address requirements remain governed by WooCommerce checkout settings.
  6. Save, then add members using their existing customer-account email addresses.

Company forms use a single JSON payload when JavaScript is available, so large catalogues/address lists are not silently truncated by PHP’s input-variable limit. A completion marker also rejects truncated non-JavaScript submissions. Up to 2,000 product assignments and 100 branch addresses are accepted per company record.

Public products versus company-only products

The approved product list controls what company members can see. The Company-only product flag controls whether ordinary visitors can see it.

  • For corporate-branded collateral, tick Mark these selected products company-only when saving. Each selected product is restricted before company settings are saved.
  • For an ordinary public product sold at a company price, leave that box unticked.
  • Existing private flags are never removed by unassigning a product or unticking that bulk checkbox. To publish one explicitly, edit the WooCommerce product and untick Product data → General → Company-only product.
  • A company-only product can be assigned to more than one company intentionally.
  • A private product assigned to no active company is unavailable to customers.

Restrictions cover product reads, normal catalogue/search queries, direct product URLs, the normal WooCommerce Store API, configurator/Quick Order product checks and cart/checkout validation. WordPress product sitemap entries exclude private products; B2B-only mode excludes the product catalogue. Third-party search/feed/SEO integrations that bypass normal WordPress/WooCommerce queries need their own compatibility check.

WordPress Media Library images remain public URLs. Do not use public product images or publicly attached documents to store confidential artwork. Print artwork in the company library uses PressFlow’s private records and checked downloads.

Company prices

The company discount reduces the complete print job, including configured extras, once, before the existing WooCommerce tax calculation. It follows the actual pricing engine into the From block, configurator, quantity/date matrix, saved-job review and basket. Quote-only products retain their quote-only behaviour. Original shop grids, supplier costs, tax settings and existing orders are unchanged.

For native simple WooCommerce products, the agreement applies to their current WooCommerce price. A product override replaces the company’s percentage; blank uses the company default, and 0 explicitly means no discount for that product.

For a fully bespoke agreed price list, create dedicated company-only products and use their normal PressFlow quantity/option grids, with a company discount of 0. Different companies can have separate private products without duplicating the site.

WooCommerce coupons are disabled for company purchasing by default to avoid stacking public offers with contract prices. Tick Allow WooCommerce coupons in addition to company pricing to permit them. Native coupon eligibility/restrictions still apply.

Changing the company agreement or product setup invalidates old print basket prices; customers must review their current choices. Company-price pages must not be publicly cached. Staff setup and scheduled supplier sync continue to use original shop data.

Members and roles

Accounts keep their ordinary WordPress/WooCommerce role. Company permissions are separate and grant no WordPress admin capabilities. Each customer belongs to one company.

Company roleAccess
Company administratorApproved catalogue, company order history/reordering, shared library publishing/retirement, permitted company addresses and member management
PurchaserApproved catalogue, own company orders/reordering, shared library use, assigned/all permitted delivery branches
Purchasing approverCompany financial review and order access, approved catalogue, own ordering/reordering and shared library; no WordPress admin or team-management rights
Catalogue viewerBrowse approved products and shared specifications; cannot purchase, use Quick Order, download corporate artwork or submit a print quote

Use Invite a colleague on the company screen or Company portal → Team. Choose the email, company role and permitted branch; links expire after seven days and access begins only after explicit acceptance. The invited customer can sign in or create a WooCommerce customer account if invited registration is enabled. The printer controls that option under How this shop sells. Existing customer accounts can still be added directly through Members. See B2B-INVITATIONS.md. A customer already in another company must be removed there first. Shop administrator accounts cannot be company members; use a separate customer login for testing.

Removing a member, pausing the company or removing their assigned branch revokes company access, including shared artwork and company order links. Reassign a valid branch to restore a member whose branch was removed. Administrators cannot remove or downgrade their own access in the frontend; the printer can manage that safely.

The ordinary WooCommerce account order list and native product download links also respect company access. Removing company access does not remove personal purchases or delete company orders. Files already downloaded cannot be recalled.

Personal saved jobs made under a company are also bound to that company, and Quick Order workspaces have separate company contexts. Unavailable items are removed from the active basket when its session loads; original orders, shared library jobs and retained artwork are not deleted. Previously downloaded files cannot be withdrawn.

Billing and delivery

Members open Company portal → Addresses, choose an allowed branch and select Use this billing & delivery address before checkout. This updates the native WooCommerce customer address used by classic checkout and Checkout Blocks. Company administrators can choose all company branches; purchasers may be limited to one branch.

When company addresses are configured, checkout must use the selected approved delivery address and configured central billing address. A request that changes a restricted address is rejected. To use another destination, choose it in the portal first or ask the printer to update the company. Shipping availability, shipping zones, rates and tax location remain WooCommerce’s responsibility. Test both checkout interfaces on your server.

Orders and shared reordering

Company portal → Orders shows the purchaser’s own company orders, or all company orders for a company administrator. Each print item links to Reorder this print job. Reordering opens the existing PressFlow flow with current prices/options and optional artwork reuse. It creates a new job rather than editing the original order. Artwork review and proof approval do not carry forward.

In Company print library, a company administrator can publish a personal saved print job or an available company order job. This is an explicit approval to share its specification with company colleagues. Shared jobs contain their own retained artwork copy, independent of the employee’s saved job or original order. Available original files can be reused; external transfer links are not copied into a corporate library. If files expire, colleagues must provide fresh artwork. Saving choices does not extend retention. Up to 100 shared jobs are retained per company.

Retiring a shared job closes its old library link and removes that library artwork copy; it does not delete an original order’s files or copies already used by other jobs. Products removed from the approved catalogue cannot be reordered through old shared links.

Turn it off safely

Switch off B2B in Features & integrations to pause the company storefront. Data is kept, and company-only products stay private. In public + B2B mode, the public shop continues for ordinary customers. In B2B-only mode, the catalogue stays closed.

To return to a public shop intentionally, enable B2B, change the storefront mode to public + B2B, then switch B2B off if wanted. Publish individual company-only products explicitly in their WooCommerce product settings. An expired/paused PressFlow licence does not expose company products or remove their restrictions.

Caching and staging checks

Keep WooCommerce My Account, basket, checkout, logged-in users and session/AJAX routes out of page/CDN caches. Also exclude requests containing pfw_company_job or pfw_brand_template. The portal and member requests set no-cache headers; WordPress cannot repair a response served by a CDN before PHP runs. Changes purge LiteSpeed/WP Rocket through their available hooks; purge any other page/search/CDN caches after changing visibility or storefront mode.

Before live use, test a separate company administrator, purchaser, viewer, another company, an unassigned customer and a guest. Check both store modes, direct product URLs, Store API, current prices/VAT, addresses, classic and Blocks checkout, reused artwork, removed membership, paused company and the off switch. Shop manager accounts bypass customer restrictions and are unsuitable for these acceptance checks.

Before deactivating or removing the whole PressFlow plugin, unpublish company-only products. The B2B feature switch keeps its protection code running; removing the plugin removes that code. Private print artwork remains outside the public Media Library.

Developer notes

Company posts use private post type pfw_company; settings are in _pfw_b2b, with a revision used by pricing hashes. Membership is _pfw_b2b_membership user meta, with _pfw_b2b_company as the searchable company index. Orders record _pfw_b2b_company, _pfw_b2b_branch and _pfw_b2b_pricing_revision. No custom database tables are required.

PFW_B2B_Access::allowed($product_id, $buy) is the central product permission check. PFW_B2B::can_view_order($order) scopes company order/artwork access. Company-aware configurations contain a server-supplied _pfw_b2b pricing context; the normal engine applies that agreement once and snapshots bind its company. Never accept a client-supplied pricing context or discount as authoritative. Admin/schema saves remove internal context.

Customer source references with type=company resolve current company library rows and use the existing HMAC/version checks. Downloads require the exact current company, library row, file ID and nonce. Product metadata, original artwork and WooCommerce records continue to use their existing owners and retention mechanisms.

Optional Canva company artwork (1.44.0)

In Brand templates → Canva templates, company managers can enable Canva, connect an authorised company account and import/check Autofill sources. Purchasers change only approved text fields through PressFlow. Personal Canva editing requires its own explicit company choice and cannot bypass a strict template requirement. See CANVA.md.

Optional spending controls

Enable Company budgets & spending to add monthly or quarterly company and delivery-branch allowances, over-budget approval and private branch reports. Purchasers see their available allowance; company administrators and purchasing approvers can export branch aggregates. See B2B-BUDGETS.md.

Need a hand?

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