${(function(){ const get_random_six_digits = () => { return Math.random().toString().slice(-6) }; const wholesale_enabled = false; const setting_product_image_display = "100%"; const product_image = data.image; const secondary_image = data.secondImage; const image_width = product_image.width; let image_height = product_image.height; if(setting_product_image_display == '100%'){ image_height = image_width }else if(setting_product_image_display == '133.33%'){ image_height = image_width * 1.3333; }; const product_image_hover_on = true && !!secondary_image.src; const has_save_label = true && ((+data.compare_at_price) > (+data.price)); const is_single_variant = data.variants.length == 1; const min_price_variant_href = (data.min_price_variant && data.min_price_variant.available) ? data.min_price_variant.url : data.url; const retail_price_max = data.retail_price_max || data.compare_at_price_max; const THUMBNAILS_MAX_SIZE = 3; const thumbnails = data.thumbVariants.slice(0, THUMBNAILS_MAX_SIZE); const image_wrap_id = 'image_wrap_' + get_random_six_digits(); const image_carousel_id = 'image_carousel_' + get_random_six_digits(); const thumbnails_selector_id = 'thumbnails_selector_' + get_random_six_digits(); const form_id = 'form_' + get_random_six_digits(); return `
${ data.available ? `${ (+data.compare_at_price > +data.price) ? `Save ${ data.off_ratio }% ` : '' }` : "Sold out" }
${data.title}
${ data.price_min != data.price_max ? `From
` : `
` }
+${data.remainInvisibleThumbCount}
` })()}
Enjoy Extra 10% OFF On First Order CODE: SALE10
✈ Free shipping on orders over $39
Enjoy Extra 10% OFF On First Order CODE: SALE10
✈ Free shipping on orders over $39
Log in
Create an account
${data.data && data.data.count}
NEW ARRIVAL
BEST SELLER
Loungewear
Family Pajamas
Family Outfits
Swimwear
Kigurumis
Hoodie Blanket
Baby Flannel Kigurumis
Hooded Kid Towel
Baby Kahki Dog Cartoon Hooded Bath Towel
$24.99
TRACK ORDER
More links
${(function(){ const formatLinks = (links) => { return links.map(link => { link.tag = tags[link.title.toUpperCase()] || {}; link.target_attr = link.target == '_blank' ? 'target="_blank"' : ''; link.href_attr = link.url ? `href="${link.url}"` : ''; if(link.children && link.children.length){ link.children = formatLinks(link.children); } return link; }) }; const tags = "{}"; let linkList = [ { id: 58995981, title: "NEW ARRIVAL", url: "\/collections\/new-in", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58995983, title: "BEST SELLER", url: "\/collections\/best-seller", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58995985, title: "Loungewear", url: "\/collections\/loungewear", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58995987, title: "Family Pajamas", url: "\/collections\/family-matching-pajamas", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58995989, title: "Family Outfits", url: "\/collections\/family-matching-outfits", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58995991, title: "Swimwear", url: "\/collections\/swimwear", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58995993, title: "Kigurumis", url: "\/collections\/kigurumis", target: "", levels: 1, product0: {"id":"0aee1092-ce7c-4744-a84c-f6646305733c","title":"Baby Kahki Dog Cartoon Hooded Bath Towel","brief":"","vendor":"","vendor_url":"","has_only_default_variant":true,"requires_shipping":true,"taxable":false,"published":true,"handle":"baby-kahki-dog-cartoon-hooded-bath-towel","spu":"CGZLFMP230058","need_variant_image":false,"updated_at":"2023-09-21T04:02:33Z","created_at":"2023-09-21T03:34:56Z","mixed_wholesale":false,"min_price_variant":{"id":"d4a0cae7-6bc4-478b-9611-ec8b49acf3fd","title":"","weight_unit":"kg","inventory_quantity":0,"sku":"CGZLFMP230058 Kahki","barcode":"","position":1,"option1":"","option2":"","option3":"","image":null,"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"24.99","retail_price":"0","available":true,"url":"\/products\/baby-kahki-dog-cartoon-hooded-bath-towel?variant=d4a0cae7-6bc4-478b-9611-ec8b49acf3fd","available_quantity":999999999,"options":[],"off_ratio":0},"tags":"kid towel","available":true,"price_min":"24.99","price":"24.99","price_max":"24.99","compare_at_price_min":"0","compare_at_price":"0","compare_at_price_max":"0","retail_price_min":"0","retail_price_max":"0","url":"\/products\/baby-kahki-dog-cartoon-hooded-bath-towel","published_at":"2023-09-21T03:34:56Z","image":{"src":"\/\/img.fantaskycdn.com\/5e6064616681c162b40cc6f042d3fa9b.JPG","path":"5e6064616681c162b40cc6f042d3fa9b.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},"options":[],"variants":[{"id":"d4a0cae7-6bc4-478b-9611-ec8b49acf3fd","title":"","weight_unit":"kg","inventory_quantity":0,"sku":"CGZLFMP230058 Kahki","barcode":"","position":1,"option1":"","option2":"","option3":"","image":null,"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"24.99","retail_price":"0","available":true,"url":"\/products\/baby-kahki-dog-cartoon-hooded-bath-towel?variant=d4a0cae7-6bc4-478b-9611-ec8b49acf3fd","available_quantity":999999999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":null}],"images":[{"src":"\/\/img.fantaskycdn.com\/5e6064616681c162b40cc6f042d3fa9b.JPG","path":"5e6064616681c162b40cc6f042d3fa9b.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},{"src":"\/\/img.fantaskycdn.com\/8f840cab56b78b6bc6b9bb0763ac80a3.JPG","path":"8f840cab56b78b6bc6b9bb0763ac80a3.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},{"src":"\/\/img.fantaskycdn.com\/da9ac89869bfa2b8b8e718e37b8fec93.JPG","path":"da9ac89869bfa2b8b8e718e37b8fec93.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},{"src":"\/\/img.fantaskycdn.com\/3a2c14d4eb3c523eee0712dd9c8af30f.JPG","path":"3a2c14d4eb3c523eee0712dd9c8af30f.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},{"src":"\/\/img.fantaskycdn.com\/9673ebbf326540b8b184244d43a2ccbe.JPG","path":"9673ebbf326540b8b184244d43a2ccbe.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},{"src":"\/\/img.fantaskycdn.com\/6d88813dcc29efa301dc2877fde177dc.JPG","path":"6d88813dcc29efa301dc2877fde177dc.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},{"src":"\/\/img.fantaskycdn.com\/cfc69e63bde8651abb2fa4000b5cd414.JPG","path":"cfc69e63bde8651abb2fa4000b5cd414.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1}],"retail_price":"0","off_ratio":0,"price_varies":true} || {}, children: [ { title: "Hoodie Blanket", url: "\/collections\/hoodie-blanket", target: "", levels: 0, children: [ ] }, { title: "Baby Flannel Kigurumis", url: "\/collections\/baby-flannel-kigurumis", target: "", levels: 0, children: [ ] }, { title: "Hooded Kid Towel", url: "\/collections\/hooded-kid-towel", target: "", levels: 0, children: [ ] }, ] }, { id: 58996001, title: "TRACK ORDER", url: "\/account\/order-lookup", target: "", levels: 0, product0: null || {}, children: [ ] }, ].slice(offset); linkList = formatLinks(linkList); const hasChild = linkList.some(link => !!(link.children && link.children.length || link.product0.id)); return `
${link.title}
${link.tag.label}
${second_link.title}
${second_link.tag.label}
${third_links.title}
${third_links.tag.label}
${link.title}
${link.tag.label}
` })()}
NEW ARRIVAL
BEST SELLER
Loungewear
Family Pajamas
Family Outfits
Swimwear
Kigurumis
Hoodie Blanket
Baby Flannel Kigurumis
Hooded Kid Towel
Baby Kahki Dog Cartoon Hooded Bath Towel
$24.99
TRACK ORDER
More links
${(function(){ const formatLinks = (links) => { return links.map(link => { link.tag = tags[link.title.toUpperCase()] || {}; link.target_attr = link.target == '_blank' ? 'target="_blank"' : ''; link.href_attr = link.url ? `href="${link.url}"` : ''; if(link.children && link.children.length){ link.children = formatLinks(link.children); } return link; }) }; const tags = "{}"; let linkList = [ { id: 58995981, title: "NEW ARRIVAL", url: "\/collections\/new-in", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58995983, title: "BEST SELLER", url: "\/collections\/best-seller", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58995985, title: "Loungewear", url: "\/collections\/loungewear", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58995987, title: "Family Pajamas", url: "\/collections\/family-matching-pajamas", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58995989, title: "Family Outfits", url: "\/collections\/family-matching-outfits", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58995991, title: "Swimwear", url: "\/collections\/swimwear", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58995993, title: "Kigurumis", url: "\/collections\/kigurumis", target: "", levels: 1, product0: {"id":"0aee1092-ce7c-4744-a84c-f6646305733c","title":"Baby Kahki Dog Cartoon Hooded Bath Towel","brief":"","vendor":"","vendor_url":"","has_only_default_variant":true,"requires_shipping":true,"taxable":false,"published":true,"handle":"baby-kahki-dog-cartoon-hooded-bath-towel","spu":"CGZLFMP230058","need_variant_image":false,"updated_at":"2023-09-21T04:02:33Z","created_at":"2023-09-21T03:34:56Z","mixed_wholesale":false,"min_price_variant":{"id":"d4a0cae7-6bc4-478b-9611-ec8b49acf3fd","title":"","weight_unit":"kg","inventory_quantity":0,"sku":"CGZLFMP230058 Kahki","barcode":"","position":1,"option1":"","option2":"","option3":"","image":null,"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"24.99","retail_price":"0","available":true,"url":"\/products\/baby-kahki-dog-cartoon-hooded-bath-towel?variant=d4a0cae7-6bc4-478b-9611-ec8b49acf3fd","available_quantity":999999999,"options":[],"off_ratio":0},"tags":"kid towel","available":true,"price_min":"24.99","price":"24.99","price_max":"24.99","compare_at_price_min":"0","compare_at_price":"0","compare_at_price_max":"0","retail_price_min":"0","retail_price_max":"0","url":"\/products\/baby-kahki-dog-cartoon-hooded-bath-towel","published_at":"2023-09-21T03:34:56Z","image":{"src":"\/\/img.fantaskycdn.com\/5e6064616681c162b40cc6f042d3fa9b.JPG","path":"5e6064616681c162b40cc6f042d3fa9b.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},"options":[],"variants":[{"id":"d4a0cae7-6bc4-478b-9611-ec8b49acf3fd","title":"","weight_unit":"kg","inventory_quantity":0,"sku":"CGZLFMP230058 Kahki","barcode":"","position":1,"option1":"","option2":"","option3":"","image":null,"wholesale_price":[{"price":24.99,"min_quantity":1}],"weight":"0","compare_at_price":"0","price":"24.99","retail_price":"0","available":true,"url":"\/products\/baby-kahki-dog-cartoon-hooded-bath-towel?variant=d4a0cae7-6bc4-478b-9611-ec8b49acf3fd","available_quantity":999999999,"options":[],"off_ratio":0,"flashsale_info":[],"sales":null}],"images":[{"src":"\/\/img.fantaskycdn.com\/5e6064616681c162b40cc6f042d3fa9b.JPG","path":"5e6064616681c162b40cc6f042d3fa9b.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},{"src":"\/\/img.fantaskycdn.com\/8f840cab56b78b6bc6b9bb0763ac80a3.JPG","path":"8f840cab56b78b6bc6b9bb0763ac80a3.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},{"src":"\/\/img.fantaskycdn.com\/da9ac89869bfa2b8b8e718e37b8fec93.JPG","path":"da9ac89869bfa2b8b8e718e37b8fec93.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},{"src":"\/\/img.fantaskycdn.com\/3a2c14d4eb3c523eee0712dd9c8af30f.JPG","path":"3a2c14d4eb3c523eee0712dd9c8af30f.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},{"src":"\/\/img.fantaskycdn.com\/9673ebbf326540b8b184244d43a2ccbe.JPG","path":"9673ebbf326540b8b184244d43a2ccbe.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},{"src":"\/\/img.fantaskycdn.com\/6d88813dcc29efa301dc2877fde177dc.JPG","path":"6d88813dcc29efa301dc2877fde177dc.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1},{"src":"\/\/img.fantaskycdn.com\/cfc69e63bde8651abb2fa4000b5cd414.JPG","path":"cfc69e63bde8651abb2fa4000b5cd414.JPG","width":1000,"height":1000,"alt":"","aspect_ratio":1}],"retail_price":"0","off_ratio":0,"price_varies":true} || {}, children: [ { title: "Hoodie Blanket", url: "\/collections\/hoodie-blanket", target: "", levels: 0, children: [ ] }, { title: "Baby Flannel Kigurumis", url: "\/collections\/baby-flannel-kigurumis", target: "", levels: 0, children: [ ] }, { title: "Hooded Kid Towel", url: "\/collections\/hooded-kid-towel", target: "", levels: 0, children: [ ] }, ] }, { id: 58996001, title: "TRACK ORDER", url: "\/account\/order-lookup", target: "", levels: 0, product0: null || {}, children: [ ] }, ].slice(offset); linkList = formatLinks(linkList); const hasChild = linkList.some(link => !!(link.children && link.children.length || link.product0.id)); return `
${link.title}
${link.tag.label}
${second_link.title}
${second_link.tag.label}
${third_links.title}
${third_links.tag.label}
${link.title}
${link.tag.label}
` })()}
Log in
Create an account
${data.data && data.data.count}
${(function(){ if (data === undefined || typeof data !== 'string' || data == '') return '
'; const keyword = encodeURIComponent(data); return `
View more
Your search for '${data}' did not yield any results.
` })()}
NEW ARRIVAL
BEST SELLER
Loungewear
Family Pajamas
Family Outfits
Swimwear
Kigurumis
Kigurumis
Hoodie Blanket
Baby Flannel Kigurumis
Hooded Kid Towel
TRACK ORDER
Log in
(function(){ let w = window.innerWidth; function setHeaderCssVar() { const headerEle = document.getElementById('shoplaza-section-header'); if(!headerEle){ return }; document.body.style.setProperty('--window-height', `${window.innerHeight}px`); document.body.style.setProperty('--header-height', `${headerEle.clientHeight}px`); document.body.style.setProperty('--header-scroll-hide-height-md', `${headerEle.querySelector('.header__mobile .header__scroll_hide').clientHeight}px`); document.body.style.setProperty('--header-scroll-hide-height-pc', `${headerEle.querySelector('.header__desktop .header__scroll_hide').clientHeight}px`); } function handlResize() { if(w == window.innerWidth){return}; w = window.innerWidth; setHeaderCssVar(); }; function init(){ setHeaderCssVar(); window.removeEventListener('resize', window._theme_header_listener) window._theme_header_listener = handlResize; window.addEventListener('resize', window._theme_header_listener); } init(); })();
${function() { return `
0 ? (data.index - 1) : (data.total - 1)},animate=true,direct=-1);" data-type="prev">
` }()}
Shop By Category
Best Seller
Save 50%
Save 50%
St. Patrick's Day Elf Beer Print Family Matching Pajamas Set
From
$19.99
$39.99
Save 50%
Save 50%
St. Patrick's Day Prismatic Print Family Matching Pajamas Set
From
$19.99
$39.99
Save 50%
Save 50%
St. Patrick's Day Shamrock Print Family Matching Pajamas Set
From
$19.99
$39.99
Black Floral Print Women's Pajama Set
$46.99
Save 50%
Save 50%
St. Patrick's Day Four Leaf Clover Love Print Family Matching Pajamas Set
From
$19.99
$39.99
St. Patrick's Day Clover Flag Print Women's Pajama
$46.99
St. Patrick's Day Clover Gnome Print Women's Pajama
$46.99
Save 50%
Save 50%
St. Patrick's Day Frog Print Family Matching Pajamas Set
From
$19.99
$39.99
Save 50%
Save 50%
St. Patrick's Day Elf Beer Print Family Matching Pajamas Set
From
$19.99
$39.99
Save 50%
Save 50%
St. Patrick's Day Prismatic Print Family Matching Pajamas Set
From
$19.99
$39.99
Save 50%
Save 50%
St. Patrick's Day Shamrock Print Family Matching Pajamas Set
From
$19.99
$39.99
Black Floral Print Women's Pajama Set
$46.99
View more
New Arrivals
Save 50%
Save 50%
Navy and White Stripe Short Jumpsuit Mom Daughter Family Matching Outfits
From
$21.99
$43.99
Save 50%
Save 50%
Grey Green Short Jumpsuit Mom Daughter Family Matching Outfits
From
$21.99
$43.99
Save 50%
Save 50%
Yellow Floral Print Short Jumpsuit Mom Daughter Family Matching Outfits
From
$21.99
$43.99
Save 50%
Save 50%
Green Short Jumpsuit Mom Daughter Family Matching Outfits
From
$21.99
$43.99
Save 50%
Save 50%
White Short Jumpsuit Mom Daughter Family Matching Outfits
From
$21.99
$43.99
Save 50%
Save 50%
White Floral Print Jumpsuit Mom Daughter Family Matching Outfits
From
$21.99
$43.99
Save 50%
Save 50%
Blue Floral Print Dress Mom Daughter Family Matching Outfits
From
$21.99
$43.99
Save 50%
Save 50%
Black Leopard Print Dress Mom Daughter Family Matching Outfits
From
$21.99
$43.99
Save 50%
Save 50%
Navy and White Stripe Short Jumpsuit Mom Daughter Family Matching Outfits
From
$21.99
$43.99
Save 50%
Save 50%
Grey Green Short Jumpsuit Mom Daughter Family Matching Outfits
From
$21.99
$43.99
Save 50%
Save 50%
Yellow Floral Print Short Jumpsuit Mom Daughter Family Matching Outfits
From
$21.99
$43.99
Save 50%
Save 50%
Green Short Jumpsuit Mom Daughter Family Matching Outfits
From
$21.99
$43.99
View more
PHOTO GALLERY
${function() { return `
0 ? (data.index - 1) : (data.total - 1)},animate=true,direct=-1);" data-type="prev">
` }()}
View Cart
${function(){ const productData = data.product; let product_change_event = '', mouse_over_event = ' '; mouse_out_event = ''; const product_options = productData.options.filter(Boolean) || []; for (let opt of product_options) { product_change_event = product_change_event + `quick-shop-selected-variant-${opt.name}.rerender(data=event.selectedValues.${opt.name});`; mouse_out_event = mouse_out_event + `quick-shop-selected-variant-${opt.name}.rerender(data=event.selectData.${opt.name});`; mouse_over_event = mouse_over_event + `@${opt.name}Mouseover="quick-shop-selected-variant-${opt.name}.rerender(data=event);"`; } const selectedVariant = productData.variants.find(v => v.available) || productData.variants[0]; const statusLan = ((selectedVariant && !selectedVariant.available) || (!selectedVariant && !productData.available)) ? "Sold out" : "Add to cart"; return `
${statusLan}
` }()}
${function(){ const currentSelectVariant = data.variant; const defaultVariant = (data.product && data.product.variants && data.product.variants[0]); const variantData = currentSelectVariant || defaultVariant || data; const retail_price = variantData.retail_price || 0; return `
Retail
` }()}
${function(){ const wholesale_enabled = false; const qty = data.quantity || 1; const currentSelectVariant = data.variant; const defaultVariant = (data.product && data.product.variants && data.product.variants[0]); const productVariant = null; const variantData = currentSelectVariant || defaultVariant || productVariant; const wholesale_price = variantData.wholesale_price || []; if(wholesale_enabled && wholesale_price.length > 0) { let wholesaleIndex = wholesale_price.findIndex(item => { return item.min_quantity > qty; }); if(wholesaleIndex < 0){ wholesaleIndex = wholesale_price.length - 1; }else if(wholesaleIndex > 0){ wholesaleIndex = wholesaleIndex - 1; } const wholesalePrice = wholesale_price[wholesaleIndex] || ''; return `
` }else { return `
` } }()}
${function() { let variantImageShowed = false; const currentProduct = data.product; return (currentProduct.options || []).map((option, index) => { const optionName = option.name || ''; const position = `option${index + 1}`; let isThumbImage = false; if (currentProduct.need_variant_image && !variantImageShowed) { const variantNames = ["color","style"] || []; for (let i = 0, len = variantNames.length; i < len; i++) { const name = variantNames[i].toLowerCase(); if (name === optionName.toLowerCase()) { isThumbImage = true; variantImageShowed = true; } } } const variantType = "button"; const thumbStyle = "image_with_text"; return `
${optionName}:
${option.values.map((value, idx) => { const selected = data.selectedValues[optionName] == value ? 'checked' : ''; let thumbImage = null; if (isThumbImage) { const variants = currentProduct.variants; for (let i = 0, len = variants.length; i < len; i++) { const variant = variants[i]; if (variant[position] == value && thumbImage == null) { thumbImage = variant.image; break; } } } return `
${value}
` }).join('')}
${optionName}
${option.values.map(value => { const selected = data.selectedValues[optionName] == value ? 'selected' : ''; return `
${value}
` }).join('')}
` }).join(''); }()}
${data.originData && data.originData.value || data.value}
View Cart
${function(){ const productData = data.product; let product_change_event = '', mouse_over_event = ' '; mouse_out_event = ''; const product_options = productData.options.filter(Boolean) || []; for (let opt of product_options) { product_change_event = product_change_event + `quick-shop-selected-variant-${opt.name}.rerender(data=event.selectedValues.${opt.name});`; mouse_out_event = mouse_out_event + `quick-shop-selected-variant-${opt.name}.rerender(data=event.selectData.${opt.name});`; mouse_over_event = mouse_over_event + `@${opt.name}Mouseover="quick-shop-selected-variant-${opt.name}.rerender(data=event);"`; } const selectedVariant = productData.variants.find(v => v.available) || productData.variants[0]; const statusLan = ((selectedVariant && !selectedVariant.available) || (!selectedVariant && !productData.available)) ? "Sold out" : "Add to cart"; return `
${statusLan}
` }()}
${function(){ const currentSelectVariant = data.variant; const defaultVariant = (data.product && data.product.variants && data.product.variants[0]); const variantData = currentSelectVariant || defaultVariant || data; const retail_price = variantData.retail_price || 0; return `
Retail
` }()}
${function(){ const wholesale_enabled = false; const qty = data.quantity || 1; const currentSelectVariant = data.variant; const defaultVariant = (data.product && data.product.variants && data.product.variants[0]); const productVariant = null; const variantData = currentSelectVariant || defaultVariant || productVariant; const wholesale_price = variantData.wholesale_price || []; if(wholesale_enabled && wholesale_price.length > 0) { let wholesaleIndex = wholesale_price.findIndex(item => { return item.min_quantity > qty; }); if(wholesaleIndex < 0){ wholesaleIndex = wholesale_price.length - 1; }else if(wholesaleIndex > 0){ wholesaleIndex = wholesaleIndex - 1; } const wholesalePrice = wholesale_price[wholesaleIndex] || ''; return `
` }else { return `
` } }()}
${function() { let variantImageShowed = false; const currentProduct = data.product; return (currentProduct.options || []).map((option, index) => { const optionName = option.name || ''; const position = `option${index + 1}`; let isThumbImage = false; if (currentProduct.need_variant_image && !variantImageShowed) { const variantNames = ["color","style"] || []; for (let i = 0, len = variantNames.length; i < len; i++) { const name = variantNames[i].toLowerCase(); if (name === optionName.toLowerCase()) { isThumbImage = true; variantImageShowed = true; } } } const variantType = "button"; const thumbStyle = "image_with_text"; return `
${optionName}:
${option.values.map((value, idx) => { const selected = data.selectedValues[optionName] == value ? 'checked' : ''; let thumbImage = null; if (isThumbImage) { const variants = currentProduct.variants; for (let i = 0, len = variants.length; i < len; i++) { const variant = variants[i]; if (variant[position] == value && thumbImage == null) { thumbImage = variant.image; break; } } } return `
${value}
` }).join('')}
${optionName}
${option.values.map(value => { const selected = data.selectedValues[optionName] == value ? 'selected' : ''; return `
${value}
` }).join('')}
` }).join(''); }()}
${data.originData && data.originData.value || data.value}