WRK

Sidebar Sidebar Sidebar
  • Maglia lupetto Ragazzo tecnica in fibra DRYARN WRK 382 Maglia lupetto Ragazzo tecnica in fibra DRYARN WRK 382

    WRK

    Maglia lupetto Ragazzo tecnica in fibra DRYARN WRK 382

    €25,30
      Maglia lupetto Ragazzo tecnica in fibra DRYARN WRK 382 - Confezione da 1 - Disponibile nel Colore Nero - Taglie S/M  M/L Il lupetto WRK è il capo perfetto da indossare come primo...
    €25,30
    Caricamento...
    <> // setTimeout(function() { // jquery(function($) { // let productIds = []; // let products = jquery($('.productListing li article.card')) // // console.log(products); // products.each(function(index, value) { // // console.log(index, jquery(value).data('product-id')); // productIds.push(jquery(value).data('product-id')); // }) // // console.log('productIds', productIds); // const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL3N0b3JlLWo3dDJ2NnV6c3EubXliaWdjb21tZXJjZS5jb20iXSwiZWF0IjoxNzMyMzU2NjQ3LCJpYXQiOjE3MzIxODM4NDcsImlzcyI6IkJDIiwic2lkIjoxMDAzMjgwMDk2LCJzdWIiOiJCQyIsInN1Yl90eXBlIjowLCJ0b2tlbl90eXBlIjoxfQ.D2j6zCn0y2HXyZ-AhqrREGG3Ny2fV_nRZ3PoRX4abt12Bn8xzfUdM0AILHQyv4nSW2XTFtW-ocg-FO6Lsxy0Eg'; // console.log(productIds); // jquery(productIds).each(function(index, id) { // fetch('/graphql', { // method: 'POST', // headers: { // 'Content-Type': 'application/json', // 'Authorization': `Bearer ${token}`, // }, // body: JSON.stringify({ // query: ` // query SeveralProductsByID { // site { // products(entityIds: [${id}]) { // edges { // node { // entityId // name // defaultImage{ // urlOriginal // } // variants(first: 50){ // edges{ // node{ // entityId // defaultImage{ // urlOriginal // } // productOptions(first: 50) { // edges { // node { // entityId // displayName // isRequired // ... on MultipleChoiceOption { // displayStyle // values { // edges { // node { // entityId // label // isDefault // ... on SwatchOptionValue { // hexColors // imageUrl(width: 150) // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // ` // }), // }) // .then(response => response.json()) // .then(data => { // // Estrai i prodotti // const products = data.data.site.products.edges; // // Filtra i valori con displayName "Colore" e displayStyle "Swatch" // let filteredColors = products.flatMap(product => // product.node.variants.edges.flatMap(variant => // variant.node.productOptions.edges // .filter(option => option.node.displayName === "Colore" && option.node.displayStyle === "Swatch") // .flatMap(option => option.node.values.edges.map(value => value.node)) // ) // ); // // Rendi il risultato univoco basandoti su entityId // filteredColors = Object.values( // filteredColors.reduce((acc, color) => { // acc[color.entityId] = color; // return acc; // }, {}) // ); // console.log(filteredColors); // }) // .catch(error => { // console.error('GraphQL Error:', error); // }); // }) // }) // }, 2000)
  • Leggings Termico ragazzo in fibra Dryarn WRK 383 Leggings Termico ragazzo in fibra Dryarn WRK 383

    WRK

    Leggings Termico ragazzo in fibra Dryarn WRK 383

    €14,50
      Leggings Termico ragazzo in fibra Dryarn WRK 383 - Confezione da 1 - Disponibile nel Colore Nero - Taglie S/M (CM140/155) M/L (CM 155/172) Questo capo è realizzato interamente in...
    €14,50
    Caricamento...
    <> // setTimeout(function() { // jquery(function($) { // let productIds = []; // let products = jquery($('.productListing li article.card')) // // console.log(products); // products.each(function(index, value) { // // console.log(index, jquery(value).data('product-id')); // productIds.push(jquery(value).data('product-id')); // }) // // console.log('productIds', productIds); // const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL3N0b3JlLWo3dDJ2NnV6c3EubXliaWdjb21tZXJjZS5jb20iXSwiZWF0IjoxNzMyMzU2NjQ3LCJpYXQiOjE3MzIxODM4NDcsImlzcyI6IkJDIiwic2lkIjoxMDAzMjgwMDk2LCJzdWIiOiJCQyIsInN1Yl90eXBlIjowLCJ0b2tlbl90eXBlIjoxfQ.D2j6zCn0y2HXyZ-AhqrREGG3Ny2fV_nRZ3PoRX4abt12Bn8xzfUdM0AILHQyv4nSW2XTFtW-ocg-FO6Lsxy0Eg'; // console.log(productIds); // jquery(productIds).each(function(index, id) { // fetch('/graphql', { // method: 'POST', // headers: { // 'Content-Type': 'application/json', // 'Authorization': `Bearer ${token}`, // }, // body: JSON.stringify({ // query: ` // query SeveralProductsByID { // site { // products(entityIds: [${id}]) { // edges { // node { // entityId // name // defaultImage{ // urlOriginal // } // variants(first: 50){ // edges{ // node{ // entityId // defaultImage{ // urlOriginal // } // productOptions(first: 50) { // edges { // node { // entityId // displayName // isRequired // ... on MultipleChoiceOption { // displayStyle // values { // edges { // node { // entityId // label // isDefault // ... on SwatchOptionValue { // hexColors // imageUrl(width: 150) // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // ` // }), // }) // .then(response => response.json()) // .then(data => { // // Estrai i prodotti // const products = data.data.site.products.edges; // // Filtra i valori con displayName "Colore" e displayStyle "Swatch" // let filteredColors = products.flatMap(product => // product.node.variants.edges.flatMap(variant => // variant.node.productOptions.edges // .filter(option => option.node.displayName === "Colore" && option.node.displayStyle === "Swatch") // .flatMap(option => option.node.values.edges.map(value => value.node)) // ) // ); // // Rendi il risultato univoco basandoti su entityId // filteredColors = Object.values( // filteredColors.reduce((acc, color) => { // acc[color.entityId] = color; // return acc; // }, {}) // ); // console.log(filteredColors); // }) // .catch(error => { // console.error('GraphQL Error:', error); // }); // }) // }) // }, 2000)
  • Maglia Termica Lupetto Manica Lunga WRK 352 in Dryarn ideale per lo Sport Maglia Termica Lupetto Manica Lunga WRK 352 in Dryarn ideale per lo Sport

    WRK

    Maglia Termica Lupetto Manica Lunga WRK 352 in Dryarn ideale per lo Sport

    €26,40
      Maglia Lupetto Termica Donna Manica Lunga WRK 352 in DRYARN ideale per lo Sport - Confezione da 1 pezzo. - Disponibile nelle due varianti : nero/antracite e nero/fucsia fluo - Taglie...
    €26,40
    Caricamento...
    <> // setTimeout(function() { // jquery(function($) { // let productIds = []; // let products = jquery($('.productListing li article.card')) // // console.log(products); // products.each(function(index, value) { // // console.log(index, jquery(value).data('product-id')); // productIds.push(jquery(value).data('product-id')); // }) // // console.log('productIds', productIds); // const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL3N0b3JlLWo3dDJ2NnV6c3EubXliaWdjb21tZXJjZS5jb20iXSwiZWF0IjoxNzMyMzU2NjQ3LCJpYXQiOjE3MzIxODM4NDcsImlzcyI6IkJDIiwic2lkIjoxMDAzMjgwMDk2LCJzdWIiOiJCQyIsInN1Yl90eXBlIjowLCJ0b2tlbl90eXBlIjoxfQ.D2j6zCn0y2HXyZ-AhqrREGG3Ny2fV_nRZ3PoRX4abt12Bn8xzfUdM0AILHQyv4nSW2XTFtW-ocg-FO6Lsxy0Eg'; // console.log(productIds); // jquery(productIds).each(function(index, id) { // fetch('/graphql', { // method: 'POST', // headers: { // 'Content-Type': 'application/json', // 'Authorization': `Bearer ${token}`, // }, // body: JSON.stringify({ // query: ` // query SeveralProductsByID { // site { // products(entityIds: [${id}]) { // edges { // node { // entityId // name // defaultImage{ // urlOriginal // } // variants(first: 50){ // edges{ // node{ // entityId // defaultImage{ // urlOriginal // } // productOptions(first: 50) { // edges { // node { // entityId // displayName // isRequired // ... on MultipleChoiceOption { // displayStyle // values { // edges { // node { // entityId // label // isDefault // ... on SwatchOptionValue { // hexColors // imageUrl(width: 150) // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // ` // }), // }) // .then(response => response.json()) // .then(data => { // // Estrai i prodotti // const products = data.data.site.products.edges; // // Filtra i valori con displayName "Colore" e displayStyle "Swatch" // let filteredColors = products.flatMap(product => // product.node.variants.edges.flatMap(variant => // variant.node.productOptions.edges // .filter(option => option.node.displayName === "Colore" && option.node.displayStyle === "Swatch") // .flatMap(option => option.node.values.edges.map(value => value.node)) // ) // ); // // Rendi il risultato univoco basandoti su entityId // filteredColors = Object.values( // filteredColors.reduce((acc, color) => { // acc[color.entityId] = color; // return acc; // }, {}) // ); // console.log(filteredColors); // }) // .catch(error => { // console.error('GraphQL Error:', error); // }); // }) // }) // }, 2000)
  • Maglia Termica Donna Manica Corta WRK 351 in Dryan ideale per lo Sport Maglia Termica Donna Manica Corta WRK 351 in Dryan ideale per lo Sport

    WRK

    Maglia Termica Donna Manica Corta WRK 351 in Dryan ideale per lo Sport

    €21,40
      Maglia Termica Donna Manica Corta WRK 351 in DRYARN ideale per lo Sport - Confezione da 1 pezzo. - Disponibile nelle due varianti : nero/antracite e nero/fucsia fluo - Taglie dalla S/M...
    €21,40
    Caricamento...
    <> // setTimeout(function() { // jquery(function($) { // let productIds = []; // let products = jquery($('.productListing li article.card')) // // console.log(products); // products.each(function(index, value) { // // console.log(index, jquery(value).data('product-id')); // productIds.push(jquery(value).data('product-id')); // }) // // console.log('productIds', productIds); // const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL3N0b3JlLWo3dDJ2NnV6c3EubXliaWdjb21tZXJjZS5jb20iXSwiZWF0IjoxNzMyMzU2NjQ3LCJpYXQiOjE3MzIxODM4NDcsImlzcyI6IkJDIiwic2lkIjoxMDAzMjgwMDk2LCJzdWIiOiJCQyIsInN1Yl90eXBlIjowLCJ0b2tlbl90eXBlIjoxfQ.D2j6zCn0y2HXyZ-AhqrREGG3Ny2fV_nRZ3PoRX4abt12Bn8xzfUdM0AILHQyv4nSW2XTFtW-ocg-FO6Lsxy0Eg'; // console.log(productIds); // jquery(productIds).each(function(index, id) { // fetch('/graphql', { // method: 'POST', // headers: { // 'Content-Type': 'application/json', // 'Authorization': `Bearer ${token}`, // }, // body: JSON.stringify({ // query: ` // query SeveralProductsByID { // site { // products(entityIds: [${id}]) { // edges { // node { // entityId // name // defaultImage{ // urlOriginal // } // variants(first: 50){ // edges{ // node{ // entityId // defaultImage{ // urlOriginal // } // productOptions(first: 50) { // edges { // node { // entityId // displayName // isRequired // ... on MultipleChoiceOption { // displayStyle // values { // edges { // node { // entityId // label // isDefault // ... on SwatchOptionValue { // hexColors // imageUrl(width: 150) // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // ` // }), // }) // .then(response => response.json()) // .then(data => { // // Estrai i prodotti // const products = data.data.site.products.edges; // // Filtra i valori con displayName "Colore" e displayStyle "Swatch" // let filteredColors = products.flatMap(product => // product.node.variants.edges.flatMap(variant => // variant.node.productOptions.edges // .filter(option => option.node.displayName === "Colore" && option.node.displayStyle === "Swatch") // .flatMap(option => option.node.values.edges.map(value => value.node)) // ) // ); // // Rendi il risultato univoco basandoti su entityId // filteredColors = Object.values( // filteredColors.reduce((acc, color) => { // acc[color.entityId] = color; // return acc; // }, {}) // ); // console.log(filteredColors); // }) // .catch(error => { // console.error('GraphQL Error:', error); // }); // }) // }) // }, 2000)
  • Leggings 353 Termico donna WRK in Dryarn, Leggera, isolante, traspirante Leggings 353 Termico donna WRK in Dryarn, Leggera, isolante, traspirante

    WRK

    Leggings 353 Termico donna WRK in Dryarn, Leggera, isolante, traspirante

    €16,50
     Leggings 353 Termico donna in DRYARN, una fibra altamente performante. E' un filato innovativo che offre a chi lo indossa comfort, tecnologia e praticità. Leggera, isolante, traspirante, la...
    €16,50
    Caricamento...
    <> // setTimeout(function() { // jquery(function($) { // let productIds = []; // let products = jquery($('.productListing li article.card')) // // console.log(products); // products.each(function(index, value) { // // console.log(index, jquery(value).data('product-id')); // productIds.push(jquery(value).data('product-id')); // }) // // console.log('productIds', productIds); // const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL3N0b3JlLWo3dDJ2NnV6c3EubXliaWdjb21tZXJjZS5jb20iXSwiZWF0IjoxNzMyMzU2NjQ3LCJpYXQiOjE3MzIxODM4NDcsImlzcyI6IkJDIiwic2lkIjoxMDAzMjgwMDk2LCJzdWIiOiJCQyIsInN1Yl90eXBlIjowLCJ0b2tlbl90eXBlIjoxfQ.D2j6zCn0y2HXyZ-AhqrREGG3Ny2fV_nRZ3PoRX4abt12Bn8xzfUdM0AILHQyv4nSW2XTFtW-ocg-FO6Lsxy0Eg'; // console.log(productIds); // jquery(productIds).each(function(index, id) { // fetch('/graphql', { // method: 'POST', // headers: { // 'Content-Type': 'application/json', // 'Authorization': `Bearer ${token}`, // }, // body: JSON.stringify({ // query: ` // query SeveralProductsByID { // site { // products(entityIds: [${id}]) { // edges { // node { // entityId // name // defaultImage{ // urlOriginal // } // variants(first: 50){ // edges{ // node{ // entityId // defaultImage{ // urlOriginal // } // productOptions(first: 50) { // edges { // node { // entityId // displayName // isRequired // ... on MultipleChoiceOption { // displayStyle // values { // edges { // node { // entityId // label // isDefault // ... on SwatchOptionValue { // hexColors // imageUrl(width: 150) // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // ` // }), // }) // .then(response => response.json()) // .then(data => { // // Estrai i prodotti // const products = data.data.site.products.edges; // // Filtra i valori con displayName "Colore" e displayStyle "Swatch" // let filteredColors = products.flatMap(product => // product.node.variants.edges.flatMap(variant => // variant.node.productOptions.edges // .filter(option => option.node.displayName === "Colore" && option.node.displayStyle === "Swatch") // .flatMap(option => option.node.values.edges.map(value => value.node)) // ) // ); // // Rendi il risultato univoco basandoti su entityId // filteredColors = Object.values( // filteredColors.reduce((acc, color) => { // acc[color.entityId] = color; // return acc; // }, {}) // ); // console.log(filteredColors); // }) // .catch(error => { // console.error('GraphQL Error:', error); // }); // }) // }) // }, 2000)
  • WRK Maglia Uomo Termica Mezza Manica Realizzato in Fibra Dryarn WRK-301 WRK Maglia Uomo Termica Mezza Manica Realizzato in Fibra Dryarn WRK-301

    WRK

    WRK Maglia Uomo Termica Mezza Manica Realizzato in Fibra Dryarn WRK-301

    €22,20
     T-SHIRT TECNICA IN FIBRA DRYARN WRK301 UOMO MEZZA MANICA Questo capo è realizzato interamente in Dryarn®, un filato innovativo ed altamente performante che dona a chi lo indossa comfort,...
    €22,20
    Caricamento...
    <> // setTimeout(function() { // jquery(function($) { // let productIds = []; // let products = jquery($('.productListing li article.card')) // // console.log(products); // products.each(function(index, value) { // // console.log(index, jquery(value).data('product-id')); // productIds.push(jquery(value).data('product-id')); // }) // // console.log('productIds', productIds); // const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL3N0b3JlLWo3dDJ2NnV6c3EubXliaWdjb21tZXJjZS5jb20iXSwiZWF0IjoxNzMyMzU2NjQ3LCJpYXQiOjE3MzIxODM4NDcsImlzcyI6IkJDIiwic2lkIjoxMDAzMjgwMDk2LCJzdWIiOiJCQyIsInN1Yl90eXBlIjowLCJ0b2tlbl90eXBlIjoxfQ.D2j6zCn0y2HXyZ-AhqrREGG3Ny2fV_nRZ3PoRX4abt12Bn8xzfUdM0AILHQyv4nSW2XTFtW-ocg-FO6Lsxy0Eg'; // console.log(productIds); // jquery(productIds).each(function(index, id) { // fetch('/graphql', { // method: 'POST', // headers: { // 'Content-Type': 'application/json', // 'Authorization': `Bearer ${token}`, // }, // body: JSON.stringify({ // query: ` // query SeveralProductsByID { // site { // products(entityIds: [${id}]) { // edges { // node { // entityId // name // defaultImage{ // urlOriginal // } // variants(first: 50){ // edges{ // node{ // entityId // defaultImage{ // urlOriginal // } // productOptions(first: 50) { // edges { // node { // entityId // displayName // isRequired // ... on MultipleChoiceOption { // displayStyle // values { // edges { // node { // entityId // label // isDefault // ... on SwatchOptionValue { // hexColors // imageUrl(width: 150) // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // ` // }), // }) // .then(response => response.json()) // .then(data => { // // Estrai i prodotti // const products = data.data.site.products.edges; // // Filtra i valori con displayName "Colore" e displayStyle "Swatch" // let filteredColors = products.flatMap(product => // product.node.variants.edges.flatMap(variant => // variant.node.productOptions.edges // .filter(option => option.node.displayName === "Colore" && option.node.displayStyle === "Swatch") // .flatMap(option => option.node.values.edges.map(value => value.node)) // ) // ); // // Rendi il risultato univoco basandoti su entityId // filteredColors = Object.values( // filteredColors.reduce((acc, color) => { // acc[color.entityId] = color; // return acc; // }, {}) // ); // console.log(filteredColors); // }) // .catch(error => { // console.error('GraphQL Error:', error); // }); // }) // }) // }, 2000)
  • WRK Lupetto Uomo Maglia Termica Realizzato in Fibra Dryarn WRK-302 WRK Lupetto Uomo Maglia Termica Realizzato in Fibra Dryarn WRK-302

    WRK

    WRK Lupetto Uomo Maglia Termica Realizzato in Fibra Dryarn WRK-302

    €26,80
     Il lupetto WRK è il capo perfetto da indossare come primo strato nel periodo invernale perché essendo realizzato interamente in Dryarn® riesce a essere isolante e traspirante pur essendo molto...
    €26,80
    Caricamento...
    <> // setTimeout(function() { // jquery(function($) { // let productIds = []; // let products = jquery($('.productListing li article.card')) // // console.log(products); // products.each(function(index, value) { // // console.log(index, jquery(value).data('product-id')); // productIds.push(jquery(value).data('product-id')); // }) // // console.log('productIds', productIds); // const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL3N0b3JlLWo3dDJ2NnV6c3EubXliaWdjb21tZXJjZS5jb20iXSwiZWF0IjoxNzMyMzU2NjQ3LCJpYXQiOjE3MzIxODM4NDcsImlzcyI6IkJDIiwic2lkIjoxMDAzMjgwMDk2LCJzdWIiOiJCQyIsInN1Yl90eXBlIjowLCJ0b2tlbl90eXBlIjoxfQ.D2j6zCn0y2HXyZ-AhqrREGG3Ny2fV_nRZ3PoRX4abt12Bn8xzfUdM0AILHQyv4nSW2XTFtW-ocg-FO6Lsxy0Eg'; // console.log(productIds); // jquery(productIds).each(function(index, id) { // fetch('/graphql', { // method: 'POST', // headers: { // 'Content-Type': 'application/json', // 'Authorization': `Bearer ${token}`, // }, // body: JSON.stringify({ // query: ` // query SeveralProductsByID { // site { // products(entityIds: [${id}]) { // edges { // node { // entityId // name // defaultImage{ // urlOriginal // } // variants(first: 50){ // edges{ // node{ // entityId // defaultImage{ // urlOriginal // } // productOptions(first: 50) { // edges { // node { // entityId // displayName // isRequired // ... on MultipleChoiceOption { // displayStyle // values { // edges { // node { // entityId // label // isDefault // ... on SwatchOptionValue { // hexColors // imageUrl(width: 150) // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // ` // }), // }) // .then(response => response.json()) // .then(data => { // // Estrai i prodotti // const products = data.data.site.products.edges; // // Filtra i valori con displayName "Colore" e displayStyle "Swatch" // let filteredColors = products.flatMap(product => // product.node.variants.edges.flatMap(variant => // variant.node.productOptions.edges // .filter(option => option.node.displayName === "Colore" && option.node.displayStyle === "Swatch") // .flatMap(option => option.node.values.edges.map(value => value.node)) // ) // ); // // Rendi il risultato univoco basandoti su entityId // filteredColors = Object.values( // filteredColors.reduce((acc, color) => { // acc[color.entityId] = color; // return acc; // }, {}) // ); // console.log(filteredColors); // }) // .catch(error => { // console.error('GraphQL Error:', error); // }); // }) // }) // }, 2000)
  • WRK Pantalone Invernale Uomo Termico Tecnico Realizzato in Fibra DRYAN WRK-303 WRK Pantalone Invernale Uomo Termico Tecnico Realizzato in Fibra DRYAN WRK-303

    WRK

    WRK Pantalone Invernale Uomo Termico Tecnico Realizzato in Fibra DRYAN WRK-303

    €16,50
     LEGGINGS TECNICO IN FIBRA DRYARN WRK 303 Questo capo è realizzato interamente in Dryarn®, un filato innovativo ed altamente performante che dona a chi lo indossa comfort, tecnologia e...
    €16,50
    Caricamento...
    <> // setTimeout(function() { // jquery(function($) { // let productIds = []; // let products = jquery($('.productListing li article.card')) // // console.log(products); // products.each(function(index, value) { // // console.log(index, jquery(value).data('product-id')); // productIds.push(jquery(value).data('product-id')); // }) // // console.log('productIds', productIds); // const token = 'eyJ0eXAiOiJKV1QiLCJhbGciOiJFUzI1NiJ9.eyJjaWQiOlsxXSwiY29ycyI6WyJodHRwczovL3N0b3JlLWo3dDJ2NnV6c3EubXliaWdjb21tZXJjZS5jb20iXSwiZWF0IjoxNzMyMzU2NjQ3LCJpYXQiOjE3MzIxODM4NDcsImlzcyI6IkJDIiwic2lkIjoxMDAzMjgwMDk2LCJzdWIiOiJCQyIsInN1Yl90eXBlIjowLCJ0b2tlbl90eXBlIjoxfQ.D2j6zCn0y2HXyZ-AhqrREGG3Ny2fV_nRZ3PoRX4abt12Bn8xzfUdM0AILHQyv4nSW2XTFtW-ocg-FO6Lsxy0Eg'; // console.log(productIds); // jquery(productIds).each(function(index, id) { // fetch('/graphql', { // method: 'POST', // headers: { // 'Content-Type': 'application/json', // 'Authorization': `Bearer ${token}`, // }, // body: JSON.stringify({ // query: ` // query SeveralProductsByID { // site { // products(entityIds: [${id}]) { // edges { // node { // entityId // name // defaultImage{ // urlOriginal // } // variants(first: 50){ // edges{ // node{ // entityId // defaultImage{ // urlOriginal // } // productOptions(first: 50) { // edges { // node { // entityId // displayName // isRequired // ... on MultipleChoiceOption { // displayStyle // values { // edges { // node { // entityId // label // isDefault // ... on SwatchOptionValue { // hexColors // imageUrl(width: 150) // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // } // ` // }), // }) // .then(response => response.json()) // .then(data => { // // Estrai i prodotti // const products = data.data.site.products.edges; // // Filtra i valori con displayName "Colore" e displayStyle "Swatch" // let filteredColors = products.flatMap(product => // product.node.variants.edges.flatMap(variant => // variant.node.productOptions.edges // .filter(option => option.node.displayName === "Colore" && option.node.displayStyle === "Swatch") // .flatMap(option => option.node.values.edges.map(value => value.node)) // ) // ); // // Rendi il risultato univoco basandoti su entityId // filteredColors = Object.values( // filteredColors.reduce((acc, color) => { // acc[color.entityId] = color; // return acc; // }, {}) // ); // console.log(filteredColors); // }) // .catch(error => { // console.error('GraphQL Error:', error); // }); // }) // }) // }, 2000)