How to display variants with options together?

Elka
Shopify Partner
15 0 1

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
284 42 89

Hi.

To keep it simple. No.

banned
Elka
Shopify Partner
15 0 1

I see, thank you @Jayvin  for the answer 😄