Skip to content

Instantly share code, notes, and snippets.

@Zaglov
Last active January 22, 2018 10:02
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Zaglov/b48f0a8534770eba570fd467ae69d4c2 to your computer and use it in GitHub Desktop.
Save Zaglov/b48f0a8534770eba570fd467ae69d4c2 to your computer and use it in GitHub Desktop.
Create a global attribute
{
"data": [
{
"slug": "product-color",
"label": "Product color",
"options": [
{
"label": "Red",
"slug": "red",
"description": "Red is a very beautiful color for every product."
},
{
"label": "Blue",
"slug": "blue",
"description": "I am blue - dabadi badibai"
},
{
"label": "Green",
"slug": "green",
"description": "Green - like hope, you know?"
}
]
},
(...)
],
"shop": "demo-shop"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment