Magento 2 Experts — Hyvä Theme, Tailwind CSS & SEO from a Single Source ›

Magento 2 Cost Center and PO Number Fields at Checkout

Magento 2 Extension Hyvä Ready Magento 2.4.x

SKU: PURCHASEORDERCOSTCENTER1

  • capture PO number and cost center directly at checkout
  • required field per customer group, validation and dropdown list
  • output in email, invoice, packing slip and order grid
  • CSV export and REST access for accounting
Auf Lager
€99.00

Einmaliger Kauf · inkl. 12 Monate Updates · zzgl. MwSt.

No download, but personal setup

No download, but personal setup. This product is not a downloadable software package for self-installation. With your order, you commission Mironsoft to individually set up this module in your shop. We will get in touch with you within 2 business days — we'll sort out the details and payment together then.

This offer is aimed at business owners and companies running a Magento 2 shop.

6 Features

Magento 2 Cost Center and PO number: details that B2B buyers insist on

With the Magento 2 cost center from Mironsoft you collect two details at checkout without which a company customer cannot book the order internally: their own purchase order number and the cost center. Both fields can be made mandatory for selected customer groups and appear in the confirmation email, on the invoice, in the order grid and in the export. The fields run on Alpine.js in the Hyvä theme and load no extra library.

PO number

A free field for the customer purchase order number, with length limit and allowed characters so that your accounting receives clean references.

Magento 2 cost center

Either free text or a dropdown that you maintain per company or customer group, with number and description.

Required per group

The Magento 2 cost center is mandatory for company customers, hidden for private customers: the rule hangs on the customer group and the store view.

Validation

Checks for length, characters and pattern, immediately at checkout and again on the server.

In email and invoice

Both values appear in the confirmation email and on invoice, packing slip and credit memo.

Grid and export

Own columns in the order grid, filters and CSV export so that accounting reconciles without manual work.

Why cost center

Why company customers expect a cost center in the Magento 2 checkout

In companies every order runs through an internal system. Without a purchase order number and cost center the accounting department rejects the invoice or sends it back. The buyer then writes the details into a comment or calls. Merchants therefore search for a Magento 2 cost center field, a Magento 2 PO number at checkout or a purchase order field. By default there is only the comment field, which nobody evaluates.

With the Magento 2 cost center the details become structured data: mandatory, validated and visible wherever they are needed. That saves queries on both sides and speeds up payment.

01Checkout fields

Ask for PO number and Magento 2 cost center at checkout

The fields appear in the order step, optionally in the shipping step, the payment step or directly above the summary. You set label, placeholder and help text per store view. The cost center can appear as free text or as a dropdown that is maintained per company or customer group. The last value used by a logged-in customer is prefilled but remains editable. Guests can use the fields too if you allow it.

  • Position of the fields at checkout selectable
  • Free text or dropdown per customer group
  • Prefill from the last order
Checkout › Order details
Customer PO number
PO-2026-0815 (example)
Cost center
4711 · Purchasing (example)
Required field for the group business customers
Stores › Configuration › Mironsoft › PO Number & Cost Center
Group business customers
PO number: required
Group private customers
hidden
Cost center pattern
digits only, 4 to 8 characters
02Required and validated

Make the Magento 2 cost center required per customer group

In the admin you decide per customer group whether PO number and cost center are hidden, optional or mandatory. The validation checks minimum and maximum length, allowed characters and an optional pattern, for example digits only for cost centers. The check runs in the browser with Alpine.js and afterwards on the server, so that even a manipulated request cannot store invalid values. You maintain the error messages per store view.

  • Hidden, optional or required per group
  • Check length, characters and pattern
  • Server-side control on top of the browser
03Output

Show the cost center in email, invoice and packing slip

Both values are stored on the order and appear in the confirmation email, in the customer order view and in the admin. On invoice, packing slip and credit memo they appear as an additional line under the address if your PDF template provides for it; the module supplies the variables. You decide whether a detail should appear on the invoice. The shop operator checks mandatory invoice content with their tax adviser.

  • Confirmation email and order view
  • Line on invoice, packing slip, credit memo
  • Variables for custom PDF templates
Order › Invoice
Your PO numberPO-2026-0815 (example)
Cost center4711 (example)
Line below the billing address
Sales › Orders
#100000123 · 4711PO-2026-0815
#100000124 · 4720PO-2026-0816
Example data, filterable by cost center
04Admin and export

Order grid, filters and CSV export for accounting

