Company details
How the buyer's IČO, DIČ and VAT ID reach the invoice in KROS, and what to set up in checkout or in the theme.
Where the app takes them from
Shopify does not collect a Slovak company ID (IČO) or tax ID (DIČ) on a normal order. The app reads them from these places:
| Value | Source | Shopify plan |
|---|---|---|
| IČO, DIČ, VAT ID (IČ DPH) | The order attributes ico, dic, ic_dph, saved by our checkout or cart block, or by a theme field with the same names | checkout block Plus, cart block any |
| VAT ID | Shopify's Company VAT number field in checkout | any, Shopify Tax only |
| Company name and VAT ID | The company and its location on a Shopify B2B order | Plus |
| Company name | The Company field of the billing address | any |
The app reads the Shopify B2B company data (name and VAT ID) and Shopify's Company VAT number field with the customers permission. It asks for that permission when you open it; until you approve, it uses only the order attributes and the Company field of the address.
The app removes spaces and upper-cases letters, so "sk 2020 123 456" appears on the invoice as "SK2020123456".
Which VAT ID wins
An order can carry two VAT IDs: one from Shopify and one typed into our block. The app picks:
- Shopify charged no VAT: Shopify's number (the B2B company first, then the Company VAT number field). Shopify removed VAT on the strength of its own number, checked in VIES, so that number belongs on the invoice. When Shopify has no number, the one from our block is used.
- Shopify charged VAT: the number from our block, or Shopify's if the block has none.
DIČ and e-invoices
When the customer enters a Slovak VAT ID (SK and 10 digits) and leaves the DIČ empty, the app derives the DIČ from the VAT ID. A Slovak business that is not a VAT payer has to enter its DIČ.
From 1 January 2027 an invoice to a Slovak business goes out as an e-invoice when you are a VAT payer, KROS has registered your company for e-invoicing, and this is on:
(Path) Settings → Emails → Send invoices to Slovak businesses as e-invoices
The app recognises the business by its DIČ and Slovakia as the billing country (or the shipping country when there is no billing address). A business without a DIČ gets an ordinary invoice.
Company name and buyer
The buyer on the invoice is the first of these that exists:
- the Shopify B2B company name,
- the Company field of the billing address,
- the customer's name (or the e-mail or order number when there is no name).
When the buyer is a company, the name from the address is printed as the contact person. Our blocks remind the customer under the fields to enter the company name in the address. The checkout block always does; the cart block and the cart drawer embed do unless you turn off Show the company name hint in them.
Checkout block (Shopify Plus)
(Path) Home → Blocks in your store → Checkout (Plus) → checkout editor → Apps → Firemné údaje na faktúru (KROS)
The customer ticks I'm buying as a company and fills in the IČO, DIČ and VAT ID. The block checks the format (IČO 6 to 8 digits, DIČ 8 to 10 digits, VAT ID a country code and 8 to 12 characters) and does not let the customer continue with a malformed number, provided you allowed the block to block checkout progress in its settings in the checkout editor. Without that permission the block only shows the error and the customer can continue. It does not change the VAT calculated in checkout.
The block stays hidden for a Shopify B2B buyer (the company data is on the order already) and in a checkout that does not allow attribute changes, such as a draft order.
The block's settings have Skryť IČ DPH (hide VAT ID). Turn it on when Shopify's Company VAT number field collects the VAT ID, so the customer does not enter it twice.
Cart block (all plans)
(Path) Home → Blocks in your store → Cart (theme) → theme editor → cart → Apps → KROS: company IDs
For a cart drawer, or any other place in the store, there is the page Company IDs through code:
(Path) Home → Blocks in your store → Cart drawer (code)
It has two steps:
- Switch on the app embed KROS: company IDs in the cart drawer (Theme settings → App embeds), set the look in its settings and save the theme. It shows nothing by itself.
- Paste the line
<div data-kros-company-ids></div>into the theme code where the fields belong. In Dawn and themes based on it that issnippets/cart-drawer.liquid, for example under the cart items. On the cart page the line also goes into a Custom Liquid block in the theme editor, no code editing needed.
Use either the cart block or this line on a page, not both. Check the result on a phone too.
The fields are saved as cart attributes and Shopify copies them to the order. In the block settings you choose:
- Heading and Spacing (cart block),
- Show as: Checkbox that shows the fields; Collapsible panel; Fields always open,
- Fields: Side by side or One under another,
- Hide VAT ID, when Shopify's field collects it,
- Show the company name hint (on by default),
- Follow the theme's look, or your own field height, corner radius and colour.
The Home item Company IDs (IČO, DIČ, VAT ID) in checkout or in the cart marks itself Placed with the first order that carries company IDs.
Your own theme field
If your theme already has an IČO field, keep it. It only has to save cart attributes named ico, dic and ic_dph (for example name="attributes[ico]" in the cart form). The app also accepts ičo, dič, ič dph and icdph, in any letter case.
Shopify's Company VAT number field
(Path) Settings → Checkout → Customer information → Company VAT number → Optional
Shopify checks the number in VIES and, when it is valid, charges no VAT to a customer from another EU country. This works with Shopify Tax only. Of all VAT ID fields, only this one removes VAT in checkout; our blocks do not. The app copies the number to the invoice and applies the reverse charge when you have it on.
Invoice businesses only
(Path) Settings → When to create invoices → Invoice businesses only
Only an order with at least one of these gets an invoice: a company name (Shopify B2B or the Company field), IČO, DIČ or VAT ID. A consumer gets none and the order shows as Skipped in Documents. When a consumer asks for an invoice, issue it by hand from the order; a manual issue bypasses this rule.
What to set up by plan
| Your store | What to turn on |
|---|---|
| Shopify Plus | The checkout block; for EU businesses also Shopify's Company VAT number field and Skryť IČ DPH in the block |
| Shopify Plus with B2B | Nothing extra for B2B buyers; the checkout block for everyone else |
| Other plans | The cart block (and the cart drawer embed if your theme has one); for EU businesses Shopify's Company VAT number field and Hide VAT ID in the block |
| Theme already has its own field | The attributes ico, dic, ic_dph, nothing else |