Accessing Brand Assets inside Shopify Order Printer

Hello, I’m working on an order template in the Shopify Order Printer, and I’m trying to add our logo. I’ve found plenty of answers for how to do this, but they all suck. Every solution requires to hardcode the image src url in an tag. Why can’t I use {{ shop.brand.logo | image_url: width: XXX, height: XXX | image_tag }} like i do everywhere else? I’ve tired it and it fails. If/when our logo changes, I’ll have to remember to go back in and edit all of these templates… Why can’t I use my brand variables here? Thats what they’re there for, right?

Whats even stranger is that the {{ shop }} object is accessible, since its rendering out our address and other shop information… it seems like its just the {{ shop.brand }} object that isn’t accessible in the template?

Using {{ shop.brand.logo | image_url: width: XXX, height: XXX | image_tag }} in Shopify Order Printer templates can indeed be frustrating due to its limitations. The Shopify Order Printer app doesn’t support the same liquid objects and filters as the online store templates, which is why the {{ shop.brand }} object isn’t accessible.

To dynamically include your logo, you might need to rely on a workaround. Consider storing your logo URL in a shop metafield or another accessible liquid object. This way, you can update the metafield whenever the logo changes without altering the template itself. Here’s a simplified approach:

Create a new metafield for your shop (e.g., custom.logo_url).