In the order grid, PO number and cost center appear as columns with filter and full-text search. The CSV export contains both fields so that accounting can evaluate orders by cost center. The values are also available in the REST interface as extension attributes of the order so that an ERP or merchandise system can take them over. Changing them later in the admin is possible and logged in the order history.

  • Columns, filters and search in the order grid
  • CSV export with both fields
  • REST access for ERP and accounting
Use cases

Where the Magento 2 cost center prevents queries in daily shop work

Four typical situations in business with companies and public bodies.

Industry and trades

With the Magento 2 cost center purchasing assigns every order to a project, and the invoice passes approval without questions.

Public bodies and schools

Next to the Magento 2 cost center, the purchase order number from the budget system appears on invoice and packing slip, and dropdown lists prevent typing errors.

Groups with several sites

Every site picks its Magento 2 cost center from its own list while headquarters evaluates through the export.

Service providers and agencies

Orders for client projects carry the project number as the cost center and can be re-invoiced later.

Comparison

Magento 2 cost center compared: comment field and structured fields

What changes when references no longer get lost in free text.

TopicWithout moduleWith Mironsoft PO Number & Cost Center
CaptureIn the comment field, often forgottenOwn fields, switchable as required
QualityTypos and free formatsCheck for length, characters and pattern
InvoiceDetail missing or added manuallyLine from the order
EvaluationReading comments one by oneColumn, filter and CSV export
System linkNoneExtension attributes via REST
Setup

How we set up the Magento 2 cost center for your shop

The process after you place the order.

1

Alignment

You tell us the customer groups, the mandatory rules for the cost center, validation patterns and the places where the values should appear.

2

Installation

We install the module and configure the Magento 2 cost center with fields, texts and prefill.

3

Lists and patterns

We store cost center lists, validation patterns and error messages per store view.

4

Email and PDF

We add the lines to confirmation email, invoice, packing slip and credit memo.

5

Test and handover

We test checkout as a guest and customer, export and REST and train your team on the settings.

Scope

Scope of the Magento 2 cost center compared with approvals and sub accounts

The module captures and distributes two details; it decides nothing. Approval rules and spending limits are handled by separate Mironsoft modules, and employee logins with roles are covered by sub accounts. The Magento 2 cost center can be combined with all of them, for example as a mandatory detail before an order goes to approval.

The module does not check whether a cost center exists in the customer system; it only ensures format and completeness.

05How the purchase works

No download — personal setup instead

PO Number & Cost Center is not listed here as a ready-made download file to install yourself. The purchase is a commission: after the purchase we get in touch, install the module in your shop and agree fields, mandatory rules and output with you.

Important to know

Your purchase does not include a download link. We will get in touch with you within 2 business days — we'll sort out the details and payment together then. This offer is aimed at business owners and companies running a Magento 2 shop.

FAQ

Frequently asked questions

Everything important about fields, requirements, output and how the purchase works.

How can I ask for a cost center at checkout in Magento 2?
The module adds PO number and cost center as fields to the checkout. You set position, label and requirement in the admin.
How can I store the PO number and cost center in Magento 2?
The Magento 2 cost center and PO number are stored on the order and appears in email, admin, invoice and export.
Can I make the Magento 2 cost center mandatory for company customers only?
Yes, the requirement can be set per customer group and store view; for private customers the fields can be hidden.
Can the Magento 2 cost center be chosen from a list?
Yes, you maintain lists with number and description per company or customer group. A free text field remains possible as an alternative.
Do the values appear on the invoice?
Yes, as an additional line if your PDF template outputs it. The module supplies the variables. The shop operator checks mandatory invoice content.
How is the input validated?
Length, allowed characters and an optional pattern are checked in the browser and again on the server.
Can the admin change the values later?
Yes, in the order view. The change is logged in the order history.
Does the Magento 2 cost center work with Hyvä?
Yes, the fields are built with Alpine.js and Tailwind, without jQuery or Knockout and without an extra library.
Can an ERP retrieve the values?
Yes, both values are extension attributes of the order and readable through the REST interface.
Can I download and install the module myself?
No. This offer is not a download product. After the purchase we install and configure the module personally in your shop.
Write Your Own Review
You're reviewing: Magento 2 Cost Center – Mironsoft PO Number & Cost Center
loader
Loading...

You submitted your review for moderation.

This form is protected by reCAPTCHA - the Google Privacy Policy and Terms of Service apply.

Magento 2 Cost Center – Mironsoft PO Number & Cost Center

Magento 2 Cost Center – Mironsoft PO Number & Cost Center

€99.00