How to display variants with options together?

Elka
New Member
7 0 0

Hello,

it's possible to get JSON variations like this with liquid?

//// JSON
[
  red: [
    {
      id: "xxx",
      option: "Red - XL"
    },
    {
      id: "xxx",
      option: "Red - L"
    },
  ],
  blue: [
  {
    id: "xxx",
    option: "Blue - XL"
  },
  {
    id: "xxx",
    option: "Blue - L"
  },
  ]
]

 

Replies 2 (2)
Jayvin
Shopify Partner
270 41 75

Hi.

To keep it simple. No.

Elka
New Member
7 0 0

I see, thank you @Jayvin  for the answer