MSQC SKU: FBY111973 | MFG SKU: MASQBD214-Q
$17.52
$18.76
Quilters Cash
Earn
36
yards
Quilters Cash
Earn
36
Description
Wide backing featuring small white dots on an aqua background. An extension of Kim Christopherson’s Kimberbell Basics line, Kimberbell Quilt Backs is a delightful collection of wide backings from Maywood Studio. These backings feature flowers, dots, swirls, and more in many colors. Go wide!
100% Cotton
108" Wide
Details
Brand: Maywood Studio
Collection: Kimberbell 108" Quilt Backing
Color: Aqua/Teal/Turquoise
Designer: Kim Christopherson of Kimberbell Designs
Material: Cotton
Product Type: Fabric
Style: Quilt Backing / Wide Fabrics
Theme: Dots & Spots
Width: 106" / 108" / 110"
MSQC SKU: FBY111973
MFG SKU: MASQBD214-Q
Free Shipping at $59
Save to:
Email This Wishlist
wishlist will be sent to:0friends
Wishlist not found
`).prependTo('.wishlist-entries'); } else { $(`We're having trouble loading your wishlist right now. Please try again later.
`).prependTo('.wishlist-entries'); } } } else if (template === 'page') { if (statusCode === 404) { $(`Wishlist not found
`).prependTo('.wishlist-entries'); } else { $(`We're having trouble loading this wishlist right now. Please try again later.
`).prependTo('.wishlist-entries'); } } } async function toggleCollectionModal(modal, pageSr, variantId) { populatePdpModal(wishlistApiBase, $('#wishlist-modal'), variantId, true); $('form#add-to-wishlists').attr('data-variant-id', variantId); toggleModal(modal, pageSr, variantId); } async function populatePdpModal(apiBaseUrl, modal, variantId, onPageLoad = false) { $('form#add-to-wishlists div.toggle-create-wishlist').removeClass('cursor-pointer').addClass('pointer-events-none opacity-75'); $('form#add-to-wishlists button:submit').prop('disabled', true).addClass('pointer-events-none opacity-75'); $('.lds-ring').show(); try { const variantCheck = await checkForVariantOnAllLists(apiBaseUrl, variantId); await getWishlistsFromPdp(modal, variantId, variantCheck); $('form#add-to-wishlists div.toggle-create-wishlist').addClass('cursor-pointer').removeClass('pointer-events-none opacity-75'); $('form#add-to-wishlists button:submit').prop('disabled', false).removeClass('pointer-events-none opacity-75'); $('.lds-ring').hide(); } catch (err) { console.error(err); } } async function checkForVariantOnAllLists(apiBaseUrl, variantId) { let entriesWithThisVariant = []; try { const response = await fetch(`${apiBaseUrl}/wishlists?variant_id=${variantId}&auth=eyJpdiI6IjF4VENIb0tzMHJ0THJaWkxKOFcvdFE9PSIsInZhbHVlIjoiSkxjaVlma1pEVVgxbzRuNXc0YnRGZz09IiwibWFjIjoiY2JiZmQzNzI2NmQ2MjgyNjZjYmI2M2I0MTRmN2FlY2NkOWY3ZDBlZmJlYTNkZjFkMDY0MGFkN2VkMDg2NDc4NSIsInRhZyI6IiJ9:1732890871::5c04ded153d971b0af8025235de7c5d45fd286870f160acca283b88b65f6dd6f&cid=`); const data = await response.json(); if (data.length) { $('svg.wishlist-heart-icon').replaceWith(heartFilledSvg); entriesWithThisVariant = Object.values( data.reduce((acc, obj) => ({ ...acc, [obj.public_id]: obj }), {}) ).map((list) => list.entries) .flat() .filter((entry) => entry.variant_id === parseInt(variantId)); } else { $('svg.wishlist-heart-icon').replaceWith(heartOutlinedSvg); entriesWithThisVariant = []; } } catch (err) { console.error(err); } return entriesWithThisVariant; } async function getFavorites(apiBaseUrl) { let favorites = null; try { const response = await fetch(`${apiBaseUrl}/favorites?auth=eyJpdiI6IjF4VENIb0tzMHJ0THJaWkxKOFcvdFE9PSIsInZhbHVlIjoiSkxjaVlma1pEVVgxbzRuNXc0YnRGZz09IiwibWFjIjoiY2JiZmQzNzI2NmQ2MjgyNjZjYmI2M2I0MTRmN2FlY2NkOWY3ZDBlZmJlYTNkZjFkMDY0MGFkN2VkMDg2NDc4NSIsInRhZyI6IiJ9:1732890871::5c04ded153d971b0af8025235de7c5d45fd286870f160acca283b88b65f6dd6f&cid=`); const data = await response.json(); favorites = data; } catch (err) { console.error(err); favorites = null; } return favorites; } async function getAllWishlists(apiBaseUrl) { $('.loading_spinner').css('display', 'block'); try { const response = await fetch(`${apiBaseUrl}/wishlists?auth=eyJpdiI6IjF4VENIb0tzMHJ0THJaWkxKOFcvdFE9PSIsInZhbHVlIjoiSkxjaVlma1pEVVgxbzRuNXc0YnRGZz09IiwibWFjIjoiY2JiZmQzNzI2NmQ2MjgyNjZjYmI2M2I0MTRmN2FlY2NkOWY3ZDBlZmJlYTNkZjFkMDY0MGFkN2VkMDg2NDc4NSIsInRhZyI6IiJ9:1732890871::5c04ded153d971b0af8025235de7c5d45fd286870f160acca283b88b65f6dd6f&cid=`); if (!response.ok) { $('.loading_spinner').css('display', 'none'); cantLoadMessage('account', response.status, 'index'); throw new Error(); } const data = await response.json(); const saveForLaterList = data.find(({ name }) => name.toLowerCase() === "save for later"); let saveForLaterListId = saveForLaterList ? saveForLaterList.public_id : null; const favoritesList = data.find(({ name }) => name.toLowerCase() === "favorites"); let favoritesListId = favoritesList ? favoritesList.public_id : null; const watchTagList = data.find(({ name }) => name.toLowerCase() === "watch tag"); let watchTagListId = watchTagList ? watchTagList.public_id : null; let createFavorites = !favoritesListId && await getFavorites(apiBaseUrl); let createFavoritesListId = !favoritesListId && createFavorites ? createFavorites.public_id : null; $('.loading_spinner').css('display', 'none'); // re-design var numWish = 0; var followedWishlistId = ""; var followedItems=''; data.forEach((w, index) => { if (w.public_id !== saveForLaterListId && w.public_id !== watchTagListId) { if (favoritesListId && w.public_id === favoritesListId) { createWishlistElement(w, pageValue, favoritesListId); } else { createWishlistElement(w, pageValue); } numWish++; } else if (w.public_id == watchTagListId) { if(w.entries.length >= 1) { followedWishlistId = w.public_id; followedItems = w.entries.length; } } }); if(followedItems > 4) { $("#show-all-followed-collection").addClass("md:flex"); } if(followedItems > 6){ $(".followed-collection-mobile").removeClass("hidden").addClass("flex md:hidden"); } // call function for followed colletion section createFollowedCollections(followedWishlistId) if (numWish >= 2) { console.log("Show list of wishlists"); var emptyWishlist = document.querySelector(".empty-wishlist"); if (emptyWishlist) { emptyWishlist.remove(); var showAllWish = document.querySelector("#show-all-lists-btn"); let wishAllPage = params.get('page'); if (wishAllPage == "all") { showAllWish.style.display="none"; } } } else { // only fav wishlist wich is pre-created showing empty if only this have var onlyFav = document.querySelector(".all-wishlist-items-container"); var showAllBtn = document.querySelector("#show-all-lists-btn"); onlyFav.remove(); showAllBtn.remove(); } if (createFavoritesListId) { createWishlistElement(createFavorites, pageValue, createFavoritesListId); } else if (!data.length && !createFavoritesListId) { $('.wishlists-container').append(`No wishlists found. Create a new list to get started!
`); } fillEmptyThumbnails(pageValue); // move Favorites list to the first position $(`.wishlist-item[data-favorites="1"]`).prependTo('.wishlists-container'); // change this later pageValue === 'index' && itemsPerPage(pages, pageValue); } catch (err) { console.error(err); } } // creating followed collection for wishlist Dashboard async function createFollowedCollections(followedWishlistId) { if(followedWishlistId) { $('.followed-collection-items').empty(); $(".followed-collection-items").addClass("grid grid-cols-2 md:grid-cols-3 lg:grid-cols-4 mt-10 gap-8"); const response = await fetch(`${wishlistApiBase}/wishlists/${followedWishlistId}?auth=eyJpdiI6IjF4VENIb0tzMHJ0THJaWkxKOFcvdFE9PSIsInZhbHVlIjoiSkxjaVlma1pEVVgxbzRuNXc0YnRGZz09IiwibWFjIjoiY2JiZmQzNzI2NmQ2MjgyNjZjYmI2M2I0MTRmN2FlY2NkOWY3ZDBlZmJlYTNkZjFkMDY0MGFkN2VkMDg2NDc4NSIsInRhZyI6IiJ9:1732890871::5c04ded153d971b0af8025235de7c5d45fd286870f160acca283b88b65f6dd6f&cid=`); const followedCollectionData = await response.json(); let counter = 0; followedCollectionData.entries.forEach((item, index) => { counter++; if(index <= 5){ let removeEntry = `removeEntry('${item.wishlist_public_id}', ${item.id}, '');`; $(".followed-collection-items").append(`${item.metafield_key ? ``:''} ${item.metafield_value ? ` ` : ` ` } ${item.metafield_key ? `` : ''}
${item.metafield_key ? `
`:''} ${item.tag_value} ${item.metafield_key ? `` : ''}
${favoritesListId ? '' : ` ` }
${item.metafield_key ? `` : ''} ${item.metafield_value ? ` ` : ` ` } ${item.metafield_key ? `` : ''}
${item.metafield_key ? `
`:''} ${item.tag_value} ${item.metafield_key ? `` : ''}
${isEntry && window.location.pathname !== '/pages/lists' ? `` : ''}
$${(parseFloat(variant.price) * purchaseQty).toFixed(2)}
$${(parseFloat(variant.compare_at_price) * purchaseQty).toFixed(2)}
${isEntry ? `
${designer ? 'by ' + designer + ' ' : ''}${brand && brand !== designer ? 'for ' + brand : ''}
` : '' }
$${(parseFloat(variant.price) * purchaseQty).toFixed(2)}
$${(parseFloat(variant.compare_at_price) * purchaseQty).toFixed(2)}
Your wishlist is now set to Public
'); updateWishlist(wishlistName, true); } } // load products they've added to a specific wishlist async function getItemsInWishlist(apiBaseUrl, wishlistId, startingPage = null) { startingPage && $('.lds-grid.entries-loader').show(); try { const response = await fetch(`${apiBaseUrl}/wishlists/${wishlistId}?auth=eyJpdiI6IjF4VENIb0tzMHJ0THJaWkxKOFcvdFE9PSIsInZhbHVlIjoiSkxjaVlma1pEVVgxbzRuNXc0YnRGZz09IiwibWFjIjoiY2JiZmQzNzI2NmQ2MjgyNjZjYmI2M2I0MTRmN2FlY2NkOWY3ZDBlZmJlYTNkZjFkMDY0MGFkN2VkMDg2NDc4NSIsInRhZyI6IiJ9:1732890871::5c04ded153d971b0af8025235de7c5d45fd286870f160acca283b88b65f6dd6f&cid=`); if (!response.ok) { $('.lds-grid.entries-loader').hide(); if (window.location.pathname === '/pages/lists') { cantLoadMessage('page', response.status); } else { cantLoadMessage('account', response.status, 'wishlist'); } throw new Error(); } const data = await response.json(); if (window.location.pathname === '/pages/lists') { $('#publicWishlistHeader').removeClass('hidden'); $('#wishlistName').text(data.name); $('#entriesCount').text(data.entries.length); $("button.send-list").removeClass("text-[14px]").addClass("md:text-[14px] text-[12px]"); $("button.share-list").removeClass("text-[14px]").addClass("md:text-[14px] text-[12px]"); } // this will set on wishlist items page $('form.update-wishlist input#list_name').attr('placeholder', data.name).attr('required', 'required'); $('form#create-or-update-list').attr('data-public', data.public); $('form.update-wishlist input#make-public').prop('checked', data.public); $('.copy-url-btn').attr('onclick', `publicStatus(${data.public}, "${data.name}", true)`); $('#sendWishlistBtn').attr('onclick', `publicStatus(${data.public}, "${data.name}", false)`); if (data.public) { $('.public-status-notice').html('Your wishlist is set to Public
'); } else { $('.public-status-notice').html('Your wishlist will be changed to Public
'); } if (startingPage) { $('.lds-grid.entries-loader').hide(); let entriesCount = data.entries.length; let limit = 8; let numOfPages = Math.ceil(entriesCount / limit); let pageNumbers = Array.from({length: numOfPages}, (_, i) => i + 1); $('h1#page-title').text(data.name); $('form#create-or-update-list').attr('data-list-name', data.name); $('input.public-list-url').val(`https://www.missouriquiltco.com/pages/lists?wishlist_id=${data.public_id}`); // $('.wishlist-breadcrumb').attr('href', '').text(`/ ${data.name}`); $('#wishlist-entries-header') .removeClass() .addClass('text-8') .html(`${data.entries.length} items total`); if (!data.entries.length) { $('.wishlist-entries') .removeClass('grid grid-rows-2 grid-cols-4 gap-8') .addClass('flex flex-col justify-center') .children('.no-wishlist-entries') .removeClass('hidden'); } else { numOfPages > 1 && $('#pagination-container').removeClass('hidden'); $('#page-count').removeClass('hidden'); $('span#total-pages').text(numOfPages); let foundStart = pageNumbers.find((page) => page === startingPage); startingPage = foundStart ? startingPage : 1; getCurrentPageEntries(wishlistId, startingPage, data.entries, limit, pageNumbers); injectShopProductIdsForBC(data.entries, $('#wishlist-entries-container')); } } } catch (err) { console.error(err); } } function generatePagination(wid, array, lim, pageNumbers, page, lastPage) { let pagination = $('`); } // wishlist form on PDP makes updates to a customer's wishlists regarding // the variant only. They can add or remove the variant to existing lists, // or they can create a new list and add the variant to it at the same time $('form#add-to-wishlists').on('submit', async function(e) { e.preventDefault(); const variantId = '40141244923939'; // // get changes let checked = $(this).find('input:checkbox:checked:not([data-entry-id]):not(#add_to_new_list)'); let unchecked = $(this).find('input:checkbox[data-entry-id]:not(:checked)'); let newWishlistName = $(this).find('input#new-list').length ? $(this).find('input#new-list').val().trim() : null; if (!checked.length && !unchecked.length && !newWishlistName) { toggleModal($('#wishlist-modal'), 'product', variantId); return; } $(this).find('button:submit').prop('disabled', true).addClass('opacity-75 pointer-events-none').html(''); let postReqUrls = []; let deleteReqUrls = []; checked.each(function (i, el) { postReqUrls.push(`${wishlistApiBase}/wishlists/${$(el).attr('id')}/entries?auth=eyJpdiI6IjF4VENIb0tzMHJ0THJaWkxKOFcvdFE9PSIsInZhbHVlIjoiSkxjaVlma1pEVVgxbzRuNXc0YnRGZz09IiwibWFjIjoiY2JiZmQzNzI2NmQ2MjgyNjZjYmI2M2I0MTRmN2FlY2NkOWY3ZDBlZmJlYTNkZjFkMDY0MGFkN2VkMDg2NDc4NSIsInRhZyI6IiJ9:1732890871::5c04ded153d971b0af8025235de7c5d45fd286870f160acca283b88b65f6dd6f&cid=`); }); unchecked.each(function (i, el) { deleteReqUrls.push(`${wishlistApiBase}/wishlists/${$(el).attr('id')}/entries/${$(el).attr('data-entry-id')}?auth=eyJpdiI6IjF4VENIb0tzMHJ0THJaWkxKOFcvdFE9PSIsInZhbHVlIjoiSkxjaVlma1pEVVgxbzRuNXc0YnRGZz09IiwibWFjIjoiY2JiZmQzNzI2NmQ2MjgyNjZjYmI2M2I0MTRmN2FlY2NkOWY3ZDBlZmJlYTNkZjFkMDY0MGFkN2VkMDg2NDc4NSIsInRhZyI6IiJ9:1732890871::5c04ded153d971b0af8025235de7c5d45fd286870f160acca283b88b65f6dd6f&cid=`); }); try { // on pdp if new wishlist name is not empty then go inside fn if(newWishlistName) { let createWishlist = newWishlistName && await fetch(`${wishlistApiBase}/wishlists?auth=eyJpdiI6IjF4VENIb0tzMHJ0THJaWkxKOFcvdFE9PSIsInZhbHVlIjoiSkxjaVlma1pEVVgxbzRuNXc0YnRGZz09IiwibWFjIjoiY2JiZmQzNzI2NmQ2MjgyNjZjYmI2M2I0MTRmN2FlY2NkOWY3ZDBlZmJlYTNkZjFkMDY0MGFkN2VkMDg2NDc4NSIsInRhZyI6IiJ9:1732890871::5c04ded153d971b0af8025235de7c5d45fd286870f160acca283b88b65f6dd6f&cid=`, { method: 'POST', headers: { "Content-Type": "application/json", "Accept": "application/json", }, body: JSON.stringify({ name: newWishlistName }) }); let createWishlistData = newWishlistName ? await createWishlist.json() : null; const response = await fetch(`${wishlistApiBase}/wishlists?auth=eyJpdiI6IjF4VENIb0tzMHJ0THJaWkxKOFcvdFE9PSIsInZhbHVlIjoiSkxjaVlma1pEVVgxbzRuNXc0YnRGZz09IiwibWFjIjoiY2JiZmQzNzI2NmQ2MjgyNjZjYmI2M2I0MTRmN2FlY2NkOWY3ZDBlZmJlYTNkZjFkMDY0MGFkN2VkMDg2NDc4NSIsInRhZyI6IiJ9:1732890871::5c04ded153d971b0af8025235de7c5d45fd286870f160acca283b88b65f6dd6f&cid=`); if (!response.ok) { $('.loading_spinner').css('display', 'none'); throw new Error(); } const responseData = await response.json(); const newWishlistData = responseData.find(({ id }) => id === createWishlistData.id); let newWishlistPubId = newWishlistData ? newWishlistData.public_id : null; createWishlistData && postReqUrls.push(`${wishlistApiBase}/wishlists/${newWishlistPubId}/entries?auth=eyJpdiI6IjF4VENIb0tzMHJ0THJaWkxKOFcvdFE9PSIsInZhbHVlIjoiSkxjaVlma1pEVVgxbzRuNXc0YnRGZz09IiwibWFjIjoiY2JiZmQzNzI2NmQ2MjgyNjZjYmI2M2I0MTRmN2FlY2NkOWY3ZDBlZmJlYTNkZjFkMDY0MGFkN2VkMDg2NDc4NSIsInRhZyI6IiJ9:1732890871::5c04ded153d971b0af8025235de7c5d45fd286870f160acca283b88b65f6dd6f&cid=`); } await Promise.all(postReqUrls.map(url => fetch(url, { method: 'POST', headers: { "Content-Type": "application/json", "Accept": "application/json", }, body: JSON.stringify({ variant_id: variantId }) } ))).then(async (res) => { return Promise.all( res.map(async (data) => await data.json()) ) }); await Promise.all(deleteReqUrls.map(url => fetch(url, { method: 'DELETE', headers: { "Accept": "application/json", }, }))) .then(async (res) => { return Promise.all( res.map(async (data) => await data.json()) ) }); $(this).find('button:submit').prop('disabled', false).removeClass('opacity-75 pointer-events-none').empty().text('Save'); await toggleModal($('#wishlist-modal'), 'product', variantId); } catch (err) { console.error(err); } }); // create or update wishlist $('form#create-or-update-list').on('submit', async function(e) { e.preventDefault(); $(this).find('button:submit').prop('disabled', true).addClass('opacity-75 pointer-events-none').html(''); let newListName = $(this).find('input#list_name').val().trim(); let listName = !newListName ? $('form.update-wishlist').attr('data-list-name') : newListName; let makePublic = $('form.update-wishlist input#make-public').is(':checked') ? true : false; try { $(this).hasClass('update-wishlist') ? await updateWishlist(listName, makePublic) : await createWishlist(listName); $(this).find('button:submit').prop('disabled', false).removeClass('opacity-75 pointer-events-none').empty().text($(this).hasClass('update-wishlist') ? 'Save' : 'Create'); await toggleModal($('#wishlist-modal'), 'account'); } catch(err) { console.error(err); } }); // if they don't want to add the item to the new list, remove the input // from the DOM so it's not taken into account on the submit event. // only let them create a new list from the PDP if they want to // add the item to it function newWishlistForm(element, variantId = null) { if ($(element).hasClass('create-wishlist-hide')) { $(element).removeClass('create-wishlist-hide'); $(``).insertBefore($(element).parent()); } else { $(element).addClass('create-wishlist-hide'); $('.select-wishlist.new-wishlist').remove(); } } $(document).on('change', 'input:checkbox#add_to_new_list', function () { if (!$(this).is(":checked")) { newWishlistForm($('.toggle-create-wishlist')); } }); async function toggleModal(modal, pageSrc, variantId = null) { if (modal.hasClass('hidden')) { modal.removeClass('hidden'); if (pageValue === 'wishlist' && !params.get('fav')) { $('form.update-wishlist input#list_name').attr('required', 'required'); $("form#create-or-update-list").find('button:submit').text('Update'); $('form.update-wishlist input#make-public').addClass('cursor-pointer'); let checkbox = document.querySelector("#make-public"); let isPublic = checkbox.checked; // Listen for checkbox changes checkbox.addEventListener('change', function() { handleCheckboxChange(false, isPublic); }); } } else { modal.addClass('hidden'); $('#recipients').text(''); $('span#emailCount').text('0'); pageSrc === 'product' && $('form#add-to-wishlists .select-wishlist').remove(); pageSrc === 'account' && $('form#create-or-update-list input').val(''); pageSrc === 'product' && await populatePdpModal(wishlistApiBase, modal, variantId, false); } } function splide_check() { document.querySelectorAll('.splide').forEach(carousel => new Splide(carousel, { type: 'slide', perPage: 2, gap: 2, arrows: false, pagination: false, drag: true, mediaQuery: 'min', breakpoints: { 768: { destroy: true, }, } }).mount()); } function injectShopProductIdsForBC(entries, parentElement) { entries.forEach((entry, i) => { if (entry.variant !== null) { let metafield = entry.variant.product.metafields.length ? entry.variant.product.metafields.find((m) => m.key === 'shop_product_id') : null; let shopProductId = metafield ? metafield.value : null; if (shopProductId) { parentElement.append(``); } } }); } function removeRecipient(element) { var elemText = element.parent().text(); $('span#emailCount').text(parseInt($('span#emailCount').text()) - 1); removeEmailTag(elemText); // element.parent().remove(); } function removeEmailTag(email) { email = email.trim(); const $elem = $(`span[data-shareemail="${email}"]`); $elem.remove(); } $('#recipients').on('keydown', function(event) { let emailAddress, emails, addresses; switch(event.keyCode) { case 13: addresses = $('#recipients').text().split(/(\s+)/); emails = addresses.filter((email) => /(\s+)/.test(email) === false && email !== ''); emailAddress = emails[emails.length - 1]; $(`${emailAddress}`).appendTo('#recipients'); $('#recipients').contents().filter(function(){ return this.nodeType === 3; }).remove(); $('span#emailCount').text(emails.length); const range = document.createRange(); const selection = window.getSelection(); range.setStart(document.getElementById('recipients'), document.getElementById('recipients').childNodes.length); range.collapse(true); selection.removeAllRanges(); selection.addRange(range); return false; break; case 8: if (!$('#recipients').ignore('span').text()) { return false; } break; } }); $.fn.ignore = function(sel) { return this.clone().find(sel || ">*").remove().end(); }; $('button#sendWishlistBtn').on('click', async function(e) { try { let recipients = $('#recipients').text().split(/(\s+)/); let emails = recipients.filter((email) => /(\s+)/.test(email) === false && email !== '').join('&recipients[]='); $('.wishSharesConfirmed-items').html(``); let wid = window.location.pathname === '/pages/lists' ? params.get('wishlist_id') : params.get('wid'); const response = await fetch(`${wishlistApiBase}/wishlists/${wid}?auth=eyJpdiI6IjF4VENIb0tzMHJ0THJaWkxKOFcvdFE9PSIsInZhbHVlIjoiSkxjaVlma1pEVVgxbzRuNXc0YnRGZz09IiwibWFjIjoiY2JiZmQzNzI2NmQ2MjgyNjZjYmI2M2I0MTRmN2FlY2NkOWY3ZDBlZmJlYTNkZjFkMDY0MGFkN2VkMDg2NDc4NSIsInRhZyI6IiJ9:1732890871::5c04ded153d971b0af8025235de7c5d45fd286870f160acca283b88b65f6dd6f&cid=`); const data = await response.json(); // Loop through the entries, but limit to a maximum of 4 data.entries.slice(0, 4).forEach(entry => { $('.wishlist-shared-entries').append(` `); }); if(emails) { let str = emails.replace(/,*$/, ''); // // send email using belove function var sharedResponse = await shareWishlist(wishlistApiBase, wid, str); if(sharedResponse.status == 200) { $("#wishSharesConfirmed_title").text("Your Wishlist Sent!").removeClass("text-red underline"); toggleModal($('#send-wishlist-modal'), 'account'); toggleModal($('#wishSharesConfirmed'), 'account'); } else { $("#wishSharesConfirmed_title").text("Something Wents Wronge!").addClass("text-orange").removeClass("text-red underline"); toggleModal($('#send-wishlist-modal'), 'account'); toggleModal($('#wishSharesConfirmed'), 'account'); } } else { $("#wishSharesConfirmed_title").text("Please Provide Email").addClass("text-red underline"); toggleModal($('#wishSharesConfirmed'), 'account'); } } catch (err) { console.error(err); } }); // request to email wishlist to 1 or more recipients async function shareWishlist(apiBaseUrl, wid, emails) { try { const response = await fetch(`${apiBaseUrl}/wishlists/${wid}/share?recipients[]=${emails}`, { method: 'POST', headers: { 'Authorization': "crinc-voglia-shopify-customer eyJpdiI6IjF4VENIb0tzMHJ0THJaWkxKOFcvdFE9PSIsInZhbHVlIjoiSkxjaVlma1pEVVgxbzRuNXc0YnRGZz09IiwibWFjIjoiY2JiZmQzNzI2NmQ2MjgyNjZjYmI2M2I0MTRmN2FlY2NkOWY3ZDBlZmJlYTNkZjFkMDY0MGFkN2VkMDg2NDc4NSIsInRhZyI6IiJ9:1732890871::5c04ded153d971b0af8025235de7c5d45fd286870f160acca283b88b65f6dd6f", }, }); const data = await response.text(); return response; } catch (err) { console.error(err); } }
Other Products In This Collection
We Think You'll Like These Too
Ratings & Reviews
Lorem ipsum dolor sit amet
consectetur adipisicing elit.
Showing x - x of xx
sort by
There are no reviews yet.
Questions & Answers