How to Extract "Codice Fiscale" and "PEC" Fields for Italian Buyers in Liquid

Topic summary

A user is trying to extract and display two Italian-specific checkout fields—Codice Fiscale (tax code) and PEC (certified email)—in order printouts using the “Order Print” app’s Liquid template.

Current Issue:

  • These fields appear as “Additional Information” on Shopify’s order page and are required during checkout
  • Attempts to access them via order.attributes and order.customer objects have failed
  • The fields cannot be retrieved for printing purposes

Proposed Workaround:
The user considers requesting Shopify support to remove these default fields (noting other Italian merchants have done this successfully) and replacing them with custom metafields tied to user registration. However, this approach is seen as problematic because:

  • It would require mandatory registration to purchase
  • This could discourage guest checkout and reduce conversions

Status: The discussion remains unresolved, with the user seeking simpler solutions from the community. One suggestion to try attributes directly (without the order. prefix) was unsuccessful.

Summarized with AI on October 31. AI used: claude-sonnet-4-5-20250929.

I need to display two fields, Codice Fiscale and PEC, which are included as Additional Information on the Order page (and are required during the checkout process), within the template used by the “Order Print” app.

I’ve tried searching for them under order.attributes and within the order.customer object without success! Has anyone managed to extract/show these two data fields in any way?

In the order page the 2 fields are showed as “Additional Information”

And requested inside checkout (at bottom)

Hi @CesareTeruzzi
Try attributes directly instead of order.attributes
Please like and accept the solution if it work for you

Thanks!

Hi @pawankumar and thanks for the prompt response!

Unfortunately, I still haven’t been able to extract these two pieces of data to display them in the order printout—it’s absurd… I don’t understand these restrictions/limitations imposed by Shopify on the Basic plan when these are fundamental e-commerce features, like registration/login/cart/checkout modules. ?

I had considered solving the problem by requesting Shopify to remove these two fields (how I can request this change? I’ve read that other italians have requested the same with success) and creating two custom fields (metafields) to be used during user registration (making it mandatory to purchase—although this option discourages many guests from buying) in case the selected country is ‘Italy’… and then using these fields by retrieving them in the order printout.

I really don’t like this possible solution… If anyone has managed to solve it in a simpler way, please share your solution, thanks!