${(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 = 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.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}
` })()}
Log in
Create an account
${data.data && data.data.count}
Home
All Products
Track Your 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: 58871557, title: "Home", url: "\/", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58871559, title: "All Products", url: "\/collections\/best-sellers", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58871561, title: "Track Your 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}
` })()}
Home
All Products
Track Your 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: 58871557, title: "Home", url: "\/", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58871559, title: "All Products", url: "\/collections\/best-sellers", target: "", levels: 0, product0: null || {}, children: [ ] }, { id: 58871561, title: "Track Your 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}
Home
All Products
Track Your Order
(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(); })();
${data.index + 1}/11
🎁LAST DAY 49% OFF- Stained Heart-shaped Suncatcher
$14.99
$36.99
Save 59%
${function() { const variantData = data.variant || {"id":"aeafe53e-ecb1-4180-a030-f4ed616cbfa7","product_id":"889bef3e-af0f-4b2c-9c75-6f80aa8f6214","title":"Colorful (Best Seller)","weight_unit":"kg","inventory_quantity":0,"sku":"","barcode":"","position":1,"option1":"Colorful (Best Seller)","option2":"","option3":"","note":"","image":{"src":"\/\/img.staticdj.com\/03ae8abd015db0de6437fa7d8a3df72c.jpeg","path":"03ae8abd015db0de6437fa7d8a3df72c.jpeg","width":720,"height":720,"alt":"","aspect_ratio":1},"wholesale_price":[{"price":14.99,"min_quantity":1}],"weight":"0","compare_at_price":"36.99","price":"14.99","retail_price":"36.99","available":true,"url":"\/products\/\ud83c\udf81last-day-49-off-stained-heart-shaped-suncatcher?variant=aeafe53e-ecb1-4180-a030-f4ed616cbfa7","available_quantity":999999999,"options":[{"name":"Qty","value":"Colorful (Best Seller)"}],"off_ratio":59,"flashsale_info":[],"sales":29}; const saveType = "percentage"; const saveText = "Save {{saved_amount}}"; const productLabelDiscountOn = true; return `
-
${saveText.replace('\{\{saved_amount\}\}', saveType == 'percentage' ? variantData.off_ratio + '%' : `
` )}
`; }()}
Qty
: Colorful (Best Seller)
${function(){ const optName = "Qty"; const optionValue = data.originData.selectData ? data.originData.selectData[optName].value : data.originData.value; const optionValueText = optionValue ? (': ' + optionValue) : ''; return `
${optionValueText}
` }()}
Colorful (Best Seller)
Light Blue (22 IN STOCK)
Green (26 IN STOCK)
Blue (13 IN STOCK)
White (31 IN STOCK)
🔥All 5 Styles (5 Pcs & Free Shipping)
${function(){ const tipText = "Please select a {{ name }}".replace(/\{\{\s+name\s+\}\}/g, data); return `
${tipText}
` }()}