LEPEL

Sidebar Sidebar Sidebar
  • Reggiseno Donna Lepel 460 Allure Senza Ferretto con Pizzo Coppa B/C/D Reggiseno Donna Lepel 460 Allure Senza Ferretto con Pizzo Coppa B/C/D

    LEPEL

    Reggiseno Donna Lepel 460 Allure Senza Ferretto con Pizzo Coppa B/C/D

    €22,60
      Reggiseno Donna Senza Ferretto con Pizzo Coppa B/C/D Lepel 460 Allure - Confezione da 1 pezzo - Disponibile nei colori Bianco, Blu, Nero e Nudo - Taglie dalla 3 alla Taglia 7 - Coppe...
    €22,60
    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)
  • Reggiseno Donna Lepel 461 Allure con Ferretto in microfibra - Coppa B/C/D Reggiseno Donna Lepel 461 Allure con Ferretto in microfibra - Coppa B/C/D

    LEPEL

    Reggiseno Donna Lepel 461 Allure con Ferretto in microfibra - Coppa B/C/D

    €22,60
      Reggiseno Donna Senza Ferretto con Pizzo Coppa B/C/D Lepel 461 Allure - Confezione da 1 pezzo - Disponibile nei colori Bianco, Blu, Nero e Nudo - Taglie dalla 3 alla Taglia 7 - Coppe...
    €22,60
    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)
  • Reggiseno Donna Lepel 2741 Moon Fascia Spacer Con Ferretto - Coppa C - D Reggiseno Donna Lepel 2741 Moon Fascia Spacer Con Ferretto - Coppa C - D

    LEPEL

    Reggiseno Donna Lepel 2741 Moon Fascia Spacer Con Ferretto - Coppa C - D

    €23,60
      Reggiseno Donna Fascia Spacer Con Ferretto - Coppa C - D Lepel 2741 Moon - Confezione da 1 pezzo - Disponibile nei colori  Nero e Nudo - Taglie dalla 3 alla Taglia 7 - Coppe C e...
    €23,60
    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)
  • Reggiseno Donna Lepel 2740 Moon Balconcino Spacer Con Ferretto - Coppa C - D Reggiseno Donna Lepel 2740 Moon Balconcino Spacer Con Ferretto - Coppa C - D

    LEPEL

    Reggiseno Donna Lepel 2740 Moon Balconcino Spacer Con Ferretto - Coppa C - D

    €23,00
      Reggiseno Donna Balconcino Spacer Con Ferretto - Coppa C - D Lepel 2740 Moon - Confezione da 1 pezzo - Disponibile nei colori  Nero, Bianco e Nudo - Taglie dalla 3 alla Taglia...
    €23,00
    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)
  • Reggiseno Lepel 381 Balconcino Belseno Bouquet Con Ferretto Coppa B - C - D - E Reggiseno Lepel 381 Balconcino Belseno Bouquet Con Ferretto Coppa B - C - D - E

    LEPEL

    Reggiseno Lepel 381 Balconcino Belseno Bouquet Con Ferretto Coppa B - C - D - E

    €24,00
      Reggiseno Donna Con Ferretto Coppa B - C - D - E Lepel 381 Balconcino Belseno Bouquet - Confezione da 1 pezzo - Disponibile nei colori Nero, Bianco e Nudo - Taglie dalla 2 alla Taglia...
    €24,00
    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)
  • Reggiseno Donna Lepel 700 Belseno Romance Bra Senza Ferretto - Coppa C - D Reggiseno Donna Lepel 700 Belseno Romance Bra Senza Ferretto - Coppa C - D

    LEPEL

    Reggiseno Donna Lepel 700 Belseno Romance Bra Senza Ferretto - Coppa C - D

    €21,60
      Reggiseno Donna Senza Ferretto - Coppa C - D Lepel 700 Belseno Romance Bra - Confezione da 1 pezzo - Disponibile nei colori Bianco, Nero e Fard - Taglie dalla 3 alla 6 - Coppe C e...
    €21,60
    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)
  • Reggiseno Balconcino Lepel 701 Belseno Romance Con Ferretto - Coppa C - D - E Reggiseno Balconcino Lepel 701 Belseno Romance Con Ferretto - Coppa C - D - E

    LEPEL

    Reggiseno Balconcino Lepel 701 Belseno Romance Con Ferretto - Coppa C - D - E

    €22,60
      Reggiseno Balconcino  Con Ferretto - Coppa C - D - E Lepel 701 Belseno Romance - Confezione da 1 pezzo - Disponibile nei colori Bianco, Nero e Fard - Taglie dalla 3 alla 7 - Coppe...
    €22,60
    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)
  • Reggiseno Donna Balconcino Lepel 261 Belseno Con Ferretto - Coppa B - C - D Reggiseno Donna Balconcino Lepel 261 Belseno Con Ferretto - Coppa B - C - D

    LEPEL

    Reggiseno Donna Balconcino Lepel 261 Belseno Con Ferretto - Coppa B - C - D

    €22,60
      Reggiseno Donna Balconcino Con Ferretto - Coppa B - C - D Lepel 261 Belseno - Confezione da 1 pezzo - Disponibile nei colori Bianco, Nero e Fard - Taglie dalla 2 alla 7 - Coppe B C e...
    €22,60
    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)