I have created a PDF template for orders and this works fine on the front-end. However, when I click to Download PDF through the admin panel in an order. I get an error that:
Variable "companyInfo" does not exist
companyInfo is a global field - I am using it to populate the company invoice details like so;
{{ companyInfo.companyName }}
(there are several of these).
Any ideas why this is an issue on the back-end and not the front-end and how to resolve?