How to add an AFM or VAT field to Shopify cart and checkout
MyTimologio adds VAT capture and an invoice choice to Shopify, validates available company details through AADE or VIES and saves them on the order for your ERP.
Key facts
Decide between the cart and checkout
Without Shopify Plus, collect invoice details before checkout: on the cart page, in a cart drawer, in a pop-up or in a custom theme location. The customer requests an invoice, enters a VAT number and continues purchasing. The details follow the order. A form inside the checkout steps is a separate block and requires Shopify Plus; see Shopify’s app availability by checkout surface. The app subscription includes its features; it does not change Shopify’s plan requirements.
Choose the surface your buyers actually use. If the cart icon opens a drawer, installing only on the cart page does not cover that path. You can place the form in both locations. Start with the compatibility matrix and identify where customers proceed to payment.
Method 1: add the app block
After installation, open MyTimologio and choose your VAT coverage in settings. Open the theme editor on the intended product or cart template. Add the MyTimologio app block where buyers will encounter it before the checkout button, then save.
Check the published theme and the template used by the customer, rather than a preview of another template. Select invoice in the form and try a lookup. If the editor cannot accept an app block at your chosen location, use Method 2. You can keep your existing theme.
Method 2: use the one-line mount anywhere
MyTimologio works with any Shopify theme and any cart because app blocks are only one placement method. Enable the app embed and insert this line in theme code where you want the form:
<div data-afm-mount></div>
Both pieces are necessary. The mount declares the position and the embed renders the form there. Use this method for a drawer, pop-up or custom location, usually before the checkout button. Work on a theme copy when editing code. If Liquid editing is outside your normal work, ask the developer for free installation through support.
Open and close the drawer, change a quantity and add another product. Confirm the form remains accessible after the cart refreshes. Repeat on a narrow mobile screen. These checks show that buyers encounter the form in the purchase flow you selected.
Add the separate Plus checkout block
On Shopify Plus, open the checkout editor and add the dedicated invoice-details block. Save it and test both receipt and invoice choices inside checkout. The thank-you block is another extension: it displays previously saved details after purchase and does not collect them in place of the form. The checkout guide explains these surfaces.
Buy now and accelerated purchase buttons can bypass the cart. Test them independently, including the mobile route, to see whether an invoice buyer reaches the form before completing payment. A successful ordinary cart purchase does not establish what happens on every accelerated path.
Place a complete test order
Use details you are authorised to test. Select invoice and enter the VAT number. With EU coverage on, choose the country first. AADE returns available Greek business information. VIES returns what the national registry shares, so a valid number can come back without a company name or address. Those fields are saved as N/A and you do not type them.
Open the completed order in Shopify Admin and inspect Additional details. Look for Έκδοση Τιμολογίου: ΝΑΙ, Α.Φ.Μ, company name, address and Χώρα, alongside the Τιμολόγιο tag. The order-data reference lists every exact key. Place a receipt order too, so the test covers both customer choices rather than only a business purchase.
MyTimologio works with any ERP or e-invoicing provider you already use, without a new connection. Those systems already pull Shopify orders and the invoice details are saved on the order itself. Use this test order to see the fields arrive in your existing system. Your ERP or provider then issues the fiscal document and submits to myDATA; MyTimologio completes the missing customer-details step.
Need help?
FAQ
Does it work on Basic and other Shopify plans?
Yes. The form collects details in the cart, cart drawer, pop-up or product page using an app block, or the app embed and mount snippet. Details are saved on the order. Only the form inside checkout requires Shopify Plus.
Can I use it in a cart drawer or pop-up?
Yes. Enable the app embed and add <div data-afm-mount></div> where the form should appear. For the cart page, you can use an app block. Email [email protected] for free installation help with the placement.
