LEPEL

Sidebar Sidebar Sidebar
  • Reggiseno Donna Balconcino Lepel 271 Belseno Cotton Con Ferretto - Coppa B - C Reggiseno Donna Balconcino Lepel 271 Belseno Cotton Con Ferretto - Coppa B - C

    LEPEL

    Reggiseno Donna Balconcino Lepel 271 Belseno Cotton Con Ferretto - Coppa B - C

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

    LEPEL

    Reggiseno Donna Lepel 270 Belseno Segreto Senza Ferretto - Coppa B - C

    €22,60
      Reggiseno Donna Senza Ferretto - Coppa B - C Lepel 270 Belseno Segreto - Confezione da 1 pezzo - Disponibile nei colori Bianco, Nero e Fard - Taglie dalla 2 alla 7 - Coppe B -...
    €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 650 Belseno Coppa Liscia Senza Ferretto - Coppa B Reggiseno Donna Lepel 650 Belseno Coppa Liscia Senza Ferretto - Coppa B

    LEPEL

    Reggiseno Donna Lepel 650 Belseno Coppa Liscia Senza Ferretto - Coppa B

    €22,60
      Reggiseno Donna  Coppa Liscia Senza Ferretto - Coppa B Lepel 650 Belseno - Confezione da 1 pezzo - Disponibile nei colori Bianco, Nero e Fard - Taglie dalla 2 alla 7 - Coppe B...
    €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 260 Segreto Belseno Senza Ferretto - Coppa B - C Reggiseno Donna Lepel 260 Segreto Belseno Senza Ferretto - Coppa B - C

    LEPEL

    Reggiseno Donna Lepel 260 Segreto Belseno Senza Ferretto - Coppa B - C

    €22,60
      Reggiseno Donna Senza Ferretto - Coppa B - C Lepel 260 Segreto Belseno  - Confezione da 1 pezzo - Disponibile nei colori Bianco, Nero e Fard - Taglie dalla 3 alla 7 - Coppe B e C...
    €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)
  • Reggiseno Donna Lepel 255 Balconette Bra in Pizzo Con Ferretto - Coppa B - C Reggiseno Donna Lepel 255 Balconette Bra in Pizzo Con Ferretto - Coppa B - C

    LEPEL

    Reggiseno Donna Lepel 255 Balconette Bra in Pizzo Con Ferretto - Coppa B - C

    €22,60
      Reggiseno Donna  Balconette Bra in Pizzo Con Ferretto - Coppa B - C Lepel 255 - Confezione da 1 pezzo - Disponibile nei colori Bianco, Nero e Fard - Taglie dalla 2...
    €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 251 Belseno in Pizzo Con Ferretto - Coppa B - C Reggiseno Donna Balconcino Lepel 251 Belseno in Pizzo Con Ferretto - Coppa B - C

    LEPEL

    Reggiseno Donna Balconcino Lepel 251 Belseno in Pizzo Con Ferretto - Coppa B - C

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

    LEPEL

    Reggiseno senza ferretto 250 Belseno Pizzo - Coppe B e C

    €22,60
      Reggiseno senza ferretto 250 Belseno Pizzo - Coppe B e C - Confezione da 1 pezzo - Disponibile nei colori Bianco, Nero e Fard - Taglie dalla 2 alla 7 - Coppe B e C Reggiseno Donna...
    €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)