POS receipt code editor: linter error blocks saving footer.liquid — even after reset to default

I’m unable to save changes to footer.liquid in the POS printed receipt code editor. The Save button is permanently grayed out due to a linter error.

Error: expected "|" before filter, line:40, col:22

What I’ve tried:

  • Reset footer.liquid to the Shopify default template — the default code cannot be saved
  • Reproduced in Chrome Incognito with no extensions — same result
  • Other files (sales-receipt.liquid, header.liquid, line-items.liquid) save successfully with the same error visible in the preview panel
  • Replaced all instances of and not return with and return == nil across every file — error persisted
  • Searched every template file for not return — none remain
  • The error line number shifts depending on which file is selected (line:40 vs line:50), suggesting cross-file compilation

My theory: The linter misinterprets CSS var() references (e.g., var(--font-large)) as Liquid syntax. Files with {% raw %} wrappers around <style> blocks can save; footer.liquid’s CSS doesn’t use var() but gets blocked by the global error from other files.

Environment:

  • POS Pro, two locations
  • POS v11.3
  • Chrome on macOS

Has anyone else hit this? Is there an API endpoint to update POS receipt templates programmatically as a workaround?

Hey @PhiladelphiaCandies - thanks for reaching out.

Happy to take a closer look at this. Could you share the full footer.liquid code that’s failing to save? The default template code that also won’t save after the reset would be great too, just so we can try to replicate on our end. If you’d prefer to share it via DM instead I’m happy to set that up.

Hope to hear from you soon!

Hey @PhiladelphiaCandies - just checking back in here, were you able to grab that footer.liquid code? Still happy to take a look whenever you get a chance.