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 returnwithand return == nilacross 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?