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:
parse_jsonfilter 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
- We fixed a bug where in some cases you could not read product metafields after setting one
Learn more about Code snippets.