Code snippet fixes and improvements

29 November 2023

Code snippets allow you to write code in Liquid to set different product fields. We've released several updates to the Code snippets to improve their usability:

  • The parse_json filter is more generous when converting a string to a JSON object. It will accept things like trailing commas in lists that aren't part of the official JSON specification
  • Number and boolean metafields are now rendered as number and boolean objects instead of strings. For example, a number metafield will now render as 123 instead of "123"
  • We fixed a bug where in some cases you could not read product metafields after setting one

Learn more about Code snippets.

To Changelog

Subscribe to our Newsletter

Sign up to receive our monthly roundup of ecommerce news, interviews and product updates