${(function(){ const get_random_six_digits = () => { return Math.random().toString().slice(-6) }; const wholesale_enabled = false; const setting_product_image_display = "natural"; 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 = false && !!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.withinUrl : data.withinUrl; 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(); const mixed_wholesale = data.mixed_wholesale; return `
${ data.available ? `${ (+data.compare_at_price > +data.price) ? `Save ${ data.off_ratio }% ` : '' }` : "Sold out" }
Mixed Lot
${data.title}
${ data.price_min != data.price_max ? `From
` : `
` }
+${data.remainInvisibleThumbCount}
` })()}
5% Off Code: happy | Sitewide Buy 3 Get 1 Free(Add 4 to Cart) | Free Shipping Over $99
5% Off Code: happy | Sitewide Buy 3 Get 1 Free(Add 4 to Cart) | Free Shipping Over $99
Search
Log in
Create an account
${data.data && data.data.count}
New Arrivals
New Diamond Painting Crafts
New Crystal Diamond Painting
New Big size Diamond Painting
DIY Crafts
Bag
Bookmark
Clock
Coaster
Desktop Ornament
Greeting Card
Hanging Pendant
Hairpin
Keychain
Mirror
Notebook
Sticker
Storage Box
Diamond Painting Kits
Full Round Drill
Full Square Drill
Crystal Rhinestone
AB Drill Diamond Painting
Custom Kits
Big Size DP
Best Selling
Painting Accessories
Hot Collections
Animal
Butterfly
Peacock
Unicorn
Dragon
Koi Fish
Horse
Cat
Bear
Tiger
Wolf
Lion
Character
Lady & Beauty
Fairy & Girl
Angel
Doll
Holidays
Christmas
Halloween
Valentine
Easter
Scenery
Lighthouse
Sea View
Cartoon
Harry Potter
Disney
Flower
Letter
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: 53091747, title: "New Arrivals", url: "\/collections\/new-in", target: "", levels: 1, product0: null || {}, children: [ { title: "New Diamond Painting Crafts", url: "\/collections\/new-diamond-painting-crafts", target: "", levels: 0, children: [ ] }, { title: "New Crystal Diamond Painting", url: "\/collections\/new-crystal-diamond-painting", target: "", levels: 0, children: [ ] }, { title: "New Big size Diamond Painting", url: "\/collections\/new-big-size-diamond-painting", target: "", levels: 0, children: [ ] }, ] }, { id: 53091755, title: "DIY Crafts", url: "\/collections\/diy-diamond-painting-crafts", target: "", levels: 1, product0: null || {}, children: [ { title: "Bag", url: "\/collections\/bag", target: "", levels: 0, children: [ ] }, { title: "Bookmark", url: "\/collections\/bookmark", target: "", levels: 0, children: [ ] }, { title: "Clock", url: "\/collections\/clock", target: "", levels: 0, children: [ ] }, { title: "Coaster", url: "\/collections\/coaster", target: "", levels: 0, children: [ ] }, { title: "Desktop Ornament", url: "\/collections\/desktop-ornament", target: "", levels: 0, children: [ ] }, { title: "Greeting Card", url: "\/collections\/greeting-card", target: "", levels: 0, children: [ ] }, { title: "Hanging Pendant", url: "\/collections\/hanging-pendant", target: "", levels: 0, children: [ ] }, { title: "Hairpin", url: "\/collections\/hairpin", target: "", levels: 0, children: [ ] }, { title: "Keychain", url: "\/collections\/keychain", target: "", levels: 0, children: [ ] }, { title: "Mirror", url: "\/collections\/mirror", target: "", levels: 0, children: [ ] }, { title: "Notebook", url: "\/collections\/notebook", target: "", levels: 0, children: [ ] }, { title: "Sticker", url: "\/collections\/sticker", target: "", levels: 0, children: [ ] }, { title: "Storage Box", url: "\/collections\/storage-box", target: "", levels: 0, children: [ ] }, ] }, { id: 53091783, title: "Diamond Painting Kits", url: "\/collections\/all-diamond-paintings", target: "", levels: 1, product0: null || {}, children: [ { title: "Full Round Drill", url: "\/collections\/full-round-drill-dp", target: "", levels: 0, children: [ ] }, { title: "Full Square Drill", url: "\/collections\/full-square-drill-dp", target: "", levels: 0, children: [ ] }, { title: "Crystal Rhinestone", url: "\/collections\/crystal-rhinestone-dp", target: "", levels: 0, children: [ ] }, { title: "AB Drill Diamond Painting", url: "\/collections\/ab-drill-diamond-painting", target: "", levels: 0, children: [ ] }, { title: "Custom Kits", url: "\/collections\/customized", target: "", levels: 0, children: [ ] }, ] }, { id: 53091795, title: "Big Size DP", url: "\/collections\/large-diamond-painting", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 53091797, title: "Best Selling", url: "\/collections\/best-selling-buy-3-get-1-free-add-4-in-cart", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 53091799, title: "Painting Accessories", url: "\/collections\/toolkit", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 53091801, title: "Hot Collections", url: "\/collections\/all-diamond-paintings", target: "", levels: 2, product0: null || {}, children: [ { title: "Animal", url: "\/collections\/animal", target: "", levels: 1, children: [ { title: "Butterfly", url: "\/collections\/butterfly", target: "", levels: 0, }, { title: "Peacock", url: "\/collections\/peacock", target: "", levels: 0, }, { title: "Unicorn", url: "\/collections\/unicorn", target: "", levels: 0, }, { title: "Dragon", url: "\/collections\/dragon", target: "", levels: 0, }, { title: "Koi Fish", url: "\/collections\/koi-fish", target: "", levels: 0, }, { title: "Horse", url: "\/collections\/horse", target: "", levels: 0, }, { title: "Cat", url: "\/collections\/cat", target: "", levels: 0, }, { title: "Bear", url: "\/collections\/bear", target: "", levels: 0, }, { title: "Tiger", url: "\/collections\/tiger", target: "", levels: 0, }, { title: "Wolf", url: "\/collections\/wolf", target: "", levels: 0, }, { title: "Lion", url: "\/collections\/lion", target: "", levels: 0, }, ] }, { title: "Character", url: "\/collections\/character", target: "", levels: 1, children: [ { title: "Lady & Beauty", url: "\/collections\/lady-beauty", target: "", levels: 0, }, { title: "Fairy & Girl", url: "\/collections\/fairy-girl", target: "", levels: 0, }, { title: "Angel", url: "\/collections\/angel", target: "", levels: 0, }, { title: "Doll", url: "\/collections\/doll", target: "", levels: 0, }, ] }, { title: "Holidays", url: "\/collections\/holidays", target: "", levels: 1, children: [ { title: "Christmas", url: "\/collections\/christmas-diamond-painting", target: "", levels: 0, }, { title: "Halloween", url: "\/collections\/halloween", target: "", levels: 0, }, { title: "Valentine", url: "\/collections\/valentine", target: "", levels: 0, }, { title: "Easter", url: "\/collections\/easter", target: "", levels: 0, }, ] }, { title: "Scenery", url: "\/collections\/scenery", target: "", levels: 1, children: [ { title: "Lighthouse", url: "\/collections\/lighthouse", target: "", levels: 0, }, { title: "Sea View", url: "\/collections\/sea-view", target: "", levels: 0, }, ] }, { title: "Cartoon", url: "\/collections\/cartoon", target: "", levels: 1, children: [ { title: "Harry Potter", url: "\/collections\/harry-potter", target: "", levels: 0, }, { title: "Disney", url: "\/collections\/disney", target: "", levels: 0, }, ] }, { title: "Flower", url: "\/collections\/flower", target: "", levels: 0, children: [ ] }, { title: "Letter", url: "\/collections\/letter", target: "", levels: 0, 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 Arrivals
New Diamond Painting Crafts
New Crystal Diamond Painting
New Big size Diamond Painting
DIY Crafts
Bag
Bookmark
Clock
Coaster
Desktop Ornament
Greeting Card
Hanging Pendant
Hairpin
Keychain
Mirror
Notebook
Sticker
Storage Box
Diamond Painting Kits
Full Round Drill
Full Square Drill
Crystal Rhinestone
AB Drill Diamond Painting
Custom Kits
Big Size DP
Best Selling
Painting Accessories
Hot Collections
Animal
Butterfly
Peacock
Unicorn
Dragon
Koi Fish
Horse
Cat
Bear
Tiger
Wolf
Lion
Character
Lady & Beauty
Fairy & Girl
Angel
Doll
Holidays
Christmas
Halloween
Valentine
Easter
Scenery
Lighthouse
Sea View
Cartoon
Harry Potter
Disney
Flower
Letter
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: 53091747, title: "New Arrivals", url: "\/collections\/new-in", target: "", levels: 1, product0: null || {}, children: [ { title: "New Diamond Painting Crafts", url: "\/collections\/new-diamond-painting-crafts", target: "", levels: 0, children: [ ] }, { title: "New Crystal Diamond Painting", url: "\/collections\/new-crystal-diamond-painting", target: "", levels: 0, children: [ ] }, { title: "New Big size Diamond Painting", url: "\/collections\/new-big-size-diamond-painting", target: "", levels: 0, children: [ ] }, ] }, { id: 53091755, title: "DIY Crafts", url: "\/collections\/diy-diamond-painting-crafts", target: "", levels: 1, product0: null || {}, children: [ { title: "Bag", url: "\/collections\/bag", target: "", levels: 0, children: [ ] }, { title: "Bookmark", url: "\/collections\/bookmark", target: "", levels: 0, children: [ ] }, { title: "Clock", url: "\/collections\/clock", target: "", levels: 0, children: [ ] }, { title: "Coaster", url: "\/collections\/coaster", target: "", levels: 0, children: [ ] }, { title: "Desktop Ornament", url: "\/collections\/desktop-ornament", target: "", levels: 0, children: [ ] }, { title: "Greeting Card", url: "\/collections\/greeting-card", target: "", levels: 0, children: [ ] }, { title: "Hanging Pendant", url: "\/collections\/hanging-pendant", target: "", levels: 0, children: [ ] }, { title: "Hairpin", url: "\/collections\/hairpin", target: "", levels: 0, children: [ ] }, { title: "Keychain", url: "\/collections\/keychain", target: "", levels: 0, children: [ ] }, { title: "Mirror", url: "\/collections\/mirror", target: "", levels: 0, children: [ ] }, { title: "Notebook", url: "\/collections\/notebook", target: "", levels: 0, children: [ ] }, { title: "Sticker", url: "\/collections\/sticker", target: "", levels: 0, children: [ ] }, { title: "Storage Box", url: "\/collections\/storage-box", target: "", levels: 0, children: [ ] }, ] }, { id: 53091783, title: "Diamond Painting Kits", url: "\/collections\/all-diamond-paintings", target: "", levels: 1, product0: null || {}, children: [ { title: "Full Round Drill", url: "\/collections\/full-round-drill-dp", target: "", levels: 0, children: [ ] }, { title: "Full Square Drill", url: "\/collections\/full-square-drill-dp", target: "", levels: 0, children: [ ] }, { title: "Crystal Rhinestone", url: "\/collections\/crystal-rhinestone-dp", target: "", levels: 0, children: [ ] }, { title: "AB Drill Diamond Painting", url: "\/collections\/ab-drill-diamond-painting", target: "", levels: 0, children: [ ] }, { title: "Custom Kits", url: "\/collections\/customized", target: "", levels: 0, children: [ ] }, ] }, { id: 53091795, title: "Big Size DP", url: "\/collections\/large-diamond-painting", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 53091797, title: "Best Selling", url: "\/collections\/best-selling-buy-3-get-1-free-add-4-in-cart", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 53091799, title: "Painting Accessories", url: "\/collections\/toolkit", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 53091801, title: "Hot Collections", url: "\/collections\/all-diamond-paintings", target: "", levels: 2, product0: null || {}, children: [ { title: "Animal", url: "\/collections\/animal", target: "", levels: 1, children: [ { title: "Butterfly", url: "\/collections\/butterfly", target: "", levels: 0, }, { title: "Peacock", url: "\/collections\/peacock", target: "", levels: 0, }, { title: "Unicorn", url: "\/collections\/unicorn", target: "", levels: 0, }, { title: "Dragon", url: "\/collections\/dragon", target: "", levels: 0, }, { title: "Koi Fish", url: "\/collections\/koi-fish", target: "", levels: 0, }, { title: "Horse", url: "\/collections\/horse", target: "", levels: 0, }, { title: "Cat", url: "\/collections\/cat", target: "", levels: 0, }, { title: "Bear", url: "\/collections\/bear", target: "", levels: 0, }, { title: "Tiger", url: "\/collections\/tiger", target: "", levels: 0, }, { title: "Wolf", url: "\/collections\/wolf", target: "", levels: 0, }, { title: "Lion", url: "\/collections\/lion", target: "", levels: 0, }, ] }, { title: "Character", url: "\/collections\/character", target: "", levels: 1, children: [ { title: "Lady & Beauty", url: "\/collections\/lady-beauty", target: "", levels: 0, }, { title: "Fairy & Girl", url: "\/collections\/fairy-girl", target: "", levels: 0, }, { title: "Angel", url: "\/collections\/angel", target: "", levels: 0, }, { title: "Doll", url: "\/collections\/doll", target: "", levels: 0, }, ] }, { title: "Holidays", url: "\/collections\/holidays", target: "", levels: 1, children: [ { title: "Christmas", url: "\/collections\/christmas-diamond-painting", target: "", levels: 0, }, { title: "Halloween", url: "\/collections\/halloween", target: "", levels: 0, }, { title: "Valentine", url: "\/collections\/valentine", target: "", levels: 0, }, { title: "Easter", url: "\/collections\/easter", target: "", levels: 0, }, ] }, { title: "Scenery", url: "\/collections\/scenery", target: "", levels: 1, children: [ { title: "Lighthouse", url: "\/collections\/lighthouse", target: "", levels: 0, }, { title: "Sea View", url: "\/collections\/sea-view", target: "", levels: 0, }, ] }, { title: "Cartoon", url: "\/collections\/cartoon", target: "", levels: 1, children: [ { title: "Harry Potter", url: "\/collections\/harry-potter", target: "", levels: 0, }, { title: "Disney", url: "\/collections\/disney", target: "", levels: 0, }, ] }, { title: "Flower", url: "\/collections\/flower", target: "", levels: 0, children: [ ] }, { title: "Letter", url: "\/collections\/letter", target: "", levels: 0, 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}
Search
New Arrivals
New Diamond Painting Crafts
New Crystal Diamond Painting
New Big size Diamond Painting
DIY Crafts
Bag
Bookmark
Clock
Coaster
Desktop Ornament
Greeting Card
Hanging Pendant
Hairpin
Keychain
Mirror
Notebook
Sticker
Storage Box
Diamond Painting Kits
Full Round Drill
Full Square Drill
Crystal Rhinestone
AB Drill Diamond Painting
Custom Kits
Big Size DP
Best Selling
Painting Accessories
Hot Collections
Animal
Character
Holidays
Scenery
Cartoon
Flower
Letter
${(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.
` })()}
(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`); const mdScorllHideEle = headerEle.querySelector('.header__mobile .header__scroll_hide'); if (mdScorllHideEle) { document.body.style.setProperty('--header-scroll-hide-height-md', `${mdScorllHideEle.clientHeight}px`); } const pcScorllHideEle = headerEle.querySelector('.header__desktop .header__scroll_hide'); if (pcScorllHideEle) { document.body.style.setProperty('--header-scroll-hide-height-pc', `${pcScorllHideEle.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(); })();
Diamond Painting Blog
How To Use Diamond Painting Ruler?
soanydeals
How To Use Washi Tape In Diamond Painting?
soanydeals
How Diamond Painting Is Different From Coloring Or Painting By Numbers?
soanydeals
How To Diamond Paint?
soanydeals
${data.title}
${data.author}
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 { const price = variantData && variantData.price; return price != undefined ? `
` : '
'; } }()}
${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"] || []; 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 { const price = variantData && variantData.price; return price != undefined ? `
` : '
'; } }()}
${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"] || []; 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